Forum Discussion

Saad_Hanif456's avatar
2 years ago
Solved

New 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  ...
  • Anonymous's avatar
    Anonymous
    2 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)
    )
    

     

     

  • Saad_Hanif456's avatar
    Saad_Hanif456
    2 years ago

    Dear Anonymous ,

    Perfect brother.

     

    Thank you so much.

     

    Regards,

    Saad Hanif