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: 
Not applicable

How to make data linear?

Below is the current structure of my data and i would like that to be changes into the structure that is posted below.

DateRecnumberTo StatusFrom Status
12/1/20101ValidInValid
12/2/20101InvalidValid
12/3/20101ValidInvalid
12/3/20101InvalidValid
12/1/20102ValidValid
12/1/20103ValidInvalid


I would like this to be changed into linear data in qlikview but not sure where to start.

DateRecnumberStatus
12/1/20101Valid
12/1/20101InValid
12/2/20101Invalid
12/2/20101Valid
12/3/20101Valid
12/3/20101Invalid
12/3/20101Invalid
12/3/20101Valid
12/1/20102Valid
12/1/20103Valid
12/1/20103Invalid


10 Replies
Not applicable
Author


Then use a flag instead

temp:
load *,if(peek('ID')<>ID,'1') as flag resident [DAILY TABLE] order by ID,recnum desc;


[MAX TABLE]:noconcatenate load DATE,recnum,STATUS,ID,STATUS_BHANGE resident temp where flag='1';
drop table temp;