Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I would like to create a measure that counts the employee resignations by the year chosen on the year slicer - I have done a measure that does not quite work if I click on year 2021 in the date slicer it then counts resignations for 2021 and 2022 so I obviously have to put in a measure that just counts the year I select - any help would be appreciated
Solved! Go to Solution.
Give this a try.
Count Resigantions =
VAR _Start = MIN ( Date[Date] )
VAR _End = MAX ( Date[Date] )
RETURN
CALCULATE (
COUNTROWS ( Personnel_Records ),
Personnel_Records[Leaving Reason] = "Resignation",
Personnel_Records[Leaving Date] >= _Start,
Personnel_Records[Leaving Date] <= _End
)
Give this a try.
Count Resigantions =
VAR _Start = MIN ( Date[Date] )
VAR _End = MAX ( Date[Date] )
RETURN
CALCULATE (
COUNTROWS ( Personnel_Records ),
Personnel_Records[Leaving Reason] = "Resignation",
Personnel_Records[Leaving Date] >= _Start,
Personnel_Records[Leaving Date] <= _End
)
Spot on many thanks that brilliant
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |