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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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