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
o59393
Post Prodigy
Post Prodigy

how to change the color of an image based on its value and target

Hi all

 

Is it possible to change the color (red/green) of an imported image based on its value and target?

 

I wanted to use this images used in nutritional facts as reference, so if my value is less than the target it would go red, other way would go green:

 

sdsddsfsg.JPG

 

In my pbix I have these 2 values as example: 

 

dssdfsdfsdfsd.JPG

 

So lets say target for micro is 98% so it would turn red the image (not the text), and for the second one it would turn green when target is 90%

 

https://1drv.ms/u/s!ApgeWwGTKtFdhmc6hMVmmqyeKKwZ?e=h1XGb4

 

Thanks!

 

2 REPLIES 2
mihart
Employee
Employee

@o59393 

If you are importing an image that you did not draw/create yourself, then I don't know of any way you can change the color based on a value Unless you added columns to your data for all color possibilities (in this case, green, and red) so that IF a value is above X, use image A...if value is below Z, use image B, etc.. 

 

If you just want to use color to indicate value and target, You could, however, create : 

HTH

Michele

 

 

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.