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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
harson
Contributor III
Contributor III

Filter for the data on the previous month

Hello Community

I encountered a difficulty on a filter in NPrinting.

I have to retrieve the previous month's data, and I put as filter :

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

Year=Year(Now()).

The problem is that if I am in January and I have to retrieve the data from December, it did not work.

Any ideas ?

Thanks in advance.

1 Solution

Accepted Solutions
sunny_talwar

May be use this for Year

Year=Year(AddMonths(Now(), - 1))

View solution in original post

1 Reply
sunny_talwar

May be use this for Year

Year=Year(AddMonths(Now(), - 1))