Forum Discussion

MagMag31's avatar
MagMag31
Regular Visitor
3 years ago
Solved

Calculate cumulative total value by date and Client

Hello,

can you help me please to add calculate column (cumul) that calculate the the cumulative budget total per client per month for each year as explained in the table

 

 

thank you

 

 

  • Hi,

    This should ideally be solved with a measure but since you want a calculated column formula solution, write these calculated column formulas

    Date = 1*("1/"&Data[Month]&"/"&Data[Year])
    RT = CALCULATE(SUM(Data[Budget]),FILTER(Data,Data[Client Number]=EARLIER(Data[Client Number])&&Data[Date]<=EARLIER(Data[Date])))

    Hope this helps.

     

9 Replies

  • Hi,

    This should ideally be solved with a measure but since you want a calculated column formula solution, write these calculated column formulas

    Date = 1*("1/"&Data[Month]&"/"&Data[Year])
    RT = CALCULATE(SUM(Data[Budget]),FILTER(Data,Data[Client Number]=EARLIER(Data[Client Number])&&Data[Date]<=EARLIER(Data[Date])))

    Hope this helps.