Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Srikanth_595
Contributor
Contributor

Date Selection on Individual filters

Need to create two individual filters(From date & To date ) from single date

when selects From date in To date i need show only future 30 days for selection

Need help!

Labels (1)
3 Replies
rubenmarin

Hi, in an app with this script:

LOAD Date(Today()+RecNo()) as FromDate AutoGenerate 100;
LOAD Date(Today()+RecNo()) as ToDate AutoGenerate 100;

I tried to add FromDate in a filter panel, and another panel with this calculated dimension for ToDate: 

=Aggr(If(ToDate>=FromDate and ToDate<=FromDate+30, ToDate),ToDate)
Srikanth_595
Contributor
Contributor
Author

Hi Rubenmarin,

thanks for reply

I tried the above solution it was showing me the forecasting dates. But I need future dates which are present in table

I was trying like

Only({$<ToDate={">=$({$<GetFieldSelections(FromDate)<=GetFieldSelections(FromDate)+30)"}>} ToDate)

but dates are not reflecting in the filter throwing invalid dimension error

rubenmarin

Hi, the above was just an example, you don't have to copy or use the script part, just adapt 

=Aggr(If(ToDate>=FromDate and ToDate<=FromDate+30, ToDate),ToDate)

to your fields.