Forum Discussion
Dynamic images based on selections
- 3 months ago
Hi Th1sGuy
I'm sure there must be plenty of different ways to achieve this, but the first thing that comes to my mind is using the new image SVG option (https://www.youtube.com/watch?v=BvKbKQHVNi0&t=125s).
However, you will need to convert or generate your images in SVG format.
Once you have the SVG image code, it's pretty easy , just create measures (you can use any AI tool to convert your SVG image code into a measure), like in the attached sample, and use a slicer to switch between the images.
I have attached the sample I created for your reference.
Hi Th1sGuy
Approach is to handle this to return image URLs dynamically through measure
Can you try this approach
Dynamic Icon =
VAR Program = SELECTEDVALUE('Table'[Program])
VAR Status = SELECTEDVALUE('Table'[Status])
RETURN
SWITCH(TRUE(),
Program = "Wind" && Status = "Green", "https://.../wind_green.png",
Program = "Wind" && Status = "Orange", "https://.../wind_orange.png",
Program = "Wind" && Status = "Blue", "https://.../wind_blue.png",
Program = "Solar" && Status = "Green", "https://.../solar_green.png",
Program = "Solar" && Status = "Orange", "https://.../solar_orange.png",
Program = "Solar" && Status = "Blue", "https://.../solar_blue.png", BLANK())
- Th1sGuy3 months agoFrequent Visitor
Tried getting this to work, but I'm guessing I'm doing something wrong. Would it be helpful to share the PBIX?