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: 
nikhilgandhi715
Contributor III
Contributor III

100% Stacked Bar Chart

Hi All,

I have to create a 100% stacked bar chart with 4 expressions and 1 dimension. How can i achieve it?

Any help would be much appreciated.

Thanks in advance.

Nikhil.

1 Solution

Accepted Solutions
morganaaron
Specialist
Specialist

4 expressions would be Sum(1)/Sum(1+2+3+4), Sum(2)/Sum(1+2+3+4) etc, then set the style option to stacked, ensuring you've only got your one dimension in the dimension list. As long as it all relates to each other, should work okay, then set the formatting in your number tab to show in percent.

View solution in original post

6 Replies
NickHoff
Specialist
Specialist

In the style tab, select the sub-type of "Stacked".

rubenmarin

Hi Nikhil, please check attached document, it may help you to get your requirements.

Instead of ValueList you can load metric description from data_island

morganaaron
Specialist
Specialist

4 expressions would be Sum(1)/Sum(1+2+3+4), Sum(2)/Sum(1+2+3+4) etc, then set the style option to stacked, ensuring you've only got your one dimension in the dimension list. As long as it all relates to each other, should work okay, then set the formatting in your number tab to show in percent.

nikhilgandhi715
Contributor III
Contributor III
Author

Thanks Nick,

I have selected the style sub-type as "Stacked" however it is not showing as 100%. The bars should show the total value as 100% for multiple expressions on one dimension.

nikhilgandhi715
Contributor III
Contributor III
Author

Hi Ruben,

Thanks for the help, however it is working if i prepare the chart for "Jan'14" but does not work when i am using the same for the entire year.

nikhilgandhi715
Contributor III
Contributor III
Author


Thanks a lot Aaron, It worked fine.