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: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Help with some Date filters

Hi all,

I need some help creating some date filters.

I have attached a sample.

I want have created an inline table:

Date_Range

Curr Week

MTD

YTD

i need to know how i can get this to work correctly so when the user selects 'Curr Week' the data will change just to show the current week and so on.

I know i need to use variables but i am confused how it will work as the week no is a number whereas the MTD/YTD would be dates so i am unsure how to use the variable in set analysis.

Can anyone help please?

5 Replies
Not applicable

You might want to create a master calendar for this. You can just search the community for master calendar.

There is a video called "Creating a Master Calendar" . That should help you.

Thanks

AJ

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

THanks. I already have a master calendar in my 'real' qvw. I have a put a simple calendar in my sample attached to my original question.

Any help with getting it working in my sample would be great.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvd. Specifically the Select in Field action added to the OnSelect field trigger of the DateRange field. You can find it on the Triggers tab of the Document Properties window.


talk is cheap, supply exceeds demand
Not applicable

Sorry I didn't see your attached file. Now I get what you want to do.

I have created flags in The master Calendar Yes/No for those three currwee, YTD and MTD.

Check them out and see if it helps.

Thanks

AJ

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

thanks guys. I am unable to test these until tomorrow. But I think I may have an issue with the field trigger option as we use SVN and there is an issue with SVN where when you save a qvw into SVN it clears out all variables and field triggers.

WE we have got around the variable issue by loading in all variables from a text file so they are part of the script. But I fo not believe there is a work around for field triggers.