Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I am working on creating an "ABC Analysis" in Qlik.
I have a raw table where, on the left side, I have the customers' names (which I’ve removed from the picture).
From left to right, the table includes the following columns:
I have created the following formulas for the raw table:
Now, I would like to calculate the number of customers in each category (A, B, C). For example, in my case, there are 3 customers in category A, 6 in category B, and so on.
I want to perform this calculation in a KPI object, not within a row table object. I have already tried the following formula, but it doesn't work as expected:
COUNT(
AGGR(
IF(
RANGESUM(
ABOVE(
Sum(Sales) / Sum(Total Sales),
0, ROWNO(TOTAL)
) < 0.80,
'A',
CUSTOMER_ID
)
)
Thank you in advance for your help!
@davenyrfajutag00 Try this: