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
jwjwjwjwjw
Advocate II
Advocate II

Image Selection

So I have a table visual with employee names and attributes. I'm also using the image viewer visual to display a portrait image that would change based on selection in the table visual. 

 

The problem comes when nothing is selected on the table, as the first image URL is displayed but I can't figure out a way to display the name of the "default" employee/image. SELECTEDVALUE doesn't work like it does when an employee is selected in the table, because there is no selection. I could switch to a slicer with a "force selection" feature, but then I lose the table functionality, or at least the space/continuity that comes with a single visual. I have tried adding a multi-row card for the employee name, but that doesn't revert to the first line after an employee is unselected in the original table.

 

Maybe I'm missing something obvious, as I'd think this would come up pretty regularly on the forums and I see nothing. Any ideas?

 

Thanks, 

 

jw

1 REPLY 1
Phil_Seamark
Employee
Employee

Hi @jwjwjwjwjw

 

You could try a DAX pattern in your calculated measure along these lines, that will only display the result of your measure if the user has made a selection.  The main thing about this is if nothing is selected (or filtered) on the field, nothing will display

 

Image Measure = 
IF(
	ISFILTERED('Table'[yourfield]),
        <dax to work out image url here>
)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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.