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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Line Chart for Multiple Categories

Hello!

I have the following Simple Table:

CategoryJanFebMarJunJulAugSepOctNovDec
00130452050556085704055
00215202530206575908085
00335405070605070809095

Where Category is a Dimension and Jan/Feb/Mar are Expressions.

What I want is to create a Line Chart where every line should be a different Category.

For example: I should have a line for Category 1 where values are 30, 45, 20.

X Axis: Categories by Month

Y Axis: Values (30, 45, 20)

Do you know how could I do this?

Thank you!

4 Replies
datanibbler
Champion
Champion

Hi mart,

for that you'd have to turn it around and have the months as dimension and the categories as expressions - one line represents one expression running along a dimension, so if your months are your dimension, you can have three expressions = three lines.

HTH

Best regards,

DataNibbler

Not applicable
Author

Thanks for your answer.

But I don't know how many Categories could I have because it depends on those who are imported from a QVD and it also depends on the selected date, that's where the value vary and also the Categories shown.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

It can't be done with the months as expressions. If you use more than one expression then each expression will get a line. What you can do if your source data is in the format you posted is use the Crosstable function to transform the data and create a Month field. See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Can you attach a sample file for analysis, if possible?