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

Display image based on measure

Hi all,

 

Im struggling to find a way to dispaly images based on my measure.

 

I have a measure  called TO - Average that changes based on the filter/slicers, and i'd like to dislay an image based in the measure results: 

 

Anyone have any idea how, can i proceed with it? 

2 ACCEPTED SOLUTIONS
Phil_Seamark
Employee
Employee

Hi @Anonymous

 

This is much easier with calculated columns when you can mark the column in the Web URL data category, but these won't respect filters/slicers.

 

You can use the UNICHAR function in measures to get a simlar effect and there are a tonne of useful unichar values you can draw on.

 

eg, the following will give you a thumbs up, you can wrap this in an IF or SWITCH statement to generate the UNICHAR code you need.

 

Measure = UNICHAR(128077)

There are a bunch of websites that list the kinds of codes you can use, but here is one

 

https://www.fileformat.info/info/unicode/block/miscellaneous_symbols_and_pictographs/list.htm


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

My good friend Chris has a blog on using the UNICHAR function

 

https://blog.crossjoin.co.uk/2017/04/11/the-dax-unichar-function-and-how-to-use-it-in-measures-for-d...


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Employee
Employee

Hi @Anonymous

 

This is much easier with calculated columns when you can mark the column in the Web URL data category, but these won't respect filters/slicers.

 

You can use the UNICHAR function in measures to get a simlar effect and there are a tonne of useful unichar values you can draw on.

 

eg, the following will give you a thumbs up, you can wrap this in an IF or SWITCH statement to generate the UNICHAR code you need.

 

Measure = UNICHAR(128077)

There are a bunch of websites that list the kinds of codes you can use, but here is one

 

https://www.fileformat.info/info/unicode/block/miscellaneous_symbols_and_pictographs/list.htm


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

My good friend Chris has a blog on using the UNICHAR function

 

https://blog.crossjoin.co.uk/2017/04/11/the-dax-unichar-function-and-how-to-use-it-in-measures-for-d...


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Thanks a lot @Phil_Seamark

 

It worked perfectly ! 

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.