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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Microsoft Employee
Microsoft 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.