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

Stacked Chart Type

Hi all experts.

How do I create a stacked bar chart that each column fills the full height of the chart and each component in the column fills its relative height within the column?

Thanks

1 Solution

Accepted Solutions
maxgro
MVP
MVP

the chart has 2 dims

Product Group

Region

and 1 expression (the bold part is the interesting one)

Sum({$<Year={$(=Max(Year)), $(=Max(Year)-1)}>}  Sales )

/

Sum({$<Year={$(=Max(Year)), $(=Max(Year)-1)}>} TOTAL <[Product Group]> Sales )

View solution in original post

6 Replies
maxgro
MVP
MVP

like this?

1.png

jduenyas
Specialist
Specialist
Author

Yes!

maxgro
MVP
MVP

the chart has 2 dims

Product Group

Region

and 1 expression (the bold part is the interesting one)

Sum({$<Year={$(=Max(Year)), $(=Max(Year)-1)}>}  Sales )

/

Sum({$<Year={$(=Max(Year)), $(=Max(Year)-1)}>} TOTAL <[Product Group]> Sales )

jduenyas
Specialist
Specialist
Author

Mine shows like this:

jduenyas
Specialist
Specialist
Author

Yeah. It works.

Thanks

maxgro
MVP
MVP

PFA