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
Anonymous
Not applicable

How can I create a measure that accounts for conditional images based on profit percentage?

Hello,

 

I'm trying to apply a Smiley Face image for profits above 30% and a Frowny Face image for profits below 30%.

 

I have a measure accounting for Total Cost. However how can I apply another measure accounting for the percentages?

 

I currently have IF(TotalCost) > _____________, image url.

 

I'm unsure what to put after the > sign.

 

Thank you.

1 ACCEPTED SOLUTION

@Anonymous , Pecercent if marked as percent column will have value like .1 for 10 %

 

example

Switch( True  (),

[Percent measure] < .2  'image url',

[Percent measure] < .4  'image URL 2'

, 'image url3')

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , You can create a measure like example

if([TotalCost] > 80 'image url' , 'image url2')

 

and you can mark it as type URL

 

Also refer icon formatting using unichar

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

Anonymous
Not applicable

Is there a way to input something that indicates a percentage of Total Cost into that IF statement?

Hi, @Anonymous 

Could you please tell me whether your problem has been solved?

If yes, you could accept the helpful answer as solution. You could also share your own solution here.
For now, there is no content of description in the thread. If you still need help, please share more details to us.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

It has been solved. I marked the correct response as solution. Thanks!

@Anonymous , Pecercent if marked as percent column will have value like .1 for 10 %

 

example

Switch( True  (),

[Percent measure] < .2  'image url',

[Percent measure] < .4  'image URL 2'

, 'image url3')

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.