Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Display previous month in a listbox

Hi,

in a listbox months can be selected. When opening, or change worksheets previous month to the current month should be displayed and selected. In the current month of June that would be May. The problem is, that Month is in text format. Do you have any idea? Thanks for help.

Regards Stefan

1 Solution

Accepted Solutions
tresesco
MVP
MVP

See attached. I have done it for your second sheet.

=Month(AddMonths(Today(),-1))

View solution in original post

3 Replies
Gysbert_Wassenaar

Create a numerical month (or a date using monthstart) field in the script and use that to make the selection in.


talk is cheap, supply exceeds demand
tresesco
MVP
MVP

See attached. I have done it for your second sheet.

=Month(AddMonths(Today(),-1))

Anonymous
Not applicable
Author

Thanks for your help.