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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Put an image according to the measure

Hello,

I would like to insert an image based on the measure's result.

 

MartinAlexandre_0-1663683204584.png

 

MartinAlexandre_1-1663683260280.png

 

 

Ideally there should be measure like this :

TT = SWITCH( TRUE(), 'YY'[XX] < 0.005 ,"green face",'YY'[XX] <0.008 ,"yellow face", "red face")

 

"  'YY'[XX]  " is a measure

 

I get results with emoji, it perfect, but i would like images

TT = SWITCH( TRUE(), 'YY'[XX] < 0.005 ,"😊",'YY'[XX] <0.008 ,"😐", "😟")

 
The "if" function can also work,
 
Thanks for you help 🙂 
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , if you like the image, you should result the image url and change data category to the image URL .

 

 

You can also explore unichar

UNICHAR - Tool for Custom Icon Formatting: https://www.youtube.com/watch?v=veCtfP8IhbI&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=50

 

Anonymous
Not applicable

Thanks, 

I have indeed imported my images in the "Image URL" data category. My problem is that I don't know how to import these images into an algorithm (dax measure) that would choose the right image depending on the result.

 

Unichar doesn't exactly answer what I'm looking for 😞

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.