Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
robbybalboa
Contributor III
Contributor III

YTD + LYTD button - error

Hello,

I have created a textbox button with the following statement:


='(>='  &YearStart(Today())&  ' and <='&  date(Today())   &')

or

(>='  &YearStart(Today(),-1)&  ' and <='&   AddMonths(Today(),-12)  &')'

Result text-string:

(>=01.01.2013<=22.08.2013) or (>=01.01.2012<=22.08.2012)


This result is a parameter in a text box -->  action --> selection in field


So far so good.

Problem: Only the first part of the search criteria is used in my app.

The filter is only working for the period 01.01.2013 – 22.08.2013.


Any ideas why this solution does not work?

If I change the input to (>=01.01.2012<=22.08.2012) or (>=01.01.2013<=22.08.2013) then
the search is only possible for the period 2012.


Thank you very much

Robert

11 Replies
robbybalboa
Contributor III
Contributor III
Author

Gratulation.

This is the solution - not to use the braces in the middle of the statement.

Thank you all for your support.

BR

Robert

tresesco
MVP
MVP

PFA, it's working fine.

Edit: Well, you have got the solution already, anyway, an alternative is always good.