Skip to main content
Announcements
Join us on Sept. 17 to hear how our new GenAI Assistant empowers data professionals: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Nemo1
Creator II
Creator II

Help with Pivot Table

Hello everyone

 

So my problem is the following. 

I have a dataset, where I have a column called "Month" and another column called Sales. 

I need to display the different months in QlikSense as columns. To explain myself better, I need for every month, a column. How can I do that?

 

thanks 

 

 

2 Solutions

Accepted Solutions
Kushal_Chawda

@Nemo1  Create pivot table with Column dimension Month. Create two measure for Sales & Cost. Drag the values of Measure to Row Dimension

View solution in original post

Fabiano_Martino_Intelco
Partner - Creator II
Partner - Creator II

Hi @Nemo1 

I used the INLINE statement in my code to give you a self-contained example.

If you have your dataset in another format (Excel file, database tables, ...) you should modify the code in order to load your dataset from your specific source.

Regards

Fabiano

View solution in original post

16 Replies
Kushal_Chawda

@Nemo1  Not sure what do you mean. Probably you can share screenshot of required format. 

Nemo1
Creator II
Creator II
Author

So I have the data in excel represented like this:

Nemo1_0-1723103419657.png

and i wanna have it in qlik sense showed like this:

Nemo1_1-1723103450337.png

 

thanks!

 

 

Or
MVP
MVP

This looks like a standard pivot table, with the Measures dragged to the left (row) side and the date in the pivot (column) side. Are you having some sort of specific issue with this?

sergio0592
Specialist III
Specialist III

Hi,

You can try with the Generic load as 

 

GENERIC LOAD Date, Sales, Cost
RESIDENT YourTable;

 

 

 

Kushal_Chawda

@Nemo1  Create pivot table with Column dimension Month. Create two measure for Sales & Cost. Drag the values of Measure to Row Dimension

Nemo1
Creator II
Creator II
Author

It does not work, because when I do that, I get one column for the dates, and then each date represent one row. I need to have for each month, a different column.. 😞

Nemo1
Creator II
Creator II
Author

It does not work, because when I do that, I get one column for the dates, and then each date represent one row. I need to have for each month, a different column..

Fabiano_Martino_Intelco
Partner - Creator II
Partner - Creator II

Hi @Nemo1 ,

can you post a screenshot of what you get and a screenshot of ther configuration of your pivot table, so we can better understand how it is configured?

Regards

Fabiano

Nemo1
Creator II
Creator II
Author

Hello 

Sure, thanks for answering.

This is my input table:

Nemo1_0-1723538240445.png

This is what I am aiming to have

Nemo1_1-1723538267016.png

 

I am stuck . Any help is appreciated!