Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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