Forum Discussion
tokhir
2 years 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
Ankur04
Resolver II
2 years agoHi tokhir ,
can you try something like this, please let me know if your requirement is different.
Non blank date = VAR maxdate = CALCULATE(MAX('Table (10)'[Date]),'Table (10)'[Amount] <> BLANK())
RETURN CALCULATE(SUM('Table (10)'[Amount]),'Table (10)'[Date] = maxdate)
Thanks,