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 - 100%

I do not see an option for a 100% Stacked Bar Chart (as is available in PowerPoint). Does anyone have a workaround for this?

Thanks.

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

The workaround is to calculate percentages in your expression. For example:

Dimensions:

Country

City

Expression:

sum(Sales) / sum( TOTAL <Country> Sales)

This way, the sales for each City will be presented as a % from the sales for each Country. At the Country level, the result is always 100%

View solution in original post

4 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

The workaround is to calculate percentages in your expression. For example:

Dimensions:

Country

City

Expression:

sum(Sales) / sum( TOTAL <Country> Sales)

This way, the sales for each City will be presented as a % from the sales for each Country. At the Country level, the result is always 100%

Not applicable
Author

Hi Oleg,

Thank you very much for your reply. Your suggestion totally works! I really appreciate your time!

Not applicable
Author

Oleg - that does indeed work. But, you knew this was coming, what if I want to have the count of each of the bars in each of the segments that make up each bar - and not the percentage total.

For instance - if I display each country on the x-axis and each bar is split by city. The measure looks at the number of people visiting, how can I display the actual number of people visiting and not using the % of the total for each city/country combo?

Not applicable
Author

This solved the problem I've been working on for the last two hours! Thank you!