Forum Discussion
yoav20007
Helper II
8 years agohelp with dax calculate column
I need to create calculate column that add the last day rate if it is empty. I need that all date have rates . Thanks !!! date rate all rates 1/11/17 5 2/11/17 ...
yoav20007
Helper II
8 years agoThanks Zubair_Muhammad
But when i have more than 1 day blanks rates it's dosn't work.
I need to repeat the same rate
Zubair_Muhammad
Community Champion
8 years agoHi yoav20007
Try this
=
IF (
ISBLANK ( Table1[Rates] ),
CALCULATE (
LASTNONBLANK ( Table1[Rates], Table1[Rates] ),
FILTER ( Table1, Table1[date] < EARLIER ( Table1[date] ) )
),
Table1[Rates]
)- yoav200078 years ago
Helper II
Thanks Zubair_Muhammad
I try .
But it dosn't works. That's the result . the same number for all of them.
- Zubair_Muhammad8 years ago
Community Champion
yoav20007
Hmmm!!!! May be this one= IF ( ISBLANK ( Table1[Rates] ), CALCULATE ( LASTNONBLANK ( Table1[Rates], Table1[Rates] ), FILTER ( Table1, Table1[date] < EARLIER ( Table1[date] ) && Table1[date] > MIN ( Table1[date] ) ) ), Table1[Rates] )- yoav200078 years ago
Helper II
Thanks again Zubair_Muhammad but ...
Almost :)
that's the result. after the first time it dosn't works.