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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dates in Script

Hi

Similar to my previous post on using ste analysis for calculating sales between dates. I would now like to bring a field into my script to say whether or not that line should be included.

Have tried

IF('[ProductLaunchDate]=<[Shipment Date]>[ProductLaunchDate]+365','Yes','No') as NewLaunchProduct,

and also tried using a variable but no luck.

Any help much appreciated

Thanks

Matt

1 Reply
lmonincx
Creator II
Creator II

hi,

I think you syntax is not complete:

IF('[ProductLaunchDate]=<[Shipment Date]>[ProductLaunchDate]+365','Yes','No') as NewLaunchProduct,

Try: if([ProductLaunchDate]=<[Shipment Date] and [ProductLaunchDate]>([ProductLaunchDate]+365),'Yes','No') as NewLaunchProduct.