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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

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

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

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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
tresB
Champion III
Champion III

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

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

Anonymous
Not applicable
Author

Thanks for your help.