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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Need help to get icons in conditional formatting from field to display

I can't get icons to display using conditional formatting in my table but I can get background color or font color to work properly from my data set.  I'm trying get basic green, yellow or red colored circles to display.

 

My dataset for the field (Health) has the color names as values - background and fonts colors work perfectly on this data.

Health column.PNG

 

I've defined the conditional formatting icons as show below and nothing shows up.

Health icons settings.PNG

No icons are displayed in the column.

Health column as icons.PNG

 

What do I need to do to get the icons to display?

 

Thanks in advance.

 

1 ACCEPTED SOLUTION

@Anonymous - You will need a measure like this:

 

 

Measure = 
    SWITCH(MAX([Column2]),
        "Green",2,
        "Yellow",1,
        "Red",0
    )

 

 

Then, set your Icon Conditional formatting Rules up like this:

 

image.png

 

I have attached a PBIX under my signature.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

8 REPLIES 8
amitchandak
Super User
Super User

@Anonymous 

Under the conditional format of Table and Matrix you an option for Icon. Switch that On. After that you can use

 

Conditiona format Icon.png

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Thanks for the suggestion.  I turned on Icons for the table and it didn't have any effect.

 

Any other ideas?

 

It should open a popup, where you can choose conditional formatting and icons

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Yes, a windows opened where I set the conditional formatting for the Health column and the icons still don't display.  Is there somewhere I should be chosing what icons (circles, diamonds, etc.) should be displayed like when using Rules (vs Field values)?

 

@Anonymous - You will need a measure like this:

 

 

Measure = 
    SWITCH(MAX([Column2]),
        "Green",2,
        "Yellow",1,
        "Red",0
    )

 

 

Then, set your Icon Conditional formatting Rules up like this:

 

image.png

 

I have attached a PBIX under my signature.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yep - that's exactly what I did to get it working.  Not sure how Field Value works but by mapping my Health column to a new, numeric column and then using Rules, it works fine.

 

Thanks everyone.

 

I may be mistaken, but I believe field value with icons requires the field to be an SVG image. Glad you got it!

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

I believe that the field needs to contain an SVG image text.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.