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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sant
Contributor II
Contributor II

Help with Plotting of Aggregated data

Hi Qlik Community,

                                      I need to design a chart in Qlik Sense, which will have
X-axis : a Class
Y-axis : a numeric value-aggregation as per Class; 
( Bar chart but I don't need Bars )  more like a line plot but X-axis is not a continuous measure which Qlik would expect.

Kindly look at below image for my requirement.
I NEED to give freedom to end-user to filter 'Category' and that's why I'm not creating a Aggregated Table in Load Editor.

As a trade-off, I can do with Aggregated table but need help to generate a line plot from ~80 columns x 1 Row (Aggregated Table). Please do share some tips.

Sant_0-1697456265685.png

Thanks in Advance for help !

Labels (3)
1 Solution

Accepted Solutions
vincent_ardiet_
Specialist
Specialist

Maybe the easiest is to unpivot your table in the loading script.
See for example this statement:

test:
CrossTable (Class, Value)
load * inline
[Category, Class_A, Class_B, Class_C
White, 1, 2, 0
Blue, 9, 0, 4
Red, 5, 8, 0
Red, 0,5,6
White,8,7,2];

It will create 2 new fields [Class] and [Value] to obtain a table like this:

Category Class Value
White Class_A 1
White Class_B 2
White  Class_C 0
Blue Class_A 9
...    

 

 

View solution in original post

2 Replies
vincent_ardiet_
Specialist
Specialist

Maybe the easiest is to unpivot your table in the loading script.
See for example this statement:

test:
CrossTable (Class, Value)
load * inline
[Category, Class_A, Class_B, Class_C
White, 1, 2, 0
Blue, 9, 0, 4
Red, 5, 8, 0
Red, 0,5,6
White,8,7,2];

It will create 2 new fields [Class] and [Value] to obtain a table like this:

Category Class Value
White Class_A 1
White Class_B 2
White  Class_C 0
Blue Class_A 9
...    

 

 

Sant
Contributor II
Contributor II
Author

Thanks a lot @vincent_ardiet_ 

Unpivoting using Crosstable command helped me to achieve desired visualizations.