Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

Current Day as a list box

Dear Qlikview user

I have several date list boxes  I.e. Year, Month and Quarter.  I would like 2 additional list boxes, where if the user clicks on the box, the data will show information for Current Day and Current Week

I have created a list box where the field expression is: =Date(Now()), however when I click on it, the data does not interact with the list box

Could someone kindly guide me as to how I can create a list box or button where the user can select the Current Day or Current week

Kind Regards

Helen

1 Solution

Accepted Solutions
Gysbert_Wassenaar

I have created a list box where the field expression is: =Date(Now()), however when I click on it, the data does not interact with the list box

Well, that's because Now() is a function and not a value from a field in your data model. That listbox is completely independent of your data model and thus won't have any effect on anything.

What you can do instead is use Text box objects (or buttons) and add Select in Field actions to those objects so that a click on the object will make a selection in your date field. You can find an example here: Re: Create a date range within a button


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try using max(yourdatefield)

Gysbert_Wassenaar

I have created a list box where the field expression is: =Date(Now()), however when I click on it, the data does not interact with the list box

Well, that's because Now() is a function and not a value from a field in your data model. That listbox is completely independent of your data model and thus won't have any effect on anything.

What you can do instead is use Text box objects (or buttons) and add Select in Field actions to those objects so that a click on the object will make a selection in your date field. You can find an example here: Re: Create a date range within a button


talk is cheap, supply exceeds demand
helen_pip
Creator III
Creator III
Author

Hello Gysbert

Thank you for the advice, with your help I was able to achieve my desired results

An action on a text object where the action was select in Field: =('>=' & Today())

Thanks

Helen