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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate count of degree

Hello Everybody

How can i calculate count of degree for A,B,C?

Degree expression =>  if([Exclusive Percentage]<=.8,'A',if([Exclusive Percentage]<=.9,'B','C'))

      

StoreSalesAccumulated SalesInclusive PercentageExclusive PercentageDegree
1703 22,030,00022,030,0002.096%0.000%A
708 21,821,00043,851,0004.172%2.096%A
706 19,766,00063,617,0006.053%4.172%A
1912 14,876,00078,493,0007.468%6.053%A
1610 4,045,000837,245,00079.661%79.276%A
1510 4,005,000841,250,00080.042%79.661%A
1568 3,944,000845,194,00080.417%80.042%B
1220  3,920,000849,114,00080.790%80.417%B
1906  3,902,000853,016,00081.161%80.790%B
1561 3,747,000856,763,00081.518%81.161%B
1218 2,730,000949,728,00090.363%90.103%C
1402  2,695,000952,423,00090.619%90.363%C
1709  2,690,000955,113,00090.875%90.619%C
1934  2,682,000957,795,00091.130%90.875%C
1567  2,665,000960,460,00091.384%91.130%C
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw.


talk is cheap, supply exceeds demand

View solution in original post

10 Replies
its_anandrjs
Champion III
Champion III

Please elaborate more you want to calculate individual for A,B and C or weather need total count.

You can try also in any straight chart

Dim:- Store

Expre:- Count(Store)

Regards

Anand

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Which columns are fields from the source data and which columns are the result of chart expressions?


talk is cheap, supply exceeds demand
Not applicable
Author

Store and Sales fields are from source data.

Not applicable
Author

I want to calculate count individual for A,B and C.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Then what are the expressions for Inclusive Percentage and Exclusive Percentage?


talk is cheap, supply exceeds demand
its_anandrjs
Champion III
Champion III

Hi,

For individually counting for A,B and C try this expressions

For A

=Count(if([Exclusive Percentage] <= .8 ,Store))

For B

=Count( if([Exclusive Percentage] >.8 and [Exclusive Percentage] <=.9 ,Store))

For C

=Count( if([Exclusive Percentage] > .9,Store))

For [Exclusive Percentage] field you can include the logic here in place of the [Exclusive Percentage] field and rest of the expression is same.

Text.png

Other wise you can create this logic into the load script then you can use the [Exclusive Percentage] field into count expression.

Regard

Anand

Not applicable
Author

Accumulated Sales => rangesum(above(Sum (TOTAL_SALES_AMOUNT),0,rowno()))

Inclusive Percentage =>  rangesum(above(Sum (TOTAL_SALES_AMOUNT),0,rowno()))/(sum(total(TOTAL_SALES_AMOUNT)))

Exclusive Percentage => rangesum(above(Sum (TOTAL_SALES_AMOUNT),1,rowno()))/(sum(total(TOTAL_SALES_AMOUNT)))

Not applicable
Author

Thanks Dear Anand for your reply.

but [Exclusive Percentage] is not a field.

is there any script for create "pareto" logic?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw.


talk is cheap, supply exceeds demand