Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mariia_gridneva
Partner - Contributor II
Partner - Contributor II

RFM buckets. Group Custs by SalesAmt descending

Hello!,

I have an interesting issue with buckets for RFM analysis.

In this snipping we see following functions.

The Class dimension is a rank of 5 buckets.

Measure Customers is a distinct number of customers.

Measure Sales is a sum of sales for those customers.

Every buckets shall have "total sales / 5)" which gives us  ~1 598 192 $ in each.

The magic of calculated dimension is sorting of customers by their SalesAmt descending. And closing/limitation of every bucket when

"totalSales/5" is fullfilled.

We can see that 20% of total sales belongs to 45 biggest customers.

And now to the issue...

The expression works and handles max 3000 customers... After that we have an unending "loading" of object and following freezing. Seems that an optimization of expression is needed.

Yes, it has to be in visualization and be dynamical.

Yes, I tried to use sum(CustomerCount) instead of count(distinct).

Excel with data and testApp are attached.

Other examples or alternative handlings of RFM analysis are also welcome.

Buckets.PNG

All help is appreciated.

//Mariia

1 Reply
mariia_gridneva
Partner - Contributor II
Partner - Contributor II
Author

swuehl‌‌

Stefan,

my apologies for tagging you just right in.

Do you have possibility to take a look at the issue?

I found your answer to a similar problem in this thread FirstSortedValue issue