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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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