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: 
stekol61
Creator
Creator

Current month and two previous months

Hi!

I have an OnOpen trigger as "=Num(Month(Today()), '00')".

This gets the current month when the report id opened.

I want to have current month and the previous 2 months instead, e.g. Sep, Aug and July

How to do this?

3 Replies
tresesco
MVP
MVP

May be this:

='(' & Num(Month(Today()), '00') &'|'& Num(Month(Today())-1, '00') & ')'

antoniotiman
Master III
Master III

Hi Stefan,

try this

='>='&Num(Month(AddMonths(Today(),-2)))&'<='&Num(Month(Today()))

Regards,

Antonio

stekol61
Creator
Creator
Author

This works fine.

Thank You