Forum Discussion
Saad_Hanif456
Helper I
2 years agoNew Joiner Count
Dear Experts, Need to calculate how many employees joined each month but the trick is in the following table example: (Remarks column is given for help) S.No Payroll Month Code Name ...
- Anonymous2 years ago
Hi Saad_Hanif456 ,
Try this.
Measure = VAR _a = MIN('Calendar'[Date]) var _b = EOMONTH(_a,0) RETURN CALCULATE( DISTINCTCOUNT(Payroll[CNIC ]), FILTER(ALL(Payroll),[Firsthiringdate] >= _a && 'Payroll'[Firsthiringdate] <= _b) ) - 2 years ago
Dear Anonymous ,
Perfect brother.
Thank you so much.
Regards,
Saad Hanif
Anonymous
2 years agoNot applicable
Hi Saad_Hanif456 ,
Try this.
Measure =
VAR _a = MIN('Calendar'[Date])
var _b = EOMONTH(_a,0)
RETURN
CALCULATE(
DISTINCTCOUNT(Payroll[CNIC ]),
FILTER(ALL(Payroll),[Firsthiringdate] >= _a && 'Payroll'[Firsthiringdate] <= _b)
)
Saad_Hanif456
Helper I
2 years agoDear Anonymous ,
Perfect brother.
Thank you so much.
Regards,
Saad Hanif