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

Switch table column

Hello!

Following table:

order numbersubweight
1234567 50
1234567170
1234567290
9876543 30
9876543150
9876543260


Now would like to represent the weight of oder numer  & sub  in one line.

ornder numberweight order numberweight sub 1weight sub 2
1234567507090
9876543305060

 

Thank you for your help!

 

1 Reply
PrashantSangle

Use generic Load
try below script

Temp:
Load * Inline [
order_number, sub, weight
1234567, 0 , 50
1234567, 1, 70
1234567, 2, 90
9876543, 0, 30
9876543, 1, 50
9876543, 2, 60
];


test2:
Generic Load * Resident Temp;

drop Table Temp;

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂