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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
fjjpeeters1976
Helper III
Helper III

Icons in card visual / conditional formatting

 

Hi all,

 

I want to create some cards (new) that show me an icon. 1 means green icon, 2 means yello icon and 3 means red icon.

I have first done it in a table, but that has its limitation. So as I see Power BI introduced new cards I would like to show it in a card. But there is no standard conditional formatting where I can say if 1 use green icon etc. 

What would be best way to solve this. Are there codes for the icons that I could use in a measure?

 

fjjpeeters1976_0-1696575908765.png

 

kind regards,

Frank

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @fjjpeeters1976 

You can achieve it using dax code ( for every measure )

formatted kpi = if([kpi 1]=1,"🟢",if([kpi 1]=2,"🟡","🔴"))
Ritaf1983_0-1696577649424.png

The icons that I used are from the linked website:

https://www.i2symbol.com/symbols/circle

You just select the needed icon click on it and copy and paste it into the code.

The link to the sample file 

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

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

fjjpeeters1976
Helper III
Helper III

It works. Thanks for your answer.

View solution in original post

3 REPLIES 3
fjjpeeters1976
Helper III
Helper III

It works. Thanks for your answer.

Glad to help 😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @fjjpeeters1976 

You can achieve it using dax code ( for every measure )

formatted kpi = if([kpi 1]=1,"🟢",if([kpi 1]=2,"🟡","🔴"))
Ritaf1983_0-1696577649424.png

The icons that I used are from the linked website:

https://www.i2symbol.com/symbols/circle

You just select the needed icon click on it and copy and paste it into the code.

The link to the sample file 

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

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors