Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Cumulative total with specific date and value

Hi there, I’m trying since yesterday to find a solution for a specific issue concerning the cumulative total from a specific and forcing to add a specific value. The specific date is 2021/03/01 and...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi family,

    Sorry if I didn’t bring a lot of information

    I find finally the solution with two measures as you can see here :
    1- Cumulative Cash Balance = CALCULATE([Net Cash Flow],

        FILTER(ALL('Calendar'),'Calendar'[Week]<= MAX('Calendar'[Week]) && 'Calendar'[Week] > DATE(2021,03,01)))

     

    2- Cash Balance = CALCULATE(3200000 + [Cumulative Cash Balance], FILTER('Calendar','Calendar'[TheWeek] <>DATE(2021, 03, 01)))

     

    Thanks all for your help and hope this post can help others with the same issue 😉