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

Customer having maximum Invoice in Text Box

Hi

i am new to qlikview

i was trying to show Customer having maximum Invoice in Text Box

but i don't know how to do it

attaching here database and app

i created strait table but can't show max invo customer in text box

please help me

thanks

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Number of Invoices for each customer

COUNT(DISTINCT [Invoice NO])

Customer having Maximum Invoices in Text Box...

=FirstSortedValue(Customer, -Aggr(Count(DISTINCT [Invoice NO]),Customer))

View solution in original post

3 Replies
MK_QSL
MVP
MVP

Number of Invoices for each customer

COUNT(DISTINCT [Invoice NO])

Customer having Maximum Invoices in Text Box...

=FirstSortedValue(Customer, -Aggr(Count(DISTINCT [Invoice NO]),Customer))

ecolomer
Master II
Master II

see the file

maxgro
MVP
MVP

=only({$<Customer={"=rank(Count ([Invoice NO]))=1"}>} Customer)

or also here

http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/08/displaying-the-top-salesperson-in-a-te...