Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

dimak123
New Contributor II

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
greeshma_k
Contributor III

Re: Automatic selection from first day of the current year until yesterday

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)

3 Replies

Re: Automatic selection from first day of the current year until yesterday

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
greeshma_k
Contributor III

Re: Automatic selection from first day of the current year until yesterday

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
New Contributor II

Re: Automatic selection from first day of the current year until yesterday

thanks to all

Community Browser