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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Partitioning data in script

I am doing an app on trades. There are multiple commission rates for one trade amount (creating lots of extra data). I am trying to use a function in the script to take the highest commission rate only for each trade. Max function maybe????

-Kevin

1 Reply
Anonymous
Not applicable
Author

Hi Kevin,

Max() makes sense, for example:

SELECT

max(CommisionRate) as HighestRate,

TradeID

FROM  Trades

GROUP BY TradeID;

Regards,

Michael