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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
HenryJS
Post Prodigy
Post Prodigy

Condition Formatting: Text Background Colour

Hi all,

 

I have a text column created using DAX.

 

How can I choose background colours for this text field in the matrix in the bottom picture?

 

From what I can see the 'Rules' conditional formating option needs numerals..

 

Capture.PNGCapture1.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HenryJS,

You can create a measure that is used in conditional formatting "Field Value".

The General Measure would look like this: Measure = SWITCH(Selectedvalue([Status]),"Missing","red","Saved", "#90ee90")
You can put all the Values in and determine the color based on "color" or you input a HEX color.

 

Hope it helps,

 

Kind regards
Joren Venema

Data & Analytics Consultant
If this reply solved your question be sure to mark this post as the solution to help others find the answer more easily. 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @HenryJS 

 

You can create a Measure that will assign a number to every text string using the SWITCH function, later use this Measure for conditional formating.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Hi @HenryJS,

You can create a measure that is used in conditional formatting "Field Value".

The General Measure would look like this: Measure = SWITCH(Selectedvalue([Status]),"Missing","red","Saved", "#90ee90")
You can put all the Values in and determine the color based on "color" or you input a HEX color.

 

Hope it helps,

 

Kind regards
Joren Venema

Data & Analytics Consultant
If this reply solved your question be sure to mark this post as the solution to help others find the answer more easily. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.