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

How to transpose a table

Hi All

I'm new to QlikView so I'm trying to map out a source file with multiple rows into a table with specific allocation, like a pivot table  through the scripts.

I tried a few ways in the LOAD using Sum and Ifs but I get an error using sum and for the total as well.

From a csv file with something like this

Jorghino75_0-1711847544816.png

into something like this that can be stored into a qvd.

Jorghino75_1-1711847610085.png

I'm adding a file with sample data.

Any help and guidance would be greatly appreciated.

 

 

Labels (1)
2 Solutions

Accepted Solutions
PhanThanhSon
Creator
Creator

Hi,Here

you'll need the generic load statement, which you'll then need to join afterward. You can refer to Rob Wunderlich's script for guidance on this.

 
https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/

best regards Son

View solution in original post

Jorghino75
Contributor
Contributor
Author

Thanks @PhanThanhSon , 

I had to make some tweaks before initiating the generic load but it worked perfectly! 

View solution in original post

2 Replies
PhanThanhSon
Creator
Creator

Hi,Here

you'll need the generic load statement, which you'll then need to join afterward. You can refer to Rob Wunderlich's script for guidance on this.

 
https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/

best regards Son

Jorghino75
Contributor
Contributor
Author

Thanks @PhanThanhSon , 

I had to make some tweaks before initiating the generic load but it worked perfectly!