Forum Discussion
ForzaMami
4 years agoRegular Visitor
one top row data
It's a little hard to explain, I need to use the same formula in a single dax formula, the one in the top row. I'm trying to power the "Exponential Smoothing" column in the excel below. Is something ...
tamerj1
Community Champion
4 years agoHi ForzaMami
you may try
Exponential Smoothing =
VAR CurrentYearMonth =
MAX ( Table[Year_Month] )
VAR PreviousStatus1 =
CALCULATE ( [Status], Table[Year_Month] = CurrentYearMonth - 100 )
VAR PreviousStatus2 =
CALCULATE ( [Status], Table[Year_Month] = CurrentYearMonth - 200 )
RETURN
IF (
NOT ISBLANK ( PreviousStatus1 ) && NOT ISBLANK ( PreviousStatus2 ),
IF (
ISBLANK ( PreviousStatus1 ),
PreviousStatus2,
0.5 * PreviousStatus1 + 0.5 * PreviousStatus2
)
)
ForzaMami
4 years agoRegular Visitor
Hi,
Dont work. If you want to get the 1st and 2nd months retrospectively, it doesn't work either.