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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

creating from an additionally flag-field to exclude such future data

How to create from an additionally flag-field to exclude such future data which are forecast-data by selecting (and locking) this field ?


1.png

9 Replies
Anonymous
Not applicable
Author

Not sure what you are asking ?

Do you want to exclude data after today ?

Anonymous
Not applicable
Author

yes exact

Anonymous
Not applicable
Author

In the script maybe something like :

     If ( [YourDate} > today() , 'Yes' , 'No' )     as [Future Flag] ,

marcus_sommer

Within your load (best within the master-calendar) create a new field which is checking your date-field with:

...

if(date < today(), dual('past', 0), dual('future', 1)) as DateFutureFlag,

....

- Marcus

Anonymous
Not applicable
Author

how can I use this flag in the filter ?

Anonymous
Not applicable
Author

Create a List Box on the Flag Field and select the value you are after.

marcus_sommer

Like Bill mentioned use a simple listbox and if you hide them (directly or on a hiden sheet) and lock them those selection couldn't be easy deselect from any other user-selection.

- Marcus

Anonymous
Not applicable
Author

I didn't figure out , I am newbie with QV

Anonymous
Not applicable
Author

Do you know how to create a List Box ?