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

Basic

i have customer vs invoice(s) data sheet in excel

first I have to count no of invoices for each customer and

i I want to see customer who have max invoice in text object

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

6 Replies
MarcoWedel

please post sample data with expected result

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=FirstSortedValue(customer, -Aggr(Count(Invoices), customer))

Regards,

Jagan.

sundarakumar
Specialist II
Specialist II

=max(aggr(count(invoice),customer))

This will do the trick..

Sundar

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))

Not applicable
Author

thanks to all who helped me its solved

sundarakumar
Specialist II
Specialist II

Please close the thread by marking appropriate correct and helpful answers.

-Sundar