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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help needed on Line chart

Header 1Header 2Header 3Header 4Header 5Header 6Header 7Header 8Header 9Header 10
ShareXYZABCDEF
Share1
Share2
Share3
Share4
Share5
Share6
Share7
Share8
Share9

Hey I want my line chart to be in the way that Share1 to 9 falls on X-axis and I have the option to select either X or Y or all(as many as i want). My X,Y,Z,A......F are my Drugs.

What I did:

I placed my share in dimension and in expression i added Only(X), Only(Y)......Only(F). Now i am getting the line chart but I am not able to select drugs on my choice. Kindly help me.................

Thanks in Advance

Regards

Sagar Gupta

4 Replies
pover
Partner - Master
Partner - Master

It would be easier if you can change your table to the following structure:

Share     Drug     Value

1            X          10

1            Y          7

2            X           8

Karl

Not applicable
Author

Thanks Karl,

I also did the same

🙂

Sagar

Not applicable
Author

Hey Karl,

Its working and I would like to know if there is any other way to do it.

Sagar

pover
Partner - Master
Partner - Master

Hi Sagar,

No.  You either create an expression for every Header or you do a crosstable function to rotate the columns into rows and leave it in the format that I posted above.  I prefer the second option.

Karl