Forum Discussion

KiranKJ's avatar
KiranKJ
Regular Visitor
3 years ago
Solved

DAX formula

Hello Community Member 

 

This is my sample data

EMpIDProcess NameJoining dateR1 Start dateR2 Start dateR3 Start dateBAU Start DateCapacity End date 
ABC123Process 17-Mar-2314-Mar-2321-Mar-2328-Mar-234-Apr-2331-Dec-23
ABC124Process 17-Mar-2314-Mar-2321-Mar-2328-Mar-234-Apr-2331-Dec-23
ABC125Process 17-Mar-2314-Mar-2321-Mar-2328-Mar-234-Apr-2331-Dec-23
ABC126Process 17-Mar-2314-Mar-2321-Mar-2328-Mar-234-Apr-2331-Dec-23
ABC127Process 216-Mar-2323-Mar-2330-Mar-236-Apr-2313-Apr-2331-Dec-23
ABC128Process 216-Mar-2323-Mar-2330-Mar-236-Apr-2313-Apr-2331-Dec-23
ABC129Process 216-Mar-2323-Mar-2330-Mar-236-Apr-2313-Apr-2331-Dec-23
ABC130Process 210-Apr-2317-Apr-2324-Apr-231-May-238-May-2331-Dec-23
ABC131Process 210-Apr-2317-Apr-2324-Apr-231-May-238-May-2331-Dec-23
ABC132Process 210-Apr-2317-Apr-2324-Apr-231-May-238-May-2331-Dec-23

 

Expected Output  for process 1(SLicer)

 

 Filter as Process 1    
      
Week Start DateEmployee JoinedEmp in R1 StageEmp in R2 StageEmp in R3 StageEmp in BAU
6-Mar-234    
13-Mar-23 4   
20-Mar-23  4  
27-Mar-23   4 
3-Apr-23    4
10-Apr-23    4
17-Apr-23    4
24-Apr-23    4
1-May-23    4
8-May-23    4
15-May-23    4
22-May-23    4
29-May-23    4

 

Expected Outcome Process 2

 

 Filter as Process 2(Filter/Slicer)   
      
Week Start DateEmployee JoinedEmp in R1 StageEmp in R2 StageEmp in R3 StageEmp in BAU
6-Mar-23     
13-Mar-233    
20-Mar-23 3   
27-Mar-23  3  
3-Apr-23   3 
10-Apr-233   3
17-Apr-23 3  3
24-Apr-23  3 3
1-May-23   33
8-May-23    6
15-May-23    6
22-May-23    6
29-May-23    6

 

I would need help on writing  dax formula which would work on seperate connected calendar table to the employee table and this has to give me the count of the employee who has joinined at differnt days based on the weekly calendar date.

 

Other output is working day between the each stages such as joining date and r1 start date and so on. The working day example has not been included in the output table 

1 Reply