Forum Discussion
BGB
Helper II
4 years agoRunning 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...
BGB
Helper II
4 years agoThis is the measure I finally used however I need to mark tamerj1 answer as correct as it pointed me to the right direction
Forecast Budget running total in Date =
VAR MaxEnddate = MAXX(Sheet1,Sheet1[End Date])
VAR Calc=
CALCULATE (
SUMX (
VALUES ( 'DateTable'[Month-Year] ),
CALCULATE ( [Forcast Budget To end date] )
),
ALLSELECTED ( 'DateTable' ),
'DateTable'[Date] <= MAX('DateTable'[Date] )
)
VAR Calc1 = CALCULATE(Calc,Sheet1[Start Date] <=MaxEnddate)
VAR Calc2 = if(ISBLANK([Forcast Budget To end date]),BLANK(),Calc1)
Return Calc2