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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis using other fields

HI

I am trying to calculate the impact of a new product launch. A new product is only new for so long so need to use set analysis to restrict the date range.

Alongside each sales line I have the launch date for the product.

so in theory the set analysis should look something like this

sum(

{

<

[ShipDate]={">=LaunchDate <([LaunchDate]+35)"}

>

}

Quantity) however if I use this I get no results if I discreetly enter the dates I get the correct answer as below



sum(

{

<

[ShipDate]={">=LaunchDate <([LaunchDate]+35)"}

>

}

Quantity)



I have attached an example - am I just doing something wrong with the syntax for using the launchdate?

Thanks

Matt

1 Solution

Accepted Solutions
markmccoid
Partner - Creator II
Partner - Creator II

Hi, You need to use $ expansion on the dates:


sum({<[ShipDate]={">=$(=LaunchDate) <$(=date(([LaunchDate]+35)))"}>}Quantity)


View solution in original post

3 Replies
Not applicable
Author

Hi Matt,

where are your example???

Rainer

Not applicable
Author

Sorry Attachment should now be there

Matt

markmccoid
Partner - Creator II
Partner - Creator II

Hi, You need to use $ expansion on the dates:


sum({<[ShipDate]={">=$(=LaunchDate) <$(=date(([LaunchDate]+35)))"}>}Quantity)