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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
josephliverpool
Frequent Visitor

Using an icon from Flat Icon (PNG) inside of a card showing variances

Hi

I hope someone can help because I'm pulling my hair out here. Can anyone point me in the direction of a resource which can help me do the above?

I want to be able to download a .png from Flat Icon and use this in a card to show the variance. I have used the below measure which works, however I'm struggling to swap the Unichar section to the Flat Icon which I have saved in SharePoint.

 

I have created a table in Power BI which is called 'Images' and the headings and any help would be absolutely incredible!

 

Name of IconURL
Red_down_arrowSharepoint URL is here  and is formatted as an image url

 

 

 

 

MTD Revenue vs Budget =

VAR Up_Arrow = UNICHAR(129137)

VAR Down_Arrow = UNICHAR(129139)

VAR Target = [MTD Revenue]-[Budget]

VAR target_percent = FORMAT(DIVIDE([MTD Revenue],[Budget],0),"0%")

 

RETURN

IF(Target <0, target_percent&" "&Down_Arrow,

target_percent&" "&Up_Arrow)

1 ACCEPTED SOLUTION

You can create a measure and make sure your measure data category is set to Image URL
Image URL = CONCATENATE("https://abcde.sharepoint.com/",CALCULATE(VALUES('The Images'[File.ServerRelativeUrl]),FILTER('The Images','The Images'[File.Name]="ArrowUp.png")))
 
 
Image URL1 = CONCATENATE("https://abcde.sharepoint.com/",CALCULATE(VALUES('The Images'[File.ServerRelativeUrl]),FILTER('The Images','The Images'[File.Name]="Arrowdown.png")))
 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
josephliverpool
Frequent Visitor

Never thought of trying that, what measure did you use for the image URL?

You can create a measure and make sure your measure data category is set to Image URL
Image URL = CONCATENATE("https://abcde.sharepoint.com/",CALCULATE(VALUES('The Images'[File.ServerRelativeUrl]),FILTER('The Images','The Images'[File.Name]="ArrowUp.png")))
 
 
Image URL1 = CONCATENATE("https://abcde.sharepoint.com/",CALCULATE(VALUES('The Images'[File.ServerRelativeUrl]),FILTER('The Images','The Images'[File.Name]="Arrowdown.png")))
 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Kaviraj11
Super User
Super User

Here is a working solution on my end. I use a Card(New) and have the metrics shown on the value and created a separate measure for an image

 

Image=Switch(true(),Target <0, target_percent,[Image URL],[Image URL1])

 

Put this measure in the image section.

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.