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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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

@o59393 , check if bookmark can help

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
https://docs.microsoft.com/en-us/power-bi/desktop-bookmarks

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
mihart
Microsoft Employee
Microsoft 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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