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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors