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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
HamzaAhmad
New Member

Displaying red indicator if a value in a column becomes 0 or green if the value is not 0

Hello,

I have a table which calculates the material balance at each stage of production. I need to display red circular indicator if the material balance gets to 0 and green indicator if it is not 0.

 

I have read the topics and the guides on how to display images using their image URLs. The green and red indicator image URLs are in a new table and the Data Category has been set to Image URL in the Modelling tab. But still, I am unable to display the images. I greatly appreciate your help.

 

In this screenshot, different materials are shown and their balance is not 0 at the moment, hence I want to show green indicator in a new column next to 'Diff'.

 

Screenshot below:

 

question SS.png

1 ACCEPTED SOLUTION
stretcharm
Memorable Member
Memorable Member

 

I just created a simple expression and set it to Img Url  and dragged it to my table.

 

Image = if (Table1[KPI]=0 , "https://st.depositphotos.com/1012074/2198/v/950/depositphotos_21989189-stock-illustration-icon-depicting-a-green-traffic.jpg" , "https://st.depositphotos.com/1012074/2198/v/950/depositphotos_21987991-stock-illustration-vector-glossy-icon-depicting-red.jpg")

It didn't work with some images not sure why. I got a broken image icon.

 

There is also a custom visual that does kpis.

https://appsource.microsoft.com/en-us/product/office/WA104380980?src=office&corrid=f3a388b7-6291-41e...

 

 

 

View solution in original post

2 REPLIES 2
stretcharm
Memorable Member
Memorable Member

 

I just created a simple expression and set it to Img Url  and dragged it to my table.

 

Image = if (Table1[KPI]=0 , "https://st.depositphotos.com/1012074/2198/v/950/depositphotos_21989189-stock-illustration-icon-depicting-a-green-traffic.jpg" , "https://st.depositphotos.com/1012074/2198/v/950/depositphotos_21987991-stock-illustration-vector-glossy-icon-depicting-red.jpg")

It didn't work with some images not sure why. I got a broken image icon.

 

There is also a custom visual that does kpis.

https://appsource.microsoft.com/en-us/product/office/WA104380980?src=office&corrid=f3a388b7-6291-41e...

 

 

 

Thank you @stretcharm

 

Works like a charm (Pun Intended)!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors