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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
KarenFingerhut
Post Patron
Post Patron

Conditional Formatting With Icons in one field and word N/A in another

Hi There

 

Looking for some help please.

 

I have a table where the values are -1, 1 and 0.

 

In conditional formatting I want it to to show the following

 

-1 to show a 'X' symbol

1 to show a Tick symbol

0 to show text N/A

 

I can do conditional formatting for the cross and tick but cannot get the word N/A to show in the cells where there is a 0.

 

I've tried the below which works for the symbols and ive also tried doing in Cell Elements (icons)

 

^ Icons On Track For Reforecast Target Fix = SWITCH(TRUE(),
                                                Query1[On Track for Reforecast Target] = -1, "SymbolLow",
                                                Query1[On Track for Reforecast Target] = 1, "SymbolHigh",
                                            "N/A")
 
Does anyone know how to make this possible.
 
Many thanks
 
Kind regards
Karen
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @KarenFingerhut ,

Please refer to my pbix file to see if it helps you.

vpollymsft_0-1675751531973.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

HI Polly

So sorry for late reply. I did resolve this by adding in a table with 

KarenFingerhut_0-1676272406663.png

 

And then did the following DAX 

IF('Icons For Year End Target 2'[Icon] = "Tick",UNICHAR(10003),'Icons For Year End Target 2'[Icon])
 
And additional dax for the conditional colour formatting 
 
IF('Icons For Year End Target 2'[Number]= 0 , "#646363",
                            IF('Icons For Year End Target 2'[Number]= -1 , "#D64060",
                            IF('Icons For Year End Target 2'[Number]= 1 , "#7ab929",
                            IF('Icons For Year End Target 2'[Number]= 2 , "#646363",
                            IF('Icons For Year End Target 2'[Number]= 3 , "#646363")))))
 
And got the following result which is exactly what I needed 🙂
KarenFingerhut_1-1676272554335.png

 

Once again thanks for your reply.

 

Kind regards

Karen

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @KarenFingerhut ,

Please refer to my pbix file to see if it helps you.

vpollymsft_0-1675751531973.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI Polly

So sorry for late reply. I did resolve this by adding in a table with 

KarenFingerhut_0-1676272406663.png

 

And then did the following DAX 

IF('Icons For Year End Target 2'[Icon] = "Tick",UNICHAR(10003),'Icons For Year End Target 2'[Icon])
 
And additional dax for the conditional colour formatting 
 
IF('Icons For Year End Target 2'[Number]= 0 , "#646363",
                            IF('Icons For Year End Target 2'[Number]= -1 , "#D64060",
                            IF('Icons For Year End Target 2'[Number]= 1 , "#7ab929",
                            IF('Icons For Year End Target 2'[Number]= 2 , "#646363",
                            IF('Icons For Year End Target 2'[Number]= 3 , "#646363")))))
 
And got the following result which is exactly what I needed 🙂
KarenFingerhut_1-1676272554335.png

 

Once again thanks for your reply.

 

Kind regards

Karen

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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