Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
StartCounting
Contributor II
Contributor II

Splitting Line Plot by Categorical Variable

Hi,

I've got some data with a shape like:

 
| Date | Category | ID |
---------------------------------
 
 
I can make a line plot what shows the weekly count of events. I'd like to split this line by the values of the Category Column. These are categories like "Blue" and "Red". So instead of one line for all the data, I'd have two.

 

The help documentation I've found seems to suggest i need to manually create separate measures for each category I want to have a separate line for - am I reading that right? What if I don't know what the categories are going to be in advance? Like sometimes "Green" might be included, but sometimes not.

I'm used to ggplot and plotly and matplotlib where coloring shapes by some category takes just an extra keyword or something - so is there a built-in way to do this in Qlik that I've missed?

 

Thanks!

 

Labels (1)
  • Chart

1 Reply
StartCounting
Contributor II
Contributor II
Author

Ahh, I'm silly. Just add the categorical variable as a 'Dimension'. https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/LineChart...

 

Nevermind!