Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I browsed the forum but I couldn't find a solution for my particular case.
Measure "time in days / number" (if time in days >=1) is dividing the sum of 'time in days' by 'number'. 'Number' is a measure: distinctcount of column ID where 'time in days' >=1. On a row level, everything works fine. But the (sub)totals are all wrong: the total of column Number says 15 while it should be 6! And so my 'time in days / number' measure is showing 4,23 while it should be 10,57.
How can I make sure that the column Number is giving me the right (sub)total?
Solved! Go to Solution.
Your totals are not incorrect, per se, they are just not behaving as you expect. One of the biggest differences with DAX and working in Excel is that each cell is calculated based upon its own merits and these merits do not always add up. Your dax just needs to be adjusted to account for this by using either ISFILTERED, HASONEVALUE, or the VALUES function.
This blog article has fantastic coverage of the solutions for this. https://powerpivotpro.com/2012/03/subtotals-and-grand-totals-that-add-up-correctly/
Hope this helps.
Proud to be a Super User!
Your totals are not incorrect, per se, they are just not behaving as you expect. One of the biggest differences with DAX and working in Excel is that each cell is calculated based upon its own merits and these merits do not always add up. Your dax just needs to be adjusted to account for this by using either ISFILTERED, HASONEVALUE, or the VALUES function.
This blog article has fantastic coverage of the solutions for this. https://powerpivotpro.com/2012/03/subtotals-and-grand-totals-that-add-up-correctly/
Hope this helps.
Proud to be a Super User!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
118 | |
101 | |
71 | |
61 |