Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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 !


1 Reply
sunny_talwar

May be this

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