Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to display Top5 customers based on sales in straight table by using expression.
Only Top5 customers (Based on sales) should display, remaining customers should not display.
Please drop the solution here only as i can't open QVW file in my machine.
Customer | Sales |
Alles Lusekofter | 63.55 |
Art et Fashion | 140.4 |
Aujourd´hui | 343.44 |
Autokleider | 205.2 |
Belgium Black | 4048 |
Big Foot Shoes | 95.9 |
Bobby Socks | 163.36 |
Boleros | 3931.22 |
Bond Ltd | 21.36 |
Boombastic | 185.2 |
Casual Clothing | 332.64 |
Champes | 182 |
Chateau de Ville | 620.55 |
Cloe do Pau | 3189.06 |
Copacabana | 165.6 |
Da Bikini Expertu | 796.4 |
Da Santho | 2433.9 |
Das Alpen Shoe | 77.97 |
Davenport Fash | 617.4 |
Also check suppress null option
Suppose you have this table:
Invoice with Customer and Amount Field
Every Database has an instruction to exctract the top n values (There are "Limit" or "TOP" Keawords for instance)
a query like this one:
select customer, sum(Amount) as somma from invoice group by customer order by somma desc limit 5
extract the first 50 then do an inner join of this one with the complete table of invoice (invoice is obviously for example)
IF want to do it in dashboard itself
1: use Rank function to filter out first 5 then filter
or
2: sort it by sales descending . use if(rowno()<=5,sum(sales)) in expression ans suppress null
or
3: dimesnsion limits -> show top 5 values
regards
Pradosh
Hi.
If you are using QlikView.
Create your Straight table, with the expressions SUM(Sales).
On the Dimension Limits,
set up as pictures below.
Mark
Hi,
If I use if(rowno()<=5,sum(sales)), the result is showing like below.
not like this ..share the app if possible .
regards
Pradosh
Here is a example attached.
Please provide the correct expression and steps how to achieve TOP5 Customers.
please find the attached
regards
Pradosh
1: Method is already described by MARK
2: IN THE SORT tab use rank(sum(sales))> 0 in customer sorting
regards
Pradosh