Reputation: 39
In QlikSense I am trying to create a stacked bar chart. My dataset is looks like:
Country Type Amount
Brazil Cars 10
Brazil Bus 15
Brazil Bike 10
Canada Cars 5
Canada Bus 15
Canada Bike 10
Egypt Cars 5
Egypt Bus 20
Egypt Bike 5
And I would like a graph that looks like the following. However, I can't even select a stacked bar chart if I only add one measure, which is the Amount field. I think I should group by Country, should I also group by Type? Or should I add each Type as measure, is that possible and how can I do that?
Upvotes: 0
Views: 4554
Reputation: 5022
You can easily create it in QS
Add dimension
button and pick Country
fieldpress Add measure
button and pick Amount
and then Sum(Amount)
Data
--> Dimensions
press Add
button and pick Type
fieldAppearance
--> Presentation
--> and pick Stacked
Live chart here
Upvotes: 2