Forum Discussion
DAX Measure %
Hi,
I am trying to show a % for all the categories in a table. How do i get the percentages for A, B, C to add up to the total.
| A | 99.8% |
| B | 97.7% |
| C | 98.6% |
| Total | 1.5% |
I blacked out the values on the left, but this is what i am seeing, where the percentages dont add up to the total.
Any help is appreciated.
- Anonymous2 years ago
Greg_Deckler Thanks for your contribution on this thread.
Hi harpas ,
Base on your description, it seems like you got the incorrect total values in your matrix visual. You can create another new measure as below to replace the original Values field:
Measure = SUMX ( VALUES ( 'Table'[Rows option field] ), [original Values option field] )In addition, you can refer the following links to try to solve your problem...
Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand
Dax for Power BI: Fixing Incorrect Measure Totals
If the above ones can't help you figure out, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
2 Replies
- Greg_DecklerCommunity Champion
harpas First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e
This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8 - AnonymousNot applicable
Greg_Deckler Thanks for your contribution on this thread.
Hi harpas ,
Base on your description, it seems like you got the incorrect total values in your matrix visual. You can create another new measure as below to replace the original Values field:
Measure = SUMX ( VALUES ( 'Table'[Rows option field] ), [original Values option field] )In addition, you can refer the following links to try to solve your problem...
Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand
Dax for Power BI: Fixing Incorrect Measure Totals
If the above ones can't help you figure out, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards