Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Count Employee allocations

I have allocation records, where an employee is allocated to various clients & the employee works at diff departments within the client, employees may be rotated or extended to another task within th...
  • V-lianl-msft's avatar
    V-lianl-msft
    5 years ago

    Try to create a new column like below:

    status_1 = 
     var rank_ = 
     RANKX(
         FILTER('Table',
            EARLIER('Table'[EmpID])='Table'[EmpID]&&
            'Table'[Client]=EARLIER('Table'[Client])
        ),
        'Table'[Start Date],,ASC,Dense)
    return IF(rank_=1,"New Allocation
    ","Extension")