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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Ayden
Contributor III
Contributor III

start date and end variable

how can i create start and End date variable to use in set analysis 

 

thanks ahead 

1 Solution

Accepted Solutions
rubenmarin

Hi, this can be done in many different ways based on the model and the needs, one option is to create a vMinDate and vMaxDate variables with this values:

vMinDate -> Min(DateField)

vMaxDate -> Max(DateField)

And used like: Sum({<DateField={">=$(vMinDate)<=$(vMaxDate)"}>} Sales)

View solution in original post

2 Replies
rubenmarin

Hi, this can be done in many different ways based on the model and the needs, one option is to create a vMinDate and vMaxDate variables with this values:

vMinDate -> Min(DateField)

vMaxDate -> Max(DateField)

And used like: Sum({<DateField={">=$(vMinDate)<=$(vMaxDate)"}>} Sales)

Ayden
Contributor III
Contributor III
Author

thanks a lot