Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.