Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
phongnnguyen
Contributor II
Contributor II

Last status record without NULL

Hi everyone,

I have a problem with my set analysis. I want to find last status record like without Null

tradedateclosedate
01-Jan-201810-Dec-2017
02-Jan-201810-Dec-2017
03-Jan-2018-
04-Jan-2018-

I want my result is

tradedateClosedateClosedate_Fix

01-Jan-2018

10-Dec-201710-Dec-2017
02-Jan-201810-Dec-201710-Dec-2017
03-Jan-2018-10-Dec-2017
04-Jan-2018-10-Dec-2017

I take one more column Closedate_Fix with expression:

if(isnull(CloseDate)<>0,FirstSortedValue({< CloseDate = {'*'}>}CloseDate, -TradeDate),CloseDate)


Thanks for your help !


Labels (1)
1 Reply
sunny_talwar
MVP
MVP

May be this

If(IsNull(CloseDate), FirstSortedValue(TOTAL {<CloseDate = {'*'}>} CloseDate, -TradeDate), CloseDate)