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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
RentiaC
Contributor
Contributor

Filter/Field edit on NPrinting

good day

currently I have an published report that pulls data for the current month.

the filter field being used is =only({=$(=Date((Today() )))}YearMonth)

I'm relatively new to nprinting and sql, how can this formula be changed to get the Prev Months data.

for example it runs now from 1Dec to 31 Dec

but the require 1 Nov to 30Nov

thanks

2 Replies
Chanty4u
MVP
MVP

create a  a max month-1  in the data and  you will get the last month data

same use that column in filter  then you will get the expected data

pipuindia99
Creator III
Creator III

Hi,

You can add this expression in the filter condition

Month(Today())-1

this will take to prev month data.