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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

@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

 

Anonymous
Not applicable

Hi @Kalachuchi 

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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.