Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
grakeshqvd
Contributor III
Contributor III

How to calculate Top 10 totals on Bar Chart

Hi All,

We have Bar chart, currently we are showing Top 10 Managers values. Need to calculate Top 10 Bar value totals only not for all the Bars. We are getting Totals for all the Bars, Can you help me to write the expression to get Top 10 Total.

Thanks.

2 Replies
Jesh19
Creator II
Creator II

Can you provide any sample data?

sudeepkm
Specialist III
Specialist III

If you want to display the Total for Top 10 values in your chart in a text object or in Chart title then you may write something like below.

Assuming that your dimension is "Manager" and your measure is "[Sales Volume]"

=sum({< [Manager] = {"=Rank(sum([Sales Volume]))<=10"} >}  [Sales Volume])