Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to compute Sales By Group Amount only for Top 3 customer ?

Hi

My Table 1 Expression display whole of last sales is correct :-

Money(

Sum({$<year = {$(=Max(year)-1)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = >} month))"}>}$(ColumnDim51)/$(Columndim89)/1000)

,$(vMoneyFormatK))

On the next column , i need to display only Top 3 customer sales amount , so i use the expression given by sunny as below :-

Sum(TOTAL {<$(ColumnDim101) = {"=Rank(Sum(sales)) < 4"}>}sales)

it return All  10,644,1876 which is wrong value.

Correct value is :-

G1 = 2.673 Billion

G2 = 0.718 Billion

Paul Yeo

5 Replies
paulyeo11
Master
Master
Author

My QVW

MK_QSL
MVP
MVP

What is you use..

=Sum({<$(ColumnDim101) = {"=Rank(Sum(sales)) < 4"}>}sales)

paulyeo11
Master
Master
Author

Hi Sir

The return number wrong, it should not be so much .

see.png

MK_QSL
MVP
MVP

How the correct value is

Correct value is :-

G1 = 2.673 Billion

G2 = 0.718 Billion

Can you provide example of above?

paulyeo11
Master
Master
Author

Hi Sir

When you Click on G1 Button , it will show the top 3 customer sales for G1 , when you add up the 3 row total it will be the total i need.

Paul