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

Set Analysis Error

Hi,

I am trying to calculate and display last date which belongs to previous year in a Textbox by using below formula but getting error, I have implemented variable "Vpreviousyear" at script level for calculating previous year which I am using in formula

Formula : =max({<Year={$(=Vpreviousyear)}>}Claim_Creation_Date)

Error: Error in set modifier adhoc element list ',' or ')' expected

Vpreviousyear: Year(max(addmonths(Claim_Creation_Date,-12)));

Labels (1)
1 Solution

Accepted Solutions
effinty2112
Master
Master

Helo,

          Try:

=max({<Year={$(=-1+Max(Year))}>}Claim_Creation_Date)


Regards


Andrew

View solution in original post

4 Replies
effinty2112
Master
Master

Helo,

          Try:

=max({<Year={$(=-1+Max(Year))}>}Claim_Creation_Date)


Regards


Andrew

swuehl
Champion III
Champion III

Try

Formula : =max({<Year={$(=$(Vpreviousyear))}>}Claim_Creation_Date)

Anonymous
Not applicable
Author

try this?

=max({<Year={$(Vpreviousyear)}>} Claim_Creation_Date)

susovan
Partner - Specialist
Partner - Specialist

Try this,

=max({<Year={"$(Vpreviousyear)"}>}Claim_Creation_Date)

Warm Regards,
Susovan