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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

pivot with running_totals in load

Hi,

we have a table with about 20000 distinct keys.

For each key there are 104 weeks (in rows) with values.

For each key I have to create 104 new columns (pivoting) and calculate the running_total for one of the values.

Because it is hard to explain, I uploaded an very simple example with only 1 key and 4 weeks.

If you look at the values you for vw1 to vw4 you can see how the running totals have to be calculated.

Any idea how to do that in a load script?

Regards Roland

example.jpg

0 Replies