Skip to main content
Announcements
MAINTENANCE ALERT: Search experience upgrade - Feb 6: 4 - 8:30AM CET. Downtime expected. READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to make default selection with current month selected

when user logins to the qlikview app. By default current month should be selected in the app. and for the next month it should select next month as the current month.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Go to settings

Document Properties

Triggers

Document Event Triggers

On Open

Add Action

Add

Selection

Select in Field

Field

InvoiceMonth

Search String

=SubField('$(MonthNames)',';',Max({<InvoiceYear = {"$(=Max(InvoiceYear))"}>}InvoiceMonth))

==========================================

Change InvoiceMonth and InvoiceYear as Month and Year or whatever field name you have.

If your Month field is having format MMM (i.e. Jan, Feb, Mar etc) use above. but if your Month field is in numeric format, use

Max({<InvoiceYear = {"$(=Max(InvoiceYear))"}>}InvoiceMonth

View solution in original post

2 Replies
ramoncova06
Partner - Specialist III
Partner - Specialist III

use on open trigger

how to set default selection

MK_QSL
MVP
MVP

Go to settings

Document Properties

Triggers

Document Event Triggers

On Open

Add Action

Add

Selection

Select in Field

Field

InvoiceMonth

Search String

=SubField('$(MonthNames)',';',Max({<InvoiceYear = {"$(=Max(InvoiceYear))"}>}InvoiceMonth))

==========================================

Change InvoiceMonth and InvoiceYear as Month and Year or whatever field name you have.

If your Month field is having format MMM (i.e. Jan, Feb, Mar etc) use above. but if your Month field is in numeric format, use

Max({<InvoiceYear = {"$(=Max(InvoiceYear))"}>}InvoiceMonth