Forum Discussion
Measure returning unexpected value
- 5 years ago
Hi Quite_lost ,
Based on your description, I checked your example pbix and found the problem.
The reason is that you turn off the interaction between Movement Type slicer and Days "in stock".
Correspondingly, you need to clear the filter of Movement Type in the calculation.
Average Sales by Month "in stock" = var t = [Total Quantity] var m = CALCULATE([Months "in stock"],ALL('Stock History'[Movement Type])) return DIVIDE(t,m)Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Quite_lost ,
Based on your description, I checked your example pbix and found the problem.
The reason is that you turn off the interaction between Movement Type slicer and Days "in stock".
Correspondingly, you need to clear the filter of Movement Type in the calculation.
Average Sales by Month "in stock" = var t = [Total Quantity]
var m = CALCULATE([Months "in stock"],ALL('Stock History'[Movement Type]))
return DIVIDE(t,m)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Wow, that really worked!
Thank you very much!
I need to learn a lot more about filter and contexts.