Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Stacked Bar chart with 2 expressions and 2 dimensions

Hi, i want to create a stacked bar chart with 2 expressions (ACT vs BDG) and two dimensions, first one in x axes (BU) and the second one stacked (AREA ICT). I would these two charts in a single one with ACT and BDG side by side:

Esempio.JPG

See qvw attached

1 Solution

Accepted Solutions
14 Replies
sunny_talwar

Like this?

Capture.PNG

Added a new table in the script:

Dim:

LOAD * Inline [

Dim

1

2

];

and used it as a dimension

=Pick(Dim, 'ACT', 'BDG')

Expression

Pick(Dim, Sum([BUDGET SENZA MANODOPERA]), sum([BUDGET 2017 (Approvato)]))

Not applicable
Author

Yess, you are a genius! Can you please reattach me the qvw with solution?

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Check this.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sunny_talwar

Sure

Not applicable
Author

Super Kaushik! Thank you very much!

hector_munoz
Specialist
Specialist

Hi Stefano,

That is not possible with a bar chart; you can show 2 dimensions and 1 expression or 1 dimension and 2 expressions. I think here you have 2 simple possibilities:

  • Concatenate 2 dimensions in 1 (=$(=Only(Dimensione)) & '-' & $(=Only(Dettaglio))) and show 2 expressions.
  • Use a grid chart

I attach a sample of second option.

Regards,
H

hector_munoz
Specialist
Specialist

Very well solved Sunny!

sunny_talwar

Thank you

Not applicable
Author

Hi, it's possible introduce total? I would 2 bar (one total for Budget and one for Actual)... like this:

img1.JPG

thx