Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Everyone
I wonder if I can ask for some help, basically I am looking to have a visual return a rating from 10-0 based on another measure which calculates as a percentage.
Whenever I attempt an if statement or lookup this does not seem to work so any suggestions will be massively appreciated!
In addition I am also looking to do this for a colour too in a second visual.
For example
Solved! Go to Solution.
@Neil_Cooper , This seems like a running total % , for that you need a unique column like the index column
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Rank with tie breaker can help
% total = divide([Rank], count(allselected(Table)) )
Then you can have measure like
Switch( true(),
[% total] <= .05, "Green",
[% total] <= .20, "Yellow",
"Red"
)
You can use that in conditional formatting using field value option
Rank Tie breaker
https://community.powerbi.com/t5/Community-Blog/Breaking-Ties-in-Rankings-with-RANKX-Using-Multiple-...
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/
Refer this for similar example
https://exceleratorbi.com.au/pareto-analysis-in-power-bi/
For color
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
@Neil_Cooper , This seems like a running total % , for that you need a unique column like the index column
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Rank with tie breaker can help
% total = divide([Rank], count(allselected(Table)) )
Then you can have measure like
Switch( true(),
[% total] <= .05, "Green",
[% total] <= .20, "Yellow",
"Red"
)
You can use that in conditional formatting using field value option
Rank Tie breaker
https://community.powerbi.com/t5/Community-Blog/Breaking-Ties-in-Rankings-with-RANKX-Using-Multiple-...
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/
Refer this for similar example
https://exceleratorbi.com.au/pareto-analysis-in-power-bi/
For color
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
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!