Forum Discussion
Anonymous
4 years agoNot applicable
Help with advance IF function
Hi Friends, I was trying to insert "Last Result" using some Ifs Dax Function, but the result is always "Not Done" or Errors. I just want to have in "Last Result" the last data in previous column...
- 4 years ago
Use below in a custom column in PQ
= [l=List.FirstN(List.RemoveItems(List.Reverse(List.RemoveFirstN(Record.ToList(_),1)),{"Not Done"}),1), r=if List.IsEmpty(l) then "Not Done" else Text.Combine(l)][r]
speedramps
Super User
4 years agoHi Nycso94
Try this and click thumbs up and Accept As Solution please !
Last result =
VAR usermaxdate =
CALCULATE(
MAX(Surveys[Date]),
ALLEXCEPT(Surveys,Surveys[User])
)
RETURN
CALCULATE(
MAX(Surveys[Result]),
Surveys[Date] = usermaxdate
)