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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
guyvermeiren
Creator
Creator

Error in function Max

Hello,

I want to trace only the row with the highest value but I get an Error (.... in calculated dimension).

The expression I use for the calculated dimension is:

=Max(num([Opportunity-Quote.Revision]))

Further on I only want to keep the record with this maximum value in my table, somethong like:

= If( Max(num([Opportunity-Quote.Revision] <>num([Opportunity-Quote.Revision]);Max(num([Opportunity-Quote.Revision];null())

Or is there another way to obtain this ??

Thanks

Kind regards,

Guy

Labels (1)
3 Replies
krishnacbe
Partner - Specialist III
Partner - Specialist III

Hi,

Try with below script.

TableName:
Load max(DateCreated) as MaxDate
Resident [TableName];

Let vMaxDate=Peek(MaxDate,0,TableName);

krishnacbe
Partner - Specialist III
Partner - Specialist III

You can replace DateCreated with your date field and compare the variable value in Set Analysis or If statement.

Not applicable

check the function: firstsortedvalue()

https://community.qlik.com/thread/30532

Hope this helps.

Thanks,

Singh