Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
tresesco
MVP
MVP

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

tresesco
MVP
MVP

=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

tresesco
MVP
MVP

Try:

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