Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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>
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 103 | |
| 66 | |
| 65 | |
| 56 |