Forum Discussion
millercj
1 year agoRegular Visitor
Getting Last NonBlank Value in a column
I have a data set that looks like this: Date Sales Ratio 1/1/2024 156164 .5812 1/15/2024 16871 2/1/2024 561685 2/15/2024 468153 .6021 3/1/2024 54615313 .5011 ...
- Anonymous1 year ago
Hi All,
Firstly gmsamborn and Kedar_Pande thank you for your solutions!
And millercj ,Here is my solution I hope it helps you!LastNonBlankRatio = VAR LastDateWithRatio = MAXX( FILTER( ALL('Table'), LASTNONBLANK('Table'[Ratio],'Table'[Date]) ), 'Table'[Date] ) RETURN CALCULATE( MAX('Table'[Ratio]), 'Table'[Date] = LastDateWithRatio )Hope it helps!
Best regards,
Community Support Team_ Tom ShenIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
1 year agoNot applicable
Hi All,
Firstly gmsamborn and Kedar_Pande thank you for your solutions!
And millercj ,Here is my solution I hope it helps you!
LastNonBlankRatio =
VAR LastDateWithRatio =
MAXX(
FILTER(
ALL('Table'),
LASTNONBLANK('Table'[Ratio],'Table'[Date])
),
'Table'[Date]
)
RETURN
CALCULATE(
MAX('Table'[Ratio]),
'Table'[Date] = LastDateWithRatio
)
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.