Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to generate an NPrinting report with data from QlikView that will only show data from a table based on a date column - I want to show data for previous month.
Date Column has the following format - Date_column = 2022 01
I have tried with Filters in NPrinting(Create Filter -Fields -Date_column - Value is - Advanced Search/Value is -> Date_column= Date(AddMonths(Today(),-1,'YYYY MM') but it's not working.
Thank you
Hi @oanalung ,
Lets cover the basics:
Now last thing to understand are the functions you are trying to use: Below functions creates (I broke it down for you, also note red bracket below which was missing in your syntax):
What I tried to show you is that use of (Date()) function does not change anything as effectively the value returned is still the same and it is actual date - all what it does is just apply certain format. More about date function on Qlik help side: https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/Scripting/Formatting...
The very poor solution to your query would be probably syntax for Advanced Search like below - assuming that you upgrade your NPrinting version to supported version with Advanced Search:
At the end I provide you with the links to documentation about the filters you are trying to use and links to topics on my blog where I describe issues with filters:
Summary:
knowing how your field is created, its data type/tag and its values we would likely be able to provide you with different solution than the poor one with text() function.
cheers
Lech