Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the following data
1971/01 Quantity | 1971-01 Amount | 1971-07 Quantity | 1971-07 Amount | 1972-01 Quantity | 1972-01 Amount | 1972-07 Quantity | 1972-07 Amount |
2 | 10 | 5 | 15 | 3 | 69 | 4 | 52 |
4 | 10 | 2 | 30 | 7 | 96 | 8 | 66 |
5 | 45 | 7 | 32 | 2 | 59 | 3 | 47 |
Now i want to convert this data into a format which i can use for a timeline chart. With the year in x-axis, i want to display the total amount and and quantity as the lines in a line chart. Basically i want to convert the above data into something that looks like this:
Year | Quantity | Amount |
1971 | 25 | 142 |
1972 | 27 | 389 |
Could someone please help me do this in Qlikview.
PS: I have a lot more fields than i have mentioned here. I am using data from 1971 - 2019.
I believe what you want to look into is the Crosstable function:
Also found a Design Blog post along the same lines that may be helpful as well:
https://community.qlik.com/t5/Qlik-Design-Blog/The-Crosstable-Load/ba-p/1468083
Regards,
Brett