Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pivot Table

Hi guys,

I have a pivot table but what I would like to do is put the sizes along the top and sum the physical and the free columns per size

Capture.JPG

I would like the output to look like this

30S     40R     42L     42R     44L

1          20       8        1         35

Is this possible with the expression somehow?

Thanks!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Drag the Size header to the right and just above the expression. When you see a horizontal blue line let go and the Size dimension should be pivoted like you want.


talk is cheap, supply exceeds demand

View solution in original post

7 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Drag the Size header to the right and just above the expression. When you see a horizontal blue line let go and the Size dimension should be pivoted like you want.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Amazing.  Who knew it was something so simple!

Thanks Gysbert

Anonymous
Not applicable
Author

Hi guys,

Would you happen to know how to sort the size from S to XL on the top row

Capture.JPG

Thanks!

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Sort that dimension by this expression: =match(only({1}Size),'XS','S','M','L','XL')


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

I tried that but it didn't work..

Capture.JPG

Thanks a lot for your help so far though

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Oops, typo. Change {$1} into {1}.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Brilliant! Thanks a lot