Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Can anyone explain why these two formulas give different totals? What is more confusing to me is that the 2nd measure (which gives the correct total) is actually referenced in the first measure...but the first measure not only gives wrong totals per month, but also wrong grand total. Confused.
Solved! Go to Solution.
Note that your first measure total is less than the second. That's because Totals are not Totals in Power BI. It would be better to call them All Rows in that unlike each of the rows in the table that filters the data first, the "Total" does not have that filter, so all rows are included in the DISTINCTCOUNT() calculation. Since you are more likely to have duplicates when more rows are included, the result is less.
The second measure is a common pattern you'll use and whole blogs have been written about it. With that pattern, you create a virtual table of all the distinct values for each row and their distinctcounts, which is then summed up to get the correct total.
https://powerpivotpro.com/2010/02/sumx-the-5-point-palm-exploding-fxn-technique/
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Note that your first measure total is less than the second. That's because Totals are not Totals in Power BI. It would be better to call them All Rows in that unlike each of the rows in the table that filters the data first, the "Total" does not have that filter, so all rows are included in the DISTINCTCOUNT() calculation. Since you are more likely to have duplicates when more rows are included, the result is less.
The second measure is a common pattern you'll use and whole blogs have been written about it. With that pattern, you create a virtual table of all the distinct values for each row and their distinctcounts, which is then summed up to get the correct total.
https://powerpivotpro.com/2010/02/sumx-the-5-point-palm-exploding-fxn-technique/
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I am not sure if the picture can be seen, that was supposed to be in my original post.
But here it is, below
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 69 | |
| 50 | |
| 46 |