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

How can i convert rows to column in pivot table

Madhura_0-1710852351240.png

This is the sheet that I created in Tableau. How can I replicate it in QlikView? The values are the sum of sales (in the block). I have tried creating a pivot table, but I can't get months as columns; all months are in one column instead of different columns. Thanks in advance.

 

Labels (1)
  • Chart

5 Replies
Clement15
Creator
Creator

Hello, normally you should be able to put dimensions in columns in a pivot table

Clement15_0-1710854722101.png

 

LRuCelver
Partner - Creator III
Partner - Creator III

You are either using the wrong chart, have set up the pivot table incorrectly or there is a problem with your data model.

Here is how it should look:

LRuCelver_0-1710855047664.pngLRuCelver_1-1710855071162.png

And here is the data I've used:

Sales:
Load
	"Product Line",
    Date(MakeDate(Year, Month), 'MMMM YYYY') as "Order Month",
    Num(Sales) as Sales
Inline [
Product Line, Year, Month, Sales
Classic Cars, 2003, 1, 36550
Classic Cars, 2003, 2, 18940
Classic Cars, 2003, 3, 97090
Classic Cars, 2003, 4, 57550
Classic Cars, 2003, 5, 92910
Classic Cars, 2003, 6, 43840
Motorcycles, 2003, 1, 
Motorcycles, 2003, 2, 22290
Motorcycles, 2003, 3, 10770
Motorcycles, 2003, 4, 21810
Motorcycles, 2003, 5, 19820
Motorcycles, 2003, 6, 1860
];
Madhura
Contributor II
Contributor II
Author

Madhura_0-1710856110530.png

Im not getting any options for rows and columns.

LRuCelver
Partner - Creator III
Partner - Creator III

Click on your dimension and drag it to the top right corner of your chart:

LRuCelver_0-1710856880821.png

Drop it there and it should be used as the columns:

LRuCelver_1-1710856903409.png

 

Madhura
Contributor II
Contributor II
Author

Got it,thank you so much