Forum Discussion
yousef_alsalem
2 years agoNew Member
Getting selected Month from a slicer
Hi, I have issue with getting the selected value from a drop down list slicer. I have a mesure in the Months table to catch the select value in the slicer SelectedMonth = SELECTEDVALUE('Months'[M...
- 2 years ago
Did you create a measure? From your file:
Your screenshot shows a summarized column, not a measure.
ERD
Community Champion
2 years agoOh, sorry, indeed, it will give an error since it's a measure. Try this:
EmpCount =
var mon = SELECTEDVALUE('Months'[MonthName])
VAR data =
CALCULATE(
COUNT(MainData[Employee Id]),
MainData[Business Unit] = SELECTEDVALUE(Joiners[Business Unit]),
MainData[Hiring Month] = mon
)
RETURN data
yousef_alsalem
2 years agoNew Member
Theres is no slice for the business unit.
In the next step I will have to add more filters, like by year and quarter etc.
I have added a dummy file at the end of my post.
- ERD2 years ago
Community Champion
Actually there is, and you can see it on your screenshot:
- yousef_alsalem2 years agoNew Member
It gives no result
:1023034i5BA7A9B07F2833B1:
- ERD2 years ago
Community Champion
Did you create a measure? From your file:
Your screenshot shows a summarized column, not a measure.