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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating an expression to include <Todays Date + 547 days> selection

Some advice please,

In my Data Load Editor, I create a count which includes    " [SALES.CLOSEDATE]={">=20/07/2017<20/01/2019"}, " ( for example )  to select those records present from the day I re-fresh the data, to include the data for the next 547 days ( 18 months of Pipeline data ), but at the moment I'm having to create this by changing the date parameters.

I've tried:    " ={'MonthStart(Today(), 1)'} " adding the 547 days within this string, but I'd like to automate the running sequence and having something will take the date it is run + 547 days, will help me do this.

Any suggestions please ?

Thank you

( I'm back on line on Tuesday 25th so will pick up those suggestions then )

4 Replies
neelamsaroha157
Specialist II
Specialist II

Create two variables as

Let vTodaydate = Today();

Let vNextDate = Date(Today()+547, 'DateFormatHere')

OR

Let vNextDate = Date(AddMonths(Today(), 18), 'DateFormatHere') --If you looking for exact 18 months.

jonathandienst
Partner - Champion III
Partner - Champion III

Something like

[SALES.CLOSEDATE] = {">=($=Today()) <$(=(Today() + 547))"}

or

[SALES.CLOSEDATE] = {">=($=MonthStart(Today())) <$(=MonthEnd(Today() + 547))"}

or

[SALES.CLOSEDATE] = {">=($=MonthStart(Today())) <$(=MonthEnd(Today(), 18))"}

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hi,

Thank you for your advice.

Barry

Not applicable
Author

Hi,

Thank you for your advice.

Barry