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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
sachinryeola
Contributor II
Contributor II

count in text box (Pareto Classes)

Hi,

Can anyone help me , I need to count the no of states falling under each class

I have used below expression in list box to get Pareto Class (A,B,C)

=Aggr(

    If(Rangesum(Above(Sum({1} SalesNetValue)/Sum({1} total SalesNetValue),1,RowNo()))<0.8, 'A',

        If(Rangesum(Above(Sum({1} SalesNetValue)/Sum({1} total SalesNetValue),1,RowNo()))<0.9, 'B',

            'C')),

    (StateCode,(=Sum({1} SalesNetValue),Desc))

    )

Labels (1)
1 Reply
swuehl
Champion III
Champion III

As said in the other thread, use the aggr() function in a calculated dimension (e.g. in a straight table chart or bar chart) and use as expression

=Count(DISTINCT StateCode)

[you can also use your list box and add the Count() to the list box expressions, this would be pretty similar to the straight table version, but with the coloring of the list box dimensions]