<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Limiting Button dependent on String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418660#M155750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-) Unfortunately double quotes isn't working, since Qlikview interprets everything between double quotes as a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-) Creating a variable in the source code seems to do the trick. However,the filter is not working as intended. In fact, it doesn't filter at all. I'd like to add a .qvt to this discussion, but can't find a guide how to do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wiley_E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 09:29:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-08T09:29:38Z</dc:date>
    <item>
      <title>Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418658#M155748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to put a date limit on a data set, dependent on a call date and a land code, which is a string.&lt;/P&gt;&lt;P&gt;Below a sample of how my date set looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 60px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Land&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt; Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Invoice date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;amount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;&amp;lt;date&amp;gt;&lt;/TD&gt;&lt;TD&gt;&amp;lt;amount&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BBB&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;&amp;lt;date&amp;gt;&lt;/TD&gt;&lt;TD&gt;&amp;lt;amount&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CCC&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;&amp;lt;date&amp;gt;&lt;/TD&gt;&lt;TD&gt;&amp;lt;amount&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DDD&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;&amp;lt;date&amp;gt;&lt;/TD&gt;&lt;TD&gt;&amp;lt;amount&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;EEE&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;&amp;lt;date&amp;gt;&lt;/TD&gt;&lt;TD&gt;&amp;lt;amount&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first I created an Input box to get a variable for my call date.&lt;/P&gt;&lt;P&gt;Then I created a button using "select from field"with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;='=&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;&amp;lt;Land Code&amp;gt;&lt;/SPAN&gt;='Y',&lt;SPAN style="color: #800000;"&gt;&amp;lt;Invoice date&amp;gt; &amp;lt;=&lt;/SPAN&gt; (&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;call date &lt;/EM&gt;&lt;/STRONG&gt;-10),&lt;SPAN style="color: #800000;"&gt;&amp;lt;Invoice date&amp;gt; &amp;lt;= (&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;call date&lt;/EM&gt;&lt;/STRONG&gt; - 20&lt;/SPAN&gt;)) '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, the problem is that Qlikview links the quotation mark before the "Y" to the one between the two "=". As a result, the whole rest of the command, starting with the "Y", is regarded as an invalid expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'm looking forward to your ideas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Greetings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Wiley_E&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 08:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418658#M155748</guid>
      <dc:creator />
      <dc:date>2013-02-08T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418659#M155749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using double quotes to wrap up the whole statement, or for just the Y test.&lt;/P&gt;&lt;P&gt;Also, if it's just Y you're testing for, you can probably set it up as a variable and test for the variable $(varname) without any quotes.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 08:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418659#M155749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T08:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418660#M155750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-) Unfortunately double quotes isn't working, since Qlikview interprets everything between double quotes as a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-) Creating a variable in the source code seems to do the trick. However,the filter is not working as intended. In fact, it doesn't filter at all. I'd like to add a .qvt to this discussion, but can't find a guide how to do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wiley_E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 09:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418660#M155750</guid>
      <dc:creator />
      <dc:date>2013-02-08T09:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418661#M155751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click on 'Use advanced editor' (after pressing Reply) and there is an upload section further down.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418661#M155751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T10:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418662#M155752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, here's the .qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would be so kind as to have a look at it.... maybe it's just an formatting error....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wiley_E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418662#M155752</guid>
      <dc:creator />
      <dc:date>2013-02-08T10:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418663#M155753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but I can't get this working at the moment either. Some thoughts for you though:&lt;/P&gt;&lt;P&gt;1. you don't need the enclosing ='....' in these value expressions&lt;/P&gt;&lt;P&gt;2. you have a condition as the second parameter to your if statement. This need to be either an if statement in its own right, i.e. if(test,true,false), or an expression that will resolve by itelf, e.g. a+b&lt;/P&gt;&lt;P&gt;3. i'm not sure what you would include as your true condition. I tried the fieldname as you did but that doesn't do it&lt;/P&gt;&lt;P&gt;Going forwards it may be worth creating a new thread in the QlikCommunity as the traffic on this thread may reduce it's chance of being read and answered.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 11:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418663#M155753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418664#M155754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=IF(AKZ_OMA.OKCSCD='&amp;amp;chr(39)&amp;amp;'AT'&amp;amp;chr(39)&amp;amp;' and AKZ_FSL.Rech_Dat&amp;lt;=(Stichtag-10),AKZ_FSL.Rech_Dat)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can let QV create the single quotes using chr(39) (since you are forcing an expression evaluation in your search string anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And check what you want to use as condition and what as then / else branch in your if() statement (I replaced a comma with an &lt;EM&gt;and, &lt;/EM&gt;check above)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 11:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418664#M155754</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-08T11:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418665#M155755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried swuehl's suggestion and modified my statement in the following way to make it a bit more reasonable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;='=IF(AKZ_OMA.OKCSCD='&amp;amp;&lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(39)&amp;amp;'AT'&amp;amp;&lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(39)&amp;amp;',AKZ_FSL.Rech_Dat&amp;lt;=(Stichtag-10),AKZ_FSL.Rech_Dat&amp;lt;=Stichtag)' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The command is valid to QlikView, however no actual filtering is done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Just for explanation: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What I intend to do with this filter is to show all entries older than my call date, unless the Land code is "AT". In this case, I want to show all entries older than 10 days before my call date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(Please don't ask me for the deeper reason of this, It's something only our finance-dept understands &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Wiley_E&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 12:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418665#M155755</guid>
      <dc:creator />
      <dc:date>2013-02-08T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Button dependent on String</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418666#M155756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, to avoid the IF-statement I did a workaround in the below manner using two buttons&amp;nbsp; for the respective time shifts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;lt;=' &amp;amp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;Stichtag&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;-120) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If somebody still comes up with the more elegant "IF"-solution, feel free to contact me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Greetings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Wiley_E_&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 08:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Button-dependent-on-String/m-p/418666#M155756</guid>
      <dc:creator />
      <dc:date>2013-03-22T08:20:57Z</dc:date>
    </item>
  </channel>
</rss>

