Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
vanderson009
Creator III
Creator III

Max Customer Name

Hi Community,

I have below data,

Customer, Value

A, 20

A, 30

B, 10

B, 15

C, 40


I want to take max value by customer, then want to display from Customer name in text box from max table, like


A, 30

B, 15

C, 40

is the maximum values record. Now want to display max customer from max table like

C in Text box

Regards,

Villyee


7 Replies
Anonymous
Not applicable

Hi Villyee,

Yo show max by customer:

=MAX(TOTAL <Customer> Value)

Yo show the max customer:

=Only({<Value={$(=Max(Value))}>}Customer)

Regards!

Not applicable

Hi,

Please see attached

susovan
Partner - Specialist
Partner - Specialist

Hi Villyee,

Its might be your requirement.

Capture.JPG

PFA for QVW file.

Warm Regards,
Susovan
yadav_anil782
Creator II
Creator II

plz go  to this link -    Max Group By 2 fields

max and group by function will help in this .

effinty2112
Master
Master

Hi Villyvee,

This expression in a textbox

=concat(Aggr(Customer & ', ' & Max(Value),Customer),Chr(10))

will give you:

A, 30

B, 15

C, 40

=Concat({<Value={$(=Max(Value))}>}Customer,', ')

will return the customer with the highest value or if there is a tie it will return the names separated by a ','.

Regards

Andrew

muthukumar77
Partner - Creator III
Partner - Creator III

Hi,

You can use like this,

=MaxString({<Value={$(=Max(Value))}>} Customer)

Muthukumar Pandiyan
kamal_sanguri
Specialist
Specialist

C in the text box or A.. If we do a group by A will have 50 value.. isn't it..?

Thanks,

-Kamal