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

Turn table - how?

Hello I have the following situation in the table below:


productcollectionline
1630110
16301
30

By rotating the table would have to be like this:


productcollectionline
163011030


How to do it?

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try using a LOAD with group by clause and summing the columns:

LOAD

Sum(collection) as collection,

Sum(line) as line,

product

from Table.xls group by product;

Hope this helps,

Stefan

View solution in original post

4 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Add Product as Dimension, and  add  Sum(Collection) and Sum(Line) as expressions.

Regards,

Jagan.

Not applicable

If you are ok with having an empyty column you can do this:

Create a straight table with dimensions product, collection, and line.

create an expression like:  if(1=1,'') with the lable of the chart as '

giovanneb
Creator II
Creator II
Author

forgot to say that this had to be treated in the data load, I'm reading an excel spreadsheet and would leave the QVD gave as presented

swuehl
MVP
MVP

Try using a LOAD with group by clause and summing the columns:

LOAD

Sum(collection) as collection,

Sum(line) as line,

product

from Table.xls group by product;

Hope this helps,

Stefan