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.
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
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> )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
75 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |