Forum Discussion
Calculating Percentages
- Anonymous3 years ago
Hi macgeorge ,
Please try:
% of Total = DIVIDE ( SUMX ( VALUES ( 'Table'[Priority] ), SUM('Table'[Compliant])), SUMX ( VALUES ( 'Table'[Priority] ), [All Compliant] ) )then select the measure -> measure tools and change the format to percentage:
Result:
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
% of Total = DIVIDE( SUMX(VALUES(table[Priority]),[Total Compliant]), [All Compliant], 0)
Hi Daniel, thank you for your reply. I am still getting 0.45% in that column. I am using this code as you suggested:
- wdx223_Daniel3 years agoCommunity Champion
=ROUND( DIVIDE( SUMX(VALUES(table[Priority]),[Total Compliant]), [All Compliant], 0),2)
can this work?
- macgeorge3 years agoHelper I
The rounding works, thank you - but I am still not getting the % correct it should read 45% not 0.45%
% of Total = ROUND( DIVIDE(SUMX(VALUES(Table[Priority]),[Total Compliant]),[All Compliant], -0),2)- Anonymous3 years agoNot applicable
Hi macgeorge ,
Please try:
% of Total = DIVIDE ( SUMX ( VALUES ( 'Table'[Priority] ), SUM('Table'[Compliant])), SUMX ( VALUES ( 'Table'[Priority] ), [All Compliant] ) )then select the measure -> measure tools and change the format to percentage:
Result:
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data