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

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

Show date if inside selected date range?

Hi!  I hae this colomn first_order_date and want to show it in my result table only if it's inside the selected date range.

For example:

product a s first_order_date = 2014-02-12

my selection of dates is 2014-01-01 to 2014-03-01

then i want to show first_order_date

but if my selection of dates is 2014-04-01 to 2014-05-01 i dont want it to show.

any ideas?

6 Replies
antoniotiman
Master III
Master III

Hi Rickard,

Your selection date is from List Box or Date_Start and Date_End ?

Not applicable
Author

Its actually from 3 listboxes, using year, month, day,

mjayachandran
Creator II
Creator II

Just Create two new variables… like  "vStartDate" and "vEndDate"

then go to Settings –>> 'Document Properties' –>> 'Triggers' --> 'Variable Event Triggers'

Select vStartDate -- > OnChange Add Action --> Add --> Select in Field

Field = "Your Date field"

Search String = ='>='&vStartDate & '<=' & vEndDate

same for 'vEndDate'.

In Input Box , add these two variables, Go to number tab and make sure that the formatting of vStartDate and vEndDate is same as your Date Field….

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You may be able to use something like:

    

     =Sum({<first_order_date = P(day)>} value)

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
tresesco
MVP
MVP

How are the date field related? It would be easier to help if you could create a sample qvw and share.

antoniotiman
Master III
Master III

See attachment.

Thet is a starting point.