Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Enrico501
Frequent Visitor

Conditional formatting of % on MAP Visual in power bI not working correctly

Hi, 

 

I have set a set of SLA % below and the conditional formating associated with them.

 

Enrico501_0-1682346135558.png

Based on the Above Italy for example should be in Yellow as the Delievered in SLA is 66.82%. 

Enrico501_1-1682346293971.png

Enrico501_3-1682346324813.png

however as you can see below Italy is showing in REd not Yellow even though SLA is above 50%. 

Enrico501_4-1682346411954.png

Any ideas on the issue? 

 

 

 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Enrico501 

 

You can try the following methods.

Color measure = SWITCH(TRUE(),
             [SLA%]>=0&&[SLA%]<=0.5,"Red",
             [SLA%]>0.5&&[SLA%]<=0.8,"Yellow",
             [SLA%]>0.8&&[SLA%]<=1,"Green" )

vzhangti_0-1682477380128.png

vzhangti_1-1682477407908.png

vzhangti_2-1682477432942.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Enrico501
Frequent Visitor

It works. Thank You. This is the accepted solution. 

 

v-zhangti
Community Support
Community Support

Hi, @Enrico501 

 

You can try the following methods.

Color measure = SWITCH(TRUE(),
             [SLA%]>=0&&[SLA%]<=0.5,"Red",
             [SLA%]>0.5&&[SLA%]<=0.8,"Yellow",
             [SLA%]>0.8&&[SLA%]<=1,"Green" )

vzhangti_0-1682477380128.png

vzhangti_1-1682477407908.png

vzhangti_2-1682477432942.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.