Skip to main content
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

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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

tresesco
MVP
MVP

Try:

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

Anonymous
Not applicable
Author

Perfect!

Thank you.