Forum Discussion

Arun_BI's avatar
Arun_BI
Icon for Helper I rankHelper I
4 years ago
Solved

How to spread values across start date and end dates

Hi Team,

 

I have a table with the following details. And I need to spread the FTE details across the months between the start date and end date for each staff member. Please refer to the desired output table. 

 

Table Details:

Staff NameProjectFTE AllocatedStart dateEnd date
SanjayAML0.51-Feb-2231-Dec-22
AbirFIFA0.73-Feb-2218-Nov-22
kapilFIFA16-Feb-2231-Aug-23
SanjayFIFA0.57-Feb-2231-May-22
AbirAML0.28-Feb-221-Mar-22
AbirISTA0.15-Feb-2231-May-23

 

Desired Output:

Monthsjanfebmaraprmayjunjulaug sepoctnovdec
Sanjay011110.50.50.50.50.50.50.5
Abir0110.80.80.70.70.70.70.70.70.7
Kapil011111110000

 

 

I cannot seem to get anything to work, any advice would be appreciated.

 

 

  • Hi amitchandak , Many thanks for sharing the blog. It is really helpful. I manage to spread the values but for me, i only need to spread the values and am not be required to split or divide. Is there any way I can spread the FTE values based on start and end dates? I have copied down my measure. Please let me know your thoughts   

     

    My measure : 

    Planned FTE = CALCULATE(SUMX(SUMMARIZE(FILTER(CROSSJOIN('FTE','Datetable'),'Datetable'[Date]>= (FTE'[Check Start date]) && 'Datetable'[Date]<=('FTE'[End Date])),'FTE'[Staff Name],Datetable[Date],'FTE'[FTE],'FTE'[Check Start date],' FTE'[End Date]),DIVIDE('FTE'[FTE],DATEDIFF('FTE'[Check Start date],'FTE'[End Date],DAY)+1)))

     

     

2 Replies