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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kalachuchi
Helper III
Helper III

Change background color depending on current value

I have 27 columns that needs to have color on it's value I am using a measure for each column (QRM_1) but I still have 26 more to. is there any workaround  to do this?

Color Codes = 
    VAR QRM_1 = SELECTEDVALUE(FactTable[QRM_1])
    
    RETURN Switch(QRM_1,"Gold Standard","#ffc000","Almost Always","#92d050","Usually","#999999","Often","#fff2cc","Sometimes","#ff0066","Rarely","#ff0000","Never","#ECF0F1" )
    

 

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@Kalachuchi 
In you case, I cannot think of any workaround, you cannot do conditional format unless you have all values in one field.

V-pazhen-msft_0-1613976020586.png

 


Paul Zheng _ Community Support Team

 

pranit828
Community Champion
Community Champion

Hi @Kalachuchi 

I am afraid not as the conditional formatting can be done on each column seperately.

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors