Forum Discussion

BGB's avatar
BGB
Helper II
4 years ago
Solved

Running Total Based on Budget Division by Duration

Hi There, I need a solution to this problem, please.   My dataset looks like below   So I need to split the total budget into number of months from the start date to the end date. Whic...
  • tamerj1's avatar
    4 years ago

    Hi BGB 

    please try

     

    Forecast Budget running total in Date =
    CALCULATE (
        SUMX (
            VALUES ( 'DateTable'[Month-Year] ),
            CALCULATE ( DIVIDE ( SUM ( Sheet1[budget] ), [User Duration Months] ) )
        ),
        ALLSELECTED ( 'DateTable' ),
        'DateTable'[Date] <= MAX ( 'DateTable'[Date] )
    )