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

Set analysis with Today()

Hi

I have a button with a action that sets a report date to today. If the data has today's data then it will show although if there is no data for today, I was expecting qlikview to hide the data on the page but it doesn't do anything because it can't find today's data in the data set.

On Action tab

Field = Report Date

Search String = Date(Today(), 'DD/MM/YYYY')

Is there any way I can hide all data if no today's data is found.

Thanks

1 Reply
Not applicable
Author

Hi,

You can search for the max date at after load and put into a variable, and use this variable to Enable / Show Condition.

1st. Step

______________________________________________________________________

// Insert this code bellow the fact table load.

//********************Peek the max date ***************************

tmp:
LOAD
          max(date)     as max_date

Resident FactTable;

LET VariableMaxDate=peek('max_date',0,'tmp');

Drop Table tmp;

//*************************************** ***************************

2nd. Step

______________________________________________________________________

Put the condition on the object,

1.png

or

2.png