Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All
When I create a measure that calculates a division ("/") between two different numbers and I place it on a Table, I get the average of each result in the Grand Total row.
If I use the +,- or * signs Power Bi will calculate a sum in the total instead.
Can I get this with a divison as well?
My dax is:
My new measure = SUM('CUBE'[column A])/[Measure 1])
FYI: Measure1 is only a "distinct count"
Example of what Power Bi does:
Cities | My Measure |
Paris | 22.36 |
Milan | 5.33 |
London | 11.8 |
Grand total | 13.16333 |
What I want:
Cities | My Measure |
Paris | 22.36 |
Milan | 5.33 |
London | 11.8 |
Grand total | 39.49 |
Solved! Go to Solution.
Hi @Anonymous
You may try below measure:
Measure = IF ( HASONEVALUE ( 'CUBE'[Cities] ), [My new measure], SUMX ( VALUES ( 'CUBE'[Cities] ), [My new measure] ) )
Regards,
Cherie
Hi @Anonymous
You may try below measure:
Measure = IF ( HASONEVALUE ( 'CUBE'[Cities] ), [My new measure], SUMX ( VALUES ( 'CUBE'[Cities] ), [My new measure] ) )
Regards,
Cherie
Thanks a bunch this has done the trick!
😄
Hi @Anonymous
Kindly mark my answer as a solution if you feel that makes sense.
Regards,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
76 | |
57 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
56 | |
46 | |
40 |