Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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)));

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
MVP
MVP

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