Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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))