Forum Discussion
Finding the right value using Lastnonblank
- 5 years ago
Clint , Try like
lastnonblankvalue(Table[Week],max(Table[Comment]))
or
calculate(lastnonblankvalue(Table[Week],max(Table[Comment])), allexcept(Table, Table[project]))
or
calculate(lastnonblankvalue(Table[Week],max(Table[Comment])), filter(allselcted(Table), Table[project]=max( Table[project])))
Clint , Try like
lastnonblankvalue(Table[Week],max(Table[Comment]))
or
calculate(lastnonblankvalue(Table[Week],max(Table[Comment])), allexcept(Table, Table[project]))
or
calculate(lastnonblankvalue(Table[Week],max(Table[Comment])), filter(allselcted(Table), Table[project]=max( Table[project])))
Thanks Amit. This worked: lastnonblankvalue(Table[Week],max(Table[Comment])) but I don't understand why? The week column should never have a blank in the field as it is populated from the start of a project to the thend of the project. it is the comment field that will have blanks in the column and I need to always extract the latest comment; which is always the last non-blank in that row as determined by max week date