Forum Discussion
Report Last Non Blank Row
- 4 years ago
Hi FayeB1901
Try this:
Measure=
Var _A = max(table[Date])
If(isblank(max(table[value])),
calculate(max(table[value]),filter(all(table),table[Date]<_A&&table[value]<>blank())),
max(table[value])
)If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/ - 4 years ago
Hi Vahid
No unfortunately no good - not sure what is going on here with the calculation!
Hi FayeB1901
Try this:
Measure=
Var _A = max(table[Date])
If(isblank(max(table[value])),
calculate(max(table[value]),filter(all(table),table[Date]<_A&&table[value]<>blank())),
max(table[value])
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
- FayeB19014 years agoHelper I
Hi Vahid
No unfortunately no good - not sure what is going on here with the calculation!
- VahidDM4 years agoSuper User
Try this:
Meas1ure = VAR _A = MAX ( table[Date] ) VAR _B = CALCULATE ( MAX ( table[Date] ), FILTER ( ALL ( table ), table[Date] < _A && table[value] <> BLANK () ) ) RETURN IF ( ISBLANK ( MAX ( table[value] ) ), CALCULATE ( MAX ( table[value] ), FILTER ( ALL ( table ), table[Date] = _B ) ), MAX ( table[value] ) )If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/