Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
| Priority | Compliant | All Compliant | % of Total |
| Product 1 | 966 | 2126 | 0.454374 |
| Product 2 | 3 | 2126 | 0.001411 |
| Product 3 | 32 | 2126 | 0.015052 |
| Product 4 | 1 | 2126 | 0.00047 |
| Product 5 | 23 | 2126 | 0.010818 |
| Product 6 | 619 | 2126 | 0.291157 |
| Product 7 | 404 | 2126 | 0.190028 |
| Product 8 | 16 | 2126 | 0.007526 |
| Product 9 | 62 | 2126 | 0.029163 |
| Total | 2126 |
Can anyone please help me with this? I am still new to Power BI and figuring things out.
Thank you,
Solved! Go to Solution.
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 Team
If 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:
=ROUND( DIVIDE( SUMX(VALUES(table[Priority]),[Total Compliant]), [All Compliant], 0),2)
can this work?
The rounding works, thank you - but I am still not getting the % correct it should read 45% not 0.45%
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 Team
If 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
Thank you so much - this is excellent.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |