<?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: Button to select multiple fields with logical OR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832434#M531514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the simplest and most straightforward approach I think might be to have a small two column table generated like this in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AbsolutelySold:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Status = 'Sold') AS DefinitelySold&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableWithTheField_Status;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Inventory = 'Sold') AS DefinitelySold&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableWithTheField_Inventory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the two fields are in the same table you can simplify it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AbsolutelySold:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Status = 'Sold' Or Inventory = 'Sold') AS DefinitelySold&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableWithTheTwoFields_Status_and_Inventory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you application you can have the field DefinitelySold in a list box and that will act as your button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 22:29:25 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-06-04T22:29:25Z</dc:date>
    <item>
      <title>Button to select multiple fields with logical OR</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832431#M531511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to find a way to have&amp;nbsp; a selection of 2 fields with a button.&lt;/P&gt;&lt;P&gt;What I basically want is a button that shows&lt;/P&gt;&lt;P&gt;Sold items that are marked as 'Sold' in the field 'Status'&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Sold items that are marked as 'Sold' in the field Inventory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so basically a button with:&lt;/P&gt;&lt;P&gt;Select in Field: Status OR Inventory&lt;/P&gt;&lt;P&gt;Search String: *Sold*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that somehow possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832431#M531511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-04T21:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select multiple fields with logical OR</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832432#M531512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If You have&lt;/P&gt;&lt;P&gt;Field,Status,Inventory&lt;/P&gt;&lt;P&gt;A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sold&lt;/P&gt;&lt;P&gt;B,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sold,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;If You select A, You exclude B.&lt;/P&gt;&lt;P&gt;However ,You can add to script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If(Status='Sold' or Inventory='Sold',1) as Flag;&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; * from .......;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // or SQL Select * from ...;&lt;/P&gt;&lt;P&gt;Then in Your Button -&amp;gt; Select -&amp;gt; Action -&amp;gt; Select in Field Flag -&amp;gt; 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also You can use expression like&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Status={'Sold'}&amp;gt;+&amp;lt;Inventory={'Sold'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;in your objects.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 22:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832432#M531512</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-06-04T22:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select multiple fields with logical OR</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832433#M531513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically you want to select Items, right?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try creating a button with action Select - Select in field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Field: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Item&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Search string: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;='=Status like ' &amp;amp; chr(39) &amp;amp; '*Sold*' &amp;amp; chr(39) &amp;amp; ' or Inventory like &lt;SPAN style="font-size: 13.3333330154419px;"&gt;' &amp;amp; chr(39) &amp;amp; '*Sold*' &amp;amp; chr(39)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 22:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832433#M531513</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-04T22:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select multiple fields with logical OR</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832434#M531514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the simplest and most straightforward approach I think might be to have a small two column table generated like this in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AbsolutelySold:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Status = 'Sold') AS DefinitelySold&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableWithTheField_Status;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Inventory = 'Sold') AS DefinitelySold&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableWithTheField_Inventory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the two fields are in the same table you can simplify it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AbsolutelySold:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Status = 'Sold' Or Inventory = 'Sold') AS DefinitelySold&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableWithTheTwoFields_Status_and_Inventory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you application you can have the field DefinitelySold in a list box and that will act as your button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 22:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/832434#M531514</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-04T22:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select multiple fields with logical OR</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/1629013#M531515</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;you are the boss, what an elegant solution, I had to play with the syntax a bit but now it is working,txs&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 11:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/1629013#M531515</guid>
      <dc:creator>bwohletz</dc:creator>
      <dc:date>2019-09-27T11:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select multiple fields with logical OR</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/1796634#M1211304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is very old post but I have similar requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the same logic and it didn't work.&lt;/P&gt;&lt;P&gt;the Item field you mentioned here is not in context.&lt;/P&gt;&lt;P&gt;can you please elaborate little more?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 15:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/1796634#M1211304</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2021-04-02T15:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select multiple fields with logical OR</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/1796637#M1211307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22821"&gt;@bwohletz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar requirement like this, it the syntax worked?&lt;/P&gt;&lt;P&gt;you just have Status and Inventory fields but not sure how Item came into context.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 15:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-multiple-fields-with-logical-OR/m-p/1796637#M1211307</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2021-04-02T15:29:09Z</dc:date>
    </item>
  </channel>
</rss>

