Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need help creating a filter in Nprinting to get only values for the previous day. Below is what I have got but it does not give me the expected answer. Your suggestions will be appreciated. Thanks
Change Advance Search to Evaluate Value and in the field enter
=Today()-1
Hi @Pomna
@robert_mika answer will work if your date field which I assume is "CusSat Created Date" is loaded as a date without timestamp. On Qlik script side it should be loaded with statement similar to following:
Load
....
Date(Floor(somedate)) as [CusSat Created Date]
....
The above scenario will filter down data on [CusSat Created Date] only to yesterdays records.
I also looked at your screenshot and I am trying to understand what you have tried to do in there. You have used [Date] field and you wanted to filter [CusSat Created Date] by using association to [Date] field which you wanted to filter to records greater or equal than yesterdays date.
Now the question is:
cheers
Lech
There are 3 possible separate issues with this:
You may also provide a screenshot of your filter in NPrinting for a reference here.
Change Advance Search to Evaluate Value and in the field enter
=Today()-1
Hi @Pomna
@robert_mika answer will work if your date field which I assume is "CusSat Created Date" is loaded as a date without timestamp. On Qlik script side it should be loaded with statement similar to following:
Load
....
Date(Floor(somedate)) as [CusSat Created Date]
....
The above scenario will filter down data on [CusSat Created Date] only to yesterdays records.
I also looked at your screenshot and I am trying to understand what you have tried to do in there. You have used [Date] field and you wanted to filter [CusSat Created Date] by using association to [Date] field which you wanted to filter to records greater or equal than yesterdays date.
Now the question is:
cheers
Lech
I added the following to my load script
Date(Floor([CusSat Date])) as [CusSat Created Date] to my load script
and Evaluete Value =Today()-1
It worked. But when I want to see two previous days
Today()-2
or seven previous days
Today()-7
I get an error message. Is there a reason for that? Thanks
Hi,
Please specify the text of the error message.
Best Regards,
Ruggero
Below is the error message I get
There are 3 possible separate issues with this:
You may also provide a screenshot of your filter in NPrinting for a reference here.
Thank you for all your help. When I do just the date filter with just one field or only the assigned team filter with only one field it runs without issue. But when I create a second field (see screen shots below) that is when I get issues.
ok then it looks like combinations of values you are trying to apply is not possible in your data model or your filter for Assigned team is created wrong although based on what you say it is not as it works on its own..
So just to confirm my first guess I suggest you go to Qlik Sense app an try applying this selection there - is it possible?
The selection works in Qlik Sense. Assigned team is filtered by date. Please see screen shot below