Forum Discussion
danielhough
3 years agoHelper II
Carry Forward Values until Change
Hello everyone! I have a issue below that I am trying to resolve. I have daily rates in the below table. The rate for July, 1.14043 remains constant throught its next change on August 1, 1.55169. I n...
- 3 years ago
The method I posted was using measures.
If you want it as a calculated column, use:
Filled Value = VAR _LNB = CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( 'Table', 'Table'[Date] <= EARLIER ( 'Table'[Date] ) && NOT ISBLANK ( 'Table'[Daily Rate] ) ) ) RETURN LOOKUPVALUE ( 'Table'[Daily Rate], 'Table'[Date], _LNB )
PaulDBrown
3 years agoCommunity Champion
The method I posted was using measures.
If you want it as a calculated column, use:
Filled Value =
VAR _LNB =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER (
'Table',
'Table'[Date] <= EARLIER ( 'Table'[Date] )
&& NOT ISBLANK ( 'Table'[Daily Rate] )
)
)
RETURN
LOOKUPVALUE ( 'Table'[Daily Rate], 'Table'[Date], _LNB )
danielhough
3 years agoHelper II
Hey Paul! What I did was create a summarized/filteres table from the main table and utitluze your code above and it worked!!