Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Query.

How to total only the maximum Amount puchased based on the Customer or Serial Number. Please see the attached SpreadSheet.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Use a chart with the relevant dimension (Customer Name or Serial Number) and the expression;

     Sum(Aggr(Max(Amount), [Customer Name]))

     or

     Sum(Aggr(Max(Amount), [Serial Number]))

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

5 Replies
PrashantSangle

Hi,

What is your expected output w.r.t provided data??

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Use a chart with the relevant dimension (Customer Name or Serial Number) and the expression;

     Sum(Aggr(Max(Amount), [Customer Name]))

     or

     Sum(Aggr(Max(Amount), [Serial Number]))

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vishsaggi
Champion III
Champion III

Hi Murali,

To what I understood please let me know if below would suffice your query.

To get the max purchased amount use the Max function in the expression with Customer Name or Serial Number as dimension using Straight table chart.

Dimension: Customer Name

Expression: max(Amount)

Please let me know if this is what you requirement is: [Image attached]. It displays the max total amount as you have highlighted in your Excel.MaxTotal.png

robert_mika
Master III
Master III

This will work as well:

In Textbox:

=     Sum(Aggr(Max(Amount), [Sales Order]))

vishsaggi
Champion III
Champion III

As the experts mentioned above you can use

sum(aggr(max(Amount), [Customer Name]))

Check the image attached. To get this

1. Go to Char Properties --> Expression Tab --> Total Mode --> Select the Radio button <Expression Total>

2. Go to Presention Tab --> Total option --> Check radio button <Totals on Last Row>

Thanks,
Vish.MaxTotal.png