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

Announcements
Register by January 31 for $300 off your Qlik Connect pass: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
subbareddykm
Creator II
Creator II

on Open

Hi all,

I need one input ,

When i open application My last month should get selected  in YearMotth Field .

Can any one tell me how to do this ?

1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try:

=Date(AddMonths(today(),-1), 'YYYY.MM')


View solution in original post

5 Replies
techvarun
Specialist II
Specialist II

Use below script on onopen trigger

=MaxString(YearMonth)

techvarun
Specialist II
Specialist II

sample.PNG

tresB
Champion III
Champion III

=MaxString(Date#(YearMonth, 'YYYY.MM'))

subbareddykm
Creator II
Creator II
Author

It is not selecting last month, let say if current month is 2017.Nov then it show select 2017 Oct, if it is 2018.Jun then it should select 2018 May i.e.2018.05. etc.

I hope you understood

tresB
Champion III
Champion III

Try:

=Date(AddMonths(today(),-1), 'YYYY.MM')