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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MeiYing
Helper I
Helper I

Image display in Power BI by conditional formatting

Hi,

 

I want my card visual to display total number of failed orders, but when there is no failed orders, the image (smiling emoji) will be displayed. I created measure (HasfailedOrder = If([failed order]=0, 'Img URL', [failed order])) for my card visual. But it displays url instead of image when my failed order is 0. I can achieve that by using table, but is there any way to achieve that with card visual? 

 

Thank you guys!

2 ACCEPTED SOLUTIONS
MeiYing
Helper I
Helper I

Thank you so much @Ritaf1983 . It really works! But do you know if we can use other images online (not emoji), like by using URL ? 

View solution in original post

Hi @MeiYing 
Happy to help and yes with the new card visual, please refer to the linked tutorial: 

https://www.linkedin.com/pulse/power-bi-dynamic-icon-image-based-condition-new-card-visual-ali/

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

3 REPLIES 3
MeiYing
Helper I
Helper I

Thank you so much @Ritaf1983 . It really works! But do you know if we can use other images online (not emoji), like by using URL ? 

Hi @MeiYing 
Happy to help and yes with the new card visual, please refer to the linked tutorial: 

https://www.linkedin.com/pulse/power-bi-dynamic-icon-image-based-condition-new-card-visual-ali/

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
Ritaf1983
Super User
Super User

Hi @MeiYing 
You can just copy and paste the emoji to the DAX code like :

test emoji = if(sum('Table'[Fail order])=0,"🙂",SUM('Table'[Fail order])&"🙁")
Result :
Ritaf1983_0-1709533364117.pngRitaf1983_1-1709533386527.png

The line of the website for copy emojis :

https://emojicopy.com/

pbix is attached

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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