<?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: Using Variables in an If Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438152#M1151710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=if(vPayGroup = 1 , '(' &amp;amp; concat({1&amp;lt;[APInv.PayGroup] -= {'NHS'}&amp;gt;} distinct &lt;STRONG&gt;chr(34) &amp;amp; [APInv.PayGroup] &amp;amp; chr(34)&lt;/STRONG&gt; , '|' ) &amp;amp; ')' )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 12:51:33 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-05-08T12:51:33Z</dc:date>
    <item>
      <title>Using Variables in an If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438149#M1151707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a button that toggles between a selection in a field and then showing all!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field - APInv.PayGroup (Data - GP, Local Gov, NHS, Non-NHS, Ophthalmic, Petty Cash, UPR, Utility)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Button 1 - =if(vPayGroup = 1 , 'NHS', '') &lt;/STRONG&gt;This is created in Actions &amp;gt; Select In Field &amp;gt; Search String &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This button works fine and toggles between showing 'NHS' and showing all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Button 2 - &lt;/STRONG&gt;I want this to toggle between showing all and then all except NHS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am unsure how to use this in the search string!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 10:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438149#M1151707</guid>
      <dc:creator />
      <dc:date>2013-05-08T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variables in an If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438150#M1151708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vPayGroup = 1 , '(' &amp;amp; concat({1&amp;lt;[APInv.PayGroup] -= {'NHS'}&amp;gt;} distinct [APInv.PayGroup] , '|' ) &amp;amp; ')' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 11:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438150#M1151708</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-08T11:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variables in an If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438151#M1151709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This a good start thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this is missing out 'Local Gov' &amp;amp; 'Petty Cash'!! I have checked the data to make sure that there is data to be shown and there is!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 12:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438151#M1151709</guid>
      <dc:creator />
      <dc:date>2013-05-08T12:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variables in an If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438152#M1151710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=if(vPayGroup = 1 , '(' &amp;amp; concat({1&amp;lt;[APInv.PayGroup] -= {'NHS'}&amp;gt;} distinct &lt;STRONG&gt;chr(34) &amp;amp; [APInv.PayGroup] &amp;amp; chr(34)&lt;/STRONG&gt; , '|' ) &amp;amp; ')' )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 12:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438152#M1151710</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-08T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variables in an If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438153#M1151711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great, it's now working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks gysbert, mucha appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 13:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variables-in-an-If-Statement/m-p/438153#M1151711</guid>
      <dc:creator />
      <dc:date>2013-05-08T13:26:00Z</dc:date>
    </item>
  </channel>
</rss>

