Forum Discussion
tokhir
1 year agoFrequent Visitor
Get last non blank value ordered by date
I have two column: Date and Amount columns Date 01.11.2024 02.11.2024 03.11.2024 04.11.2024 05.11.2024 06.11.2024 07.11.2024 08.11.2024 09.11.2024 10.11.2024 Am...
- Anonymous1 year ago
Hi tokhir ,
You can create a measure as below to get it:
Last non blank value = VAR _maxdate = CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( 'Table', NOT ( ISBLANK ( 'Table'[Amount] ) ) ) ) RETURN CALCULATE ( MAX ( 'Table'[Amount] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] = _maxdate ) )Best Regards
Anonymous
1 year agoNot applicable
Hi tokhir ,
You can create a measure as below to get it:
Last non blank value =
VAR _maxdate =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER ( 'Table', NOT ( ISBLANK ( 'Table'[Amount] ) ) )
)
RETURN
CALCULATE (
MAX ( 'Table'[Amount] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] = _maxdate )
)
Best Regards