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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Setup Time Filter Document Trigger

Hi,

I am trying to setup a document trigger where OnOpen, I want the default filters to be the Current Quarter, Previous Quarter and Same Quarter Last Year.

The Fiscal Quarter format is 201401 - For 1st Quarter of 2014

For any kind of calculations for various time periods, I have creater the Fiscal Quarter counter - FQ_Counter

I setup a document event trigger for OnOpen, Select field: FQ_Counter

Search String:

'(' & $(=Max(FQ_Counter)) & '|' & $(=Max(FQ_Counter)-1) & ')' & '|' & $(=Max(FQ_Counter)-4) & ')'

This doesnt seem to work since the FQ_Counter is not used in a object for user selection.

Not sure, how to achieve this.

Any help, will be appreciated.

Thanks in advance!

Archie

2 Replies
whiteline
Master II
Master II

Hi.

Have you checked your search selection expression using a simple button action ?

Not applicable
Author

Hi,

Try with below.

'(' & Date(QuarterStart(max(vDate)),'YYYY-MM') & '|' & Date(QuarterStart(max(vDate),-1),'YYYY-MM') & '|' & Date(QuarterStart(max(vDate),-4),'YYYY-MM') & ')'