Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

Pareto class as dimension

Hello

I'm trying to have the pareto class as dimension using the class function

the calculated dimension i'm using is like this:

=class(aggr(RangeSum(Above(($(vNetSales)), 1, RowNo())) / ($(vTotal_NetSales)),ItemDesc1),0.8)

the expression RangeSum(Above(($(vNetSales)), 1, RowNo())) / ($(vTotal_NetSales))

is for the exclusive percentage as per the following article (Recipe for a Pareto Analysis)

Followin the above article I got the following:

pareto.png

using the class function I got the following:

pareto_2.png

I got 5 items whose exclusive percentage between 0.8 and 1.6 but actually on the first table the items are 6 under class A

I really got lost

please advise

I can walk on water when it freezes
1 Reply
sunny_talwar

I think the issue you are running into is the sorting which is done by load order (because you are using Aggr() function in your dimension). See if this thread offers any solution: ABC Analysis in Qlikview