Forum Discussion
suegee
7 years agoRegular Visitor
Employee Count based on Hire/Rehire date
Hi, I am new to Power BI and tried to find something that was similar to what I was trying to do. I didn't have much luck on this and appreciate any assistance. I have data that has unique employe...
- 7 years ago
Hi suegee
You may refer to below measure.
Measure = VAR currentDate = MAX ( Data[Date] ) RETURN CALCULATE ( COUNTROWS ( EE_List ), FILTER ( EE_List, EE_List[Year] = 2017 && EE_List[Date] <= currentDate ) )Regards,
Cherie
- 7 years ago
v-cherch-msft
Microsoft Employee
7 years agoHi suegee
You may refer to below measure.
Measure =
VAR currentDate =
MAX ( Data[Date] )
RETURN
CALCULATE (
COUNTROWS ( EE_List ),
FILTER ( EE_List, EE_List[Year] = 2017 && EE_List[Date] <= currentDate )
)Regards,
Cherie
suegee
7 years agoRegular Visitor
Thanks Cherie,
The only way I could get this to work is if I added second date calendar that had just 2017 dates in it, so that it could be the max and then it would work. Not sure if that's the right way to do it.