Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
orangebloss
Creator

Converting columns to rows with multiple fields

 

My input table has Resource types, companies and week numbers showing allocation of resources. I need to load the data so that I can chart by week the number of resources by type and company. I've tried using Crosstable but as I have more than one column I need to include I'm not getting the results I need.

The table:

orangebloss_0-1747900608779.png

 

 

The required result:

orangebloss_1-1747900640593.png

 

Labels (2)
1 Solution

Accepted Solutions
Sayed_Mannan
Creator II

Hi, you can still use crosstable to achieve the desired result, you just need to leave the first two column.
here is the script that would work for you:

CrossTable(Week, Allocation, 2) // here 2 represent the no of column you want to skip.

 

Best Regards,

Sayed Mannan Ahmad

View solution in original post

2 Replies
henrikalmen
Specialist II

Have you tried to follow "Example 3" in the documentation for crosstable?

Sayed_Mannan
Creator II

Hi, you can still use crosstable to achieve the desired result, you just need to leave the first two column.
here is the script that would work for you:

CrossTable(Week, Allocation, 2) // here 2 represent the no of column you want to skip.

 

Best Regards,

Sayed Mannan Ahmad