Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Peony
Creator III
Creator III

How to convert columns to rows in load script?

Hi All.

Please, need your advice how I can convert columns to rows using load script from this view

User2019-Jan2019-Feb
User 12,7083,009
User 29031,003
User 3501557

 

To this view

UserDateSum
User 12019-Jan2,708
User 12019-Feb3,009
User 22019-Jan903
User 22019-Feb1,003
User 32019-Jan501
User 32019-Feb557



Labels (2)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

Use cross table

CrossTable(Date,Value,1)
LOAD
User,
"2019-Jan",
"2019-Feb"
FROM [lib://Downloads/New Microsoft Excel Worksheet (3).xlsx]
(ooxml, embedded labels, table is Sheet2);

 

check below

https://community.qlik.com/t5/Qlik-Design-Blog/The-Crosstable-Load/ba-p/1468083

https://community.qlik.com/t5/Qlik-Design-Blog/The-Crosstable-Load/ba-p/1468083

View solution in original post

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

Use cross table

CrossTable(Date,Value,1)
LOAD
User,
"2019-Jan",
"2019-Feb"
FROM [lib://Downloads/New Microsoft Excel Worksheet (3).xlsx]
(ooxml, embedded labels, table is Sheet2);

 

check below

https://community.qlik.com/t5/Qlik-Design-Blog/The-Crosstable-Load/ba-p/1468083

https://community.qlik.com/t5/Qlik-Design-Blog/The-Crosstable-Load/ba-p/1468083

Peony
Creator III
Creator III
Author

Perfect!

Thank You much!