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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Dynamic image with no filter selected or on default

Hello,

 

I'm trying to dynamically display images based on selected filters. Currently my visualization works but unfortunately when nothing is selected, the viz shows a calculated result which is not what I want. I'm using the multi-row card viz for the image display, as I said all I want to adjust is the "default" image aka when no filters are selected. 

Right now, I have two separate measures to achieve my result. 

 

Banking= MAX('ETH'[Comms])
Image measure = SWITCH([Banking], "Available", "IMAGE URL", "Unavailable", "ANOTHER IMAGE URL")
 
What I need is the ability to add another URL so when nothing is selected, that URL is shown. 
Any ideas? Thanks
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You could try ISFILTERED() function. For example:

IF(ISFILTERED(slicer),IMAGE URL,ANOTHER IMAGE URL)

 

Best Regards,

Jay

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

You could try ISFILTERED() function. For example:

IF(ISFILTERED(slicer),IMAGE URL,ANOTHER IMAGE URL)

 

Best Regards,

Jay

VijayP
Super User
Super User

@Anonymous 

you can use what @amitchandak  mentioned above and it should work. 

Also you can modify little  SWITH(TRUE(), your reason is avaiable , first url, your reason unavailable, another url, other wise default url) , this also should work




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

Many thanks, I'm actually exactly trying (and failing) to do that: the default URL part is failing. I also get an error whenever I try the "SWITCH(TRUE())..." measure it keeps telling me switch is not capable of measuring True/False and text types. Any ideas? 

 
amitchandak
Super User
Super User

@Anonymous , Column is not very clear

example

Image measure = SWITCH(not(isblank([Banking])), [IMAGE URL],[ANOTHER IMAGE URL])

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Unfortunately, I'm getting calculation error. I'll try to clarify what I'm trying to achieve.

 

If nothing is selected, I want the viz to show a separate image URL (default URL), if something is selected, I want it to show an image URL based on that values (right now it's "Available" or "Unavailable"). I tried to achieve this by changing my Banking measure to 

 

Banking = SELECTEDVALUE('ETH'[Comms], "DEFAULT URL") but I cannot incorporate this to my Image measure without breaking. Any ideas? 

Thanks

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.