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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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)