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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
marcosirotti1950
Contributor II
Contributor II

Custom date range

Hi, how can I define a date range in which the user select a date field as the end date and  the start date is calculated as End date - 90 days, using the date picker or some kind of filters or whatever ?

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

You can restrict calculations for a given period using Set Analysis as below 

Sum({<DateField={">=$(=Date(Max(DateField)-90))<=$(=Date(Max(Date)))"}>}Sales)

 

Refer below blog for more 

https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

You can restrict calculations for a given period using Set Analysis as below 

Sum({<DateField={">=$(=Date(Max(DateField)-90))<=$(=Date(Max(Date)))"}>}Sales)

 

Refer below blog for more 

https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.