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: 
Not applicable

No display of today

Hi

I have a small problem. Using QV 10,0. I would like to not show today (but every day in the month before today) when opening a report. I know that I can make a trigger when opening the report. And I have already a trigger on month ( = month(today()) ).

I have tried to use the following in a new trigger on day:

=day (before(today()))

=day (not(today()))

=day (<today())

=day (today()-1)

But non of these is giving me a correct result.

If I use = day (today()) then it will show today, but how do I exclude today?

1 Solution

Accepted Solutions
Not applicable
Author

Hi all

Now I got the solution. I only use triggers on open report. 3 triggers I need.

First choose: "Select in field" then "Field" = Date and "Search String" = Date(today(),'YYYY-MM-DD')

Second choose: "Select Excluded" then "Field" = Date

Third choose: "Select in field" then "Field" = Month and "Search String" = =month(today())

View solution in original post

13 Replies
Not applicable
Author

Have you considered putting an advanced search in a bookmark (such as =Date < today() ) and then activate the bookmark and the associated advanced search on entry of app or a relevant tab through an action?

Not applicable
Author

Hi

No I have not. but how do you make the bookmark variable? Or how/where do you define that the bookmark should be ( =Date < today() )??

Anonymous
Not applicable
Author

If you don't need today at all I would solve it in the loading script.
Just load the data up to yesterday.

You can do this by adding something like the line below to your loadscript.

Where DATEFIELD < day(today()) ;

Not applicable
Author

Hi

I have thought of that, but I need today. I do just not want to display it when my people is opening the file.

So I can only think of using a trigger. But It will not work for me

Anonymous
Not applicable
Author

Hi Bjarne,

Have you tried an calculated dimension? That should work imo.

Just use something like below:

=IF(Date<Today(), Dimension)


Anonymous
Not applicable
Author

And check Suppress when value is Null.

rahulgupta
Partner - Creator III
Partner - Creator III

Hey hi,

In this case you can use set analysis...


=sum( {<Day = {"*"} - {$(=today())} Sales )


Hope this works...

Not applicable
Author

Hi

Where do I see or find this calculated dimension?

Not applicable
Author

Hi

Where do I see/find this set analysis?