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

Prior month by selected month

Hi!

How i can get prior month from by selected month ?

For example, if i choose october, i need to get september

Thank you!

There is attached model

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try:

=Sum({<Month={"$(=Month(AddMonths(Max(Date),-1)))"}>}Quantity)

View solution in original post

3 Replies
Anonymous
Not applicable
Author

where you want to get the previous month?

can you explain mor eindetail within your application?

you can use addmonths for instance

addmonths(date,-1) will get you the previous month

tresB
Champion III
Champion III

Try:

=Sum({<Month={"$(=Month(AddMonths(Max(Date),-1)))"}>}Quantity)

Anonymous
Not applicable
Author

Perfect!

Thank you.