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

How to filter result by current month?

Dear All,

I got a question:

I am doing a KPI report. The data is stored with the month column like 2016-01, 2016-02. ...

Now I would like to display current month's data such as now only 2016-12 be selected. How can I define this filter?

Appreciated.

Trent Gu

10 Replies
Anonymous
Not applicable
Author

Hi ,

As per my understanding , U need to filter the data for current month when u opened dashboard  ?

if yes

create one action   Document propertirs>Triggers>on  open document> add action> select in field> max(datefield)

Anonymous
Not applicable
Author

Hi,

You need to create a action.

IF you want to select current month when u opened dashboard then :-

Lets assume your Field name is MonthCol

Create one action

Document propertirs>Triggers>Onopen<Has Action(s)> add action> Select in field> Put Column Nmae in Field (MonthCol)

and Put Condition =Date(Today(),'YYYY-MM')  in Search Field.

THanks

shraddha_g
Partner - Master III
Partner - Master III

you can do it by 2 ways.

1. Using Month filter in Set analysis in all expressions.

2. Default selection to Month as 2016 -12 by using extension Qlik Branch

lakshmikandh
Specialist II
Specialist II

Declare a variable and use the variable in your KPI calculations, assign the variable in the Load script to default to the desired values.

Not applicable
Author

I tested this extension, looks cool but the initial selection not working.

Not applicable
Author

Thanks but I am so junior and even don't know where to edit it.

shraddha_g
Partner - Master III
Partner - Master III

can you share your sample?

Not applicable
Author

HI, The extension worked for me now. It is very helpful.

It don't work before because I set the "per session" but I don't re-logon.

Now it is working.

Thanks very much.

renuka_sasikumar
Creator III
Creator III

Hello,

Even I have the same requirement max year & max month to be selected when the dashboard is opened.

Is it possible without using extension.

Regards,

Renuka S