Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi everyone,
I created a measure in DAX with the calculate function. It counts all orders but filters the date to be equal to or greater than 20. January. This means that the measure counts all orders between 20 and 30 January. This works fine but inside my report, I have a date slicer where you can slice all days in this current month (1 to 30 January). The problem is that the measure I created ignores the date slicer, so if I use the slicer to see from 1 January to 15 January then it shows the same number as 20 to 30 January. It should instead just show 0.
How can I fix this? And can anybody help? 🙂
Thank you
Solved! Go to Solution.
Try this
Orders (After 20 January) =
CALCULATE(COUNT('Table 1'[Order ID])filter('table 1','Table 1'[Coffee]="Yes"&& 'Table 1'[Created]>=DATE(2020;1;20)))/
CALCULATE(COUNT('Table 1'[Type]);filter('table 1','Table 1'[Type]="Espresso"
&& 'Table 1'[Created]>=DATE(2020;1;20)))
@amitchandak @Anonymous
Orders (After 20 January) =
CALCULATE(CALCULATE(COUNT('Table 1'[Order ID]);'Table 1'[Coffee]="Yes")/
CALCULATE(COUNT('Table 1'[Type]);'Table 1'[Type]="Espresso");
'Table 1'[Created]>=DATE(2020;1;20))
Try this
Orders (After 20 January) =
CALCULATE(COUNT('Table 1'[Order ID])filter('table 1','Table 1'[Coffee]="Yes"&& 'Table 1'[Created]>=DATE(2020;1;20)))/
CALCULATE(COUNT('Table 1'[Type]);filter('table 1','Table 1'[Type]="Espresso"
&& 'Table 1'[Created]>=DATE(2020;1;20)))
@Anonymous Amazing!!!!
can you share your measure to see what's the issue?