Forum Discussion

Saad_Hanif456's avatar
2 years ago
Solved

Leavers

Dear Experts,

 

I am stuck in the challenging situation.

 

Have a payroll data for all the months and years in one sheet but there is not any column Active / Nonactive staff.
How can i identify/filter employees ( the entire row of the staff) left till to date by Emp ID which is unique.

 

Please suggest anyone who have an idea of performing it

 

Following is the sample data for helping me in this regards.

 

Payroll DateEmp IDName Department
01-10-2210022Sajid Sales
01-10-2210023ImranSales
01-10-2210024AliSales
01-10-2210025AbidMarketing
01-10-2210026RomailMarketing
01-10-2210027UmarFinance
01-11-2210022Sajid Sales
01-11-2210028RehanSales
01-11-2210024AliSales
01-11-2210025AbidMarketing
01-11-2210026RomailMarketing
01-11-2210027UmarFinance
01-12-2210022Sajid Sales
01-12-2210028RehanSales
01-12-2210024AliSales
01-12-2210025AbidMarketing
01-12-2210029KashanMarketing
01-12-2210027UmarFinance

 

Note: Employees highlighted in the Yellow color is left from the Company in the respective month

  • Simple enough, WINDOW functions do the trick more easily than Time Intelligence functions in such a scenario.

4 Replies

  • Simple enough, WINDOW functions do the trick more easily than Time Intelligence functions in such a scenario.

  • AntrikshSharma's avatar
    AntrikshSharma
    Icon for Community Champion rankCommunity Champion

    Saad_Hanif456 If you don't know who left and there is no column indicating that then how can we/DAX identify who left? Instead of spending time on this go back to your client/DBA and push them to add a column for Exit date, this is a very basic information, they must maintain it.