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: 
timsaddler
Creator III
Creator III

How to Select the next 4 months

On opening a sheet i would like to force Feb, Mar,Apr,May to trigger for 2014.

I can trigger a variable for VCurrentYear and vCurrentMonth.

How do i expand this to be the next 4 inclusive.?

thanks

3 Replies
datanibbler
Champion
Champion

Hi Tim,

use a formula, like

>>> ([month_field] >= v_current_month AND [month_field] <= (v_current_month + 3)) <<<

manojkulkarni
Partner - Specialist II
Partner - Specialist II

set vCurrentMonth = ("Feb"|"Mar"|"Apr"|"May")

jpapador
Partner - Specialist
Partner - Specialist

Use select in field on your date field and use this as the search string:

='>=' & MonthStart(Today()) & '<=' & MonthEnd(AddMonths(Today(), 3))

In document properties on the triggers tab you can add this as a on open trigger.