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
tarun16feb
Regular Visitor

Embedding up and down arrow images in visual and changing them based on condition

Hi

 

I need to add an up and down arrow image to my report which displays the arrow based on specific condition.

 

I have created a new measure show_image where

      show_image  = if sum(sales) > 1000 then 'Image url of up arrow' else 'Image url of down arrow'

 

The problem with this approach is that it returns the url of the image but I cannot format a measure to display the image URL. It can only be done with columns. 

and If i use a column then it returns me both the URL. 

 

Now is there a way to display just one result based on the condition.

 

Any help would be appreciated.

Thanks

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @tarun16feb,

 

I'd like to suggest you create a table visual with formatted unichar code as kpi arrow based on conditions, you can take a look at below links to know more about this.

Power BI Desktop/DAX – Using Unicode (Arrows) as Measures in a Table

The DAX Unichar() Function And How To Use It In Measures For Data Visualisation

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @tarun16feb,

 

I'd like to suggest you create a table visual with formatted unichar code as kpi arrow based on conditions, you can take a look at below links to know more about this.

Power BI Desktop/DAX – Using Unicode (Arrows) as Measures in a Table

The DAX Unichar() Function And How To Use It In Measures For Data Visualisation

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.