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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
swatichouksey05
Frequent Visitor

Power BI Desktop : Conditional formatting on cards visual for Emoji's.

In my report there is one column(Survey Rating) I need to show smiley faces (Icon) on bases of Survey rating. Colums included in this visualization are survey rating and type. For exmple : 

swatichouksey05_0-1708012008884.png

I have used below measure on cards to show the emoji's as per the rating.

Survey_Emoji = SWITCH(
TRUE(),
ISBLANK(table[survey rtaing]), "😶",
table[survey rtaing] >= 9, "🙂",
table[survey rtaing] >= 7, "😐",
table[survey rtaing] >= 0, "🙁",
"😶"
)

but user wants their icons instead of these emoji's like if survey rating >=9, smiley face icon shared by user should appear on card. how to use icon in card on conditions. for one survey_type one card is required.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @swatichouksey05,

I'd like to suggest you create a new table with icons and index, then you can change the Dax expression to lookup the new table value based on current rank.
You can change the table icons dynamically based on the records that user provided.

In addition, you can also try import these image data to power bi table instead of use image URL.

Storing Images in a PowerBI/Analysis Services Data Models 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @swatichouksey05,

I'd like to suggest you create a new table with icons and index, then you can change the Dax expression to lookup the new table value based on current rank.
You can change the table icons dynamically based on the records that user provided.

In addition, you can also try import these image data to power bi table instead of use image URL.

Storing Images in a PowerBI/Analysis Services Data Models 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi Xiaoxin Sheng,

 

I can't use table as per client requirement. thye need in cards only.

Thanks for reply. I tried with HTML content visual and used .svg image sourcecode in measures. Then used measures in column conditions. 

Regards 

SC

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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