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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QlikView “Copy Down” Previous NonZero Values

I have a QlikView application of Employees, months and salaries (along with other stuff, obviously). I have also a column that tells me the percentage pay movement this month.

I'd like to, in the Load Script, "copy down" this data so that I can find the most recent previous pay percentage increase and the month (please see the picture).

So I effectively have the yellow data, and want to generate the red data, for each employee ID. I'm not massively fussed on EXACTLY what the non-zero values are - i.e. if they're zero or NULL or anything.

Y4my7cm.png

Should probably note, this isn't my Excel/CSV file, this is the actual QlikView table - due to the way our data comes out of the source system, we have to calculate basic pay movements in the load script (along with other stuff) using 3 or 4 temporary tables, then load them all together.

2 Replies
petter
Partner - Champion III
Partner - Champion III

You can employ the Peek()-function along with If() and sorting the table you read from on date ascending. I give this comment from a phone so I cant give you a full example....

callmedaddy
Partner - Contributor II
Partner - Contributor II

Any solution yet?