Forum Discussion

Kwaritnon's avatar
Kwaritnon
Frequent Visitor
3 years ago
Solved

How to fix the running total is missing value or replace the blank with previous month value

How to fix the runung total is missing value or repalce the blank with previous month value, currntly here is my Dax 

 

Running Total with Blanks =
VAR PrevMonthTotal =
CALCULATE (
[Cml Total FY21 Wins (p.a)-Used],
DATEADD ('Date Table_21-23'[Date], -1 &&-2, MONTH )
)
RETURN
IF (
ISBLANK ( [Cml Total FY21 Wins (p.a)-Used] ),
PrevMonthTotal,
[Cml Total FY21 Wins (p.a)-Used]
)
 

 

1 Reply