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: 
Not applicable

Syntax errore

Could u please correct syntax errore in set analysis

Labels (1)
1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi,

Correct syntax should be,

=sum({$<[Year]={"$(=max(Year))"}>}[Order Quantity])

=sum({$<[Year]={"$(=max(Year)-1)"}>}[Order Quantity])

Check the attachment and let me know.

View solution in original post

2 Replies
tamilarasu
Champion
Champion

Hi,

Correct syntax should be,

=sum({$<[Year]={"$(=max(Year))"}>}[Order Quantity])

=sum({$<[Year]={"$(=max(Year)-1)"}>}[Order Quantity])

Check the attachment and let me know.

sunny_talwar
MVP
MVP

Didn't check what Tamil have (may be I am repeating), but just thought I will also share my solution

=Sum({$<[Year]={'$(=max(Year))'}>}[Order Quantity])

=Sum({$<[Year]={'$(=max(Year)-1)'}>}[Order Quantity])