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

Percentage in Stacked Bar Chart

I have a bar chart with

1-Dimension

3-Measure

All the 3 measures have different filters applied to it

When I am trying to find the percentage I'm not able to get 100%

Sometimes I'm getting more than 100% , sometimes less than 100%

As of now i'm using the formula for percentage is:-

count(fields)/count(total fields)

or

sum(fields)/

sum(total fields)

23 Replies
vanand3535
Creator III
Creator III
Author

Total % is different in each bar not 100% in each bar

Check the image attached below

Screenshot (672).png

YoussefBelloum
Champion
Champion

Ok, I see , one more time

Try this:

=sum(sales)/sum(sales+profit+discount)

=sum(profit)/sum(sales+profit+discount)

=sum(discount)/sum(sales+profit+discount)

In %

vanand3535
Creator III
Creator III
Author

It's working perfectly

Check the image below attached

Screenshot (673).png

YoussefBelloum
Champion
Champion

Good