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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.