Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Aggregate Count Function

Hello,

Please see the issue I'm facing and the desired result that I'm trying to achieve. The desired result needs to be a Straight Table chart. Could someone please help me get the desired result?

Here is my database table:

AccountNumberOrderNumber
Complete
A0001100.001Y
A0001100.002Y
A0001100.003N
A0002100.005Y
A0002100.006N
A0003100.007N

Desired result in a Straight table Chart:
NB: Complete% calculation is total Complete 'Y' by AccountNumber divide by Total OrderNumber by AccountNumber.

AccountNumberComplete%
A000166.67%
A000250%
A00030%

Currently, I am getting the total Complete% of the overall OrderNumbers instead of OrderNumbers by AccountNumber.

AccountNumberComplete%
A000133.33%
A000216.67%
A00030%

Thank you!

2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

You are probably using the keyword TOTAL, which is not necessary here.

Something along these lines should work:

count({<Complete={'Y'}>} distinct OrderNumber)/

count(distinct OrderNumber)


You can learn more about Set Analysis and advanced aggregation in my book QlikView Your Business: An Expert Guide to Business Discovery with QlikView and Qlik Sense


Cheers,

OlegTroyansky

Anonymous
Not applicable
Author

‌I think I did use the word “Total”. I will check back the application and update more information tomorrow. Thank you!