Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
dimak123
Partner - Contributor III
Partner - Contributor III

Automatic selection from first day of the current year until yesterday

Hi to all,

I am looking for a way to make Automatic selection from first day of the current year until yesterday , every time when the model is opening

thanks a head for the help

1 Solution

Accepted Solutions
Anonymous
Not applicable

You can add a document trigger for this. Document Properties>> Triggers >> onOpen >> Add Actions >> Select in Field

Give your field name and below expression in the search string

='>=' & YearStart(today())  & '<='  & date(today()-1)

View solution in original post

3 Replies
Gysbert_Wassenaar

Add a Select in Field action to the OnOpen document trigger on the Triggers tab of the Document Properties window. The search string you need is something like: ='>=' & YearStart(Today()) & '<=' & Today()-1


talk is cheap, supply exceeds demand
Anonymous
Not applicable

You can add a document trigger for this. Document Properties>> Triggers >> onOpen >> Add Actions >> Select in Field

Give your field name and below expression in the search string

='>=' & YearStart(today())  & '<='  & date(today()-1)

dimak123
Partner - Contributor III
Partner - Contributor III
Author

thanks to all