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
I used before and now it seems to not work I attach the powerbi file
https://www.dropbox.com/s/7pw7fkn7u0w3xef/TEST.pbix?dl=0
if slicer it is selected the display 1 otherwise 0
before was working why not? I do miss something?
Solved! Go to Solution.
Hi @snifer
You only have one value ("local") in the column used for your slicer. As such, SELECTEDVALUE will always return "local", whether your slicer is selected or not. Resulting in your measure always returning 1.
If you add another record to your table, your measure will work as expected.
If you will only ever have one record in that table, you could use the ISFILTERED function instead.
Best regards,
Martyn
If I answered your question, please help others by accepting it as a solution.
Hi @snifer
You only have one value ("local") in the column used for your slicer. As such, SELECTEDVALUE will always return "local", whether your slicer is selected or not. Resulting in your measure always returning 1.
If you add another record to your table, your measure will work as expected.
If you will only ever have one record in that table, you could use the ISFILTERED function instead.
Best regards,
Martyn
If I answered your question, please help others by accepting it as a solution.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |