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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Changing image based on a measure value

Hi everyone,

 

I am working on a scorecard where I have a mesure 'Total Score' that has value from 1 to 5.

 

I am aware of the UNICHAR one, but that does not work with images so, any help here would be really great.

 

There is a background image I need to add to it ( some thing like a square shape or any shape that fits the measure value.

My question  is I want the image to change its colors from yellow (for 2.5) and become green as it reaches 5 while become red as it approaches 1 ( differences of 0.5 ). It should look like this. The green in the back should change as the value of the measure change from 1 to 5.

 

Score.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello-

 

2 workarounds/suggestions I can think of.

 

1) Import a custom Power BI Visualization from the Power BI marketplace.  There is one called "Conditions."  It will change the background color based on a set of conditions like value.  I think it takes up to 5 or so.

 

2) You can you use conditional formatting in a table and turn on icons.  If you make the icon large and set the rules correctly, it should do what you want.

 

Hope this helps.

 

Jared

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hello-

 

2 workarounds/suggestions I can think of.

 

1) Import a custom Power BI Visualization from the Power BI marketplace.  There is one called "Conditions."  It will change the background color based on a set of conditions like value.  I think it takes up to 5 or so.

 

2) You can you use conditional formatting in a table and turn on icons.  If you make the icon large and set the rules correctly, it should do what you want.

 

Hope this helps.

 

Jared

Anonymous
Not applicable

@Anonymous 

Thanks for the quick response. For the first option, could you please share the link to the power bi visual in the power bi marketplace. I am unable to find one named 'Conditions' in there.

 

 

Anonymous
Not applicable

I apologize, I thought it was called Conditions, but that is the option name in the format painter.

 

The Visualization is called "Advance Card."

 

Jared

Anonymous
Not applicable

It worked but, the advance card only allows maximum 3 conditions.

So, I suppose I would need another way to add more conditions.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors