Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi everyone.
I've got a calendar table with a hierarchy of dates and a slicer withe the years in the report.
I created a measure that should return the selected year, using
Hi @mtrevisiol
Did you select multiple year values in the slicer? The SELECTEDVALUE only returns a single value. When multiple values are selected or none value is selected, it will return the alternative value. When you select a single year value, it works well.
I created a sample file, see if there is any difference from yours.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
@mtrevisiol
Hope you have a Year column in the Calendar table?
Try this:
selected year = SELECTEDVALUE(Calendar[Year], 123)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
I've just tried, but still doesn't work...
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 21 | |
| 17 | |
| 11 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 43 | |
| 36 | |
| 35 |