cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ero Frequent Visitor
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

Accepted Solutions
ero Frequent Visitor
Frequent Visitor

Re: Display Dynamic URL Images

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. 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Display Dynamic URL Images

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 other members find it more quickly.
ero Frequent Visitor
Frequent Visitor

Re: Display Dynamic URL Images

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. 

Community Support Team
Community Support Team

Re: Display Dynamic URL Images

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 other members find it more quickly.