Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trying to create a stacked chart with multiple pieces of information on X-Axis

Hi,

Im having trouble creating a new chart in Qlikview.

I have my Y-axis (a list of numbers)

And my X-axis (a list of peoples names)

I need to add 2 variables to the chart, one that will count the number of times a person has Driven to work, aqnd the number of times that same person has walked to work. These need to be shown on a bar chart, with the bars stacked on top of one another. (An example of what I mean has been added as a JPG.)

I have a database the information is being pulled from, and have tried using counts to display the information. I have got this to work, but for only one of the pieces of information. This is displayed correctly, with a bar above each persons name. However, the second piece of information is not stacked on the chart, it is simply its own bar at the end of the chart that is accumulating all of the value, where as it should be delegating individual values to people. This might make more sense when the pictures have been viewed.

Any ideas how I can get this to work?

Thanks..

15 Replies
Not applicable
Author

It looks like Workload on Hold is not connected by name, but by WorkloadName, which is why it would be showing Null for 'Name'...

Not applicable
Author

Below are the requested screenshots.

Style.PNGDimensions.PNGExpressions.PNG

When changing the style to a stacked chart, It changles the chart to an even stranger one. Screenshot below.

Strange.PNG

Not applicable
Author

Put 'Workload Name' as your only dimension. Change Style to 'Stacked'. Put two expressions (NOT using & sign; instead click 'Add' and enter second expression):

Count(Workload)

Count(WorkloadOnHold)

Not applicable
Author

Should look like this:

Capture.JPG

Not applicable
Author

Unfortunaetly still doesnt work.

Not applicable
Author

image1.PNG

After weeks of working on this, I found the answer. It was a calculated single dimension I needed to use that combined the 2.