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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
wonkymeister
Creator III
Creator III

Specific Days in Month

Hi Guys,

something simple i'm sure - i need to Date() two 2 specific dates, 1st date from the previous month and the 2nd date from the current month. Getting the month is easy,=date((Date(MonthStart(AddMonths(Today(),-1))))) -- for previous month etc.

i need an IF statement for >= 18th (previous month) and <= 11th (current month)

struggling to code the specific days int he month.

cheers

1 Solution

Accepted Solutions
brunobertels
Master
Master

hi may be this 

18th day of previous month : 

date((Date(MonthStart(AddMonths(Today(),-1))+17)))

 

11th day of current month :

date((Date(MonthStart(Today())+10)))

View solution in original post

2 Replies
brunobertels
Master
Master

hi may be this 

18th day of previous month : 

date((Date(MonthStart(AddMonths(Today(),-1))+17)))

 

11th day of current month :

date((Date(MonthStart(Today())+10)))

wonkymeister
Creator III
Creator III
Author

idiot i am - thank you