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

Pareto Help

Hi Team -

Is it possible to do something like the below? Currently I am getting this

Capture.PNG

I would like to move Dim = Other into the Others Bucket and then show the rest 80%. Something like this:

Dim=Sum(Value)
A40
M12
C9
L7
F6
K5
Others

21

I am attaching a sample with this application. Please note that this is just a small sample of large amount of data and I am looking for front end options instead of back end.

Thanks,

Sunny

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You are way too fast Sunny,

I think you should allow the audience to read and understand your request before solving it

I think the idea using a pareto based on first sorted values and then sort by yourself is pretty good.

Concerning the sort by expression on sort tab, I think this should also work and may be somewhat less complex:

=Sum({<Dim -= {Other}>} Value)

(with sort order descending)

And I think you need to disable the option 'Allow interactive sort' since this will distort your chart.

Regards,

Stefan

View solution in original post

4 Replies
sunny_talwar
Author

I guess adding this as the sort expression seems to help the sample, but on the original data this is very slow.

=Match(Dim, 'A', 'M', 'C', 'L', 'F', 'K', 'D', 'J', 'P', 'X', 'Y', 'Other')

What would be the best way to push Other down the sort order?

Capture.PNG

sunny_talwar
Author

So what I have above is using the names as is, but I tried a slightly complex version since the Dim names cannot be entered like this as the value will and can change. This is what I tried:

=Match(Dim, $(=Chr(39) & Concat({<Dim -= {'Other'}>}DISTINCT Dim, Chr(39) & ',' & Chr(39), -Aggr(Sum(Value), Dim)) & Chr(39)), 'Other')

It works pretty well for the sample, but looking for better ways to do this.

Thanks,

Sunny

swuehl
MVP
MVP

You are way too fast Sunny,

I think you should allow the audience to read and understand your request before solving it

I think the idea using a pareto based on first sorted values and then sort by yourself is pretty good.

Concerning the sort by expression on sort tab, I think this should also work and may be somewhat less complex:

=Sum({<Dim -= {Other}>} Value)

(with sort order descending)

And I think you need to disable the option 'Allow interactive sort' since this will distort your chart.

Regards,

Stefan

sunny_talwar
Author

This was it. That did the job with my actual data as well. I knew no matter what, I can expect to get a good solid idea from you.

Thanks for your help Stefan.