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
ero
Frequent Visitor

Display Dynamic URL Images

Hi,

I’m trying to make a dynamic image display card using THREE images. I ran across SQLJason on how to do this but haven’t been able to make the necessary adjustments to work with three images. It works nicely with two.Being new to dax is really a pain, since the examples I found on the subject are not very clear.

 

I have two tables. The first one has the data I’m using. The second, three URLs and the names of the images I want to display. As I said, i´m using SQLJason Measure:

 

Test = SUMX(VALUES(Imag[State]), SWITCH(Imag[State], "Image1", IF(CALCULATE(SUM(Table1[Measure]))>95,1,0), IF(CALCULATE(SUM(Table1[Measure]))>95,0,1)))

 

QUESTION: How do I change the above to include a condition for a third image?

 

I’m lost, suggestions please.

1 ACCEPTED SOLUTION

Sorry for not answering sooner, but 1) I managed to solve it onn my own, 2) I thought I would get an email every time someone left me a post, but this didn't happen. Thank you for taking the time to look at my request. 

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @ero ,

 

That's cool, then could you please mark your answer as a solution to close the case please?

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
v-frfei-msft
Community Support
Community Support

Hi @ero ,

 

Could you please share your sample data and excepted result to me, if you don't have confidential data? Please upload your file to One Drive and share the link here.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Sorry for not answering sooner, but 1) I managed to solve it onn my own, 2) I thought I would get an email every time someone left me a post, but this didn't happen. Thank you for taking the time to look at my request. 

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.