Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217117

How to rewrite DAX query?

$
0
0

I've created following DAX calculated column with help of variable. I've tried to do the same without variables, but for me using variable is much more simpler.  

Besides is it possible to rewrite following query without variables (I don't need actual query, just yes or no, and which functions should I use)?

CountByMonth = var current_date = 'questions'[Creation Date Dim]
var total = SUMX(FILTER('questions','questions'[Creation Date Dim]=current_date), 'questions'[Count])
return 'questions'[Count] / total

Are there any performance implications, if I'm using variables instead of direct query?


Viewing all articles
Browse latest Browse all 217117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>