Forum Discussion
JB
Helper II
3 years agoCalculated column repeats value until it is updated
Hi, I'd like a calculated column that repeats the last given value until it is updated. See below for an example. Many thanks for your help.
- 3 years ago
Greg_Deckler
Fixed it, just needed to change MINX to MAXX.Thanks.
Greg_Deckler
Community Champion
3 years agoJB Try:
Last updated tons column =
VAR __Date = [Week Ending Date]
VAR __LastDate = MINX( FILTER( 'Table', [Tons] <> BLANK() && [Week Ending Date] <= __Date ), [Week Ending Date] )
VAR __LastTons = MINX( FILTER( 'Table' [Week Ending Date] = __LastDate ), [Tons] )
RETURN
__LastTons- JB3 years ago
Helper II
Hi Greg, thanks for your reply.
Unfortunately it is repeating the first value found rather than updating them weekly, see below
- JB3 years ago
Helper II
Greg_Deckler
Fixed it, just needed to change MINX to MAXX.Thanks.
- Greg_Deckler3 years ago
Community Champion
JB Whoops! Glad you got it figured out!