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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Conditional Formatting a text table

Hello,
I have 4 if-statements that check a condition and return "OK" or "NOK". I have dragged these four statements in four different tables so it displays "OK" or "NOK" in the table values field. I want to condition these values with a green icon for "OK" and a red icon for "NOK". To this end I copied the measure four times but returned 1 or 0 in place of "OK" and "NOK". This way I could format the tables based on the result of the measure (which checks the same thing). So I added the conditional formatting for "OK"/"NOK" table visualisations based on the corresponding measures returning 1 or 0 however it seems to be not working. The space is taken up where the icon should be but there's nothing there. This is one of the 4 measures I use to return "OK"/"NOK" and it's corresponding "1/0" version.


216 11 EXP DEC 1.2 = IF(ISEMPTY('Controle 216 21 EXP DEC 1_2');"OK";"NOK")
216 11 EXP DEC 1.2 Coloring = IF(ISEMPTY('Controle 216 21 EXP DEC 1_2');1;0)


How can I add conditional formatting to a table that only contains the first measure based on the second measure? Thanks in advance !

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Could you share a data example or some screenshots for me to test?

 

Best Regards

Maggie

MFelix
Super User
Super User

Hi @Anonymous ,

 

On the conditional formatting Choose rules and then on the based on field select the measure you want to have your condittional formatting based upon.

On your case select measure 2 as you base field.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.