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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
shamitshah
Partner - Creator
Partner - Creator

Field and Search String properties in Button Box

Hi,

I have the following expression in a QlikView chart which I am trying to reflect in a button to select all outstanding Purchase Orders which are due (not yet delivered). The two fields are DueDate and OrderedUnits.

The expression sum(if(DueDate>Today(), OrderedUnits)) works in the chart.

Need to know what I need to enter in the Field and Search String boxes in order to make the button work. Any idea?

Thanks!

1 Solution

Accepted Solutions
marcus_sommer

If this didn't work it's mostly caused by the formattings - you need to apply an additionally date-function like:

=DueDate>date(today())

     or

=DueDate>date(today(), 'YourDueDateFormat')

Edit: within a button you need to wrap it in single-quotes: ='=DueDate>date(today())'

- Marcus

View solution in original post

11 Replies
marcus_sommer

Try as search-expression: =DueDate>today()

- Marcus

shamitshah
Partner - Creator
Partner - Creator
Author

Hi Marcus,

I entered the following under Select In Field in the Actions tab in Button properties but it did not seem to work:

Field - OrderedUnits

Search String  - =DueDate>today()

Thanks

Shamit

marcus_sommer

If this didn't work it's mostly caused by the formattings - you need to apply an additionally date-function like:

=DueDate>date(today())

     or

=DueDate>date(today(), 'YourDueDateFormat')

Edit: within a button you need to wrap it in single-quotes: ='=DueDate>date(today())'

- Marcus

tamilarasu
Champion
Champion

Hi Shamit,

Try like,

Field                ->  OrderedUnits


Search String  ->  =DueDate & '>' & Today()

shamitshah
Partner - Creator
Partner - Creator
Author

Hi Guys,

I tried the suggestion from Marcus(='=DueDate>date(today())') and it works.

Thanks guys!

shamitshah
Partner - Creator
Partner - Creator
Author

Guys,

Just another twist to the above. Trying to get the flip side of the expression that worked (='=DueDate>date(today())') i.e. now want to pick all items that do not have a due date, meaning that there are no outstanding orders.

I included Select Excluded, but that now picks all the items.

Any ideas?

Thanks

Shamit

Anonymous
Not applicable

Close this thread by selecting helpful/Correct answer

marcus_sommer

Try: ='=len(trim(DueDate))=0'

- Marcus

shamitshah
Partner - Creator
Partner - Creator
Author

Tried the above but it is picking up all lines as opposed to lines that do not have a due date.

Thanks

Shamit