<?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: How to have one listbox for querying multiple fields (logical OR beetwen)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-have-one-listbox-for-querying-multiple-fields-logical-OR/m-p/457220#M489536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are different ways to do this.&lt;/P&gt;&lt;P&gt;I would prefer to seperate the personnumber into a new field&lt;/P&gt;&lt;P&gt;In other word create data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="225"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="49"&gt;Place&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="46"&gt;Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="42"&gt;Age&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="88"&gt;PersonNumber&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;beach&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;toto&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;street&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;jane&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;beach&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;tarzan&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;office&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;mike&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;42&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;street&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;john&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;office&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&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;I attached an example of one way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;Dennis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 11:19:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-10-26T11:19:11Z</dc:date>
    <item>
      <title>How to have one listbox for querying multiple fields (logical OR beetwen)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-one-listbox-for-querying-multiple-fields-logical-OR/m-p/457218#M489534</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 am quite new to QlikView and with my colleague we are trying to have a list box for querying multiple fields, without success.&lt;/P&gt;&lt;P&gt;Perhaps you are more experienced, and you may help :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First we have a QlikView document and the data come from a Excel sheet&lt;/P&gt;&lt;P&gt;The Excel sheet has two headers because it is possible to have multiple object of the same nature, for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="background-color: #d7d6ff; text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Place&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TD colspan="2" style="background-color: #d7d6ff;"&gt;&lt;H1&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;person1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/H1&gt;&lt;/TD&gt;&lt;TH colspan="2" style="background-color: #d7d6ff;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;person2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;age&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;age&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;beach&lt;/TD&gt;&lt;TD&gt;toto&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;tarzan&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;street&lt;/TD&gt;&lt;TD&gt;jane&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;john&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;office&lt;/TD&gt;&lt;TD&gt;mike&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We decided to simplify the file to a sigle header file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;Place-name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;person1-name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;person1-age&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;person2-name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="center" style="background-color: #d7d6ff;" valign="middle"&gt;&lt;STRONG&gt;person2-age&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;beach&lt;/TD&gt;&lt;TD&gt;toto&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;tarzan&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;street&lt;/TD&gt;&lt;TD&gt;jane&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;john&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;beach&lt;/TD&gt;&lt;TD&gt;mike&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then we created a QlikView document from this file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we are trying to do now is to filter by age.&lt;/P&gt;&lt;P&gt;For exemple we want all place names that are frequented by &lt;STRONG&gt;at leat&lt;/STRONG&gt; one person of 32 years old &lt;/P&gt;&lt;P&gt;for example : 32 will give : street and beach &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately when we create a list box, it is linked to one single field ? But what we want here is to query multiple fields with a logical OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion about how we can achieve that? What is the right way to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear enough &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 09:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-one-listbox-for-querying-multiple-fields-logical-OR/m-p/457218#M489534</guid>
      <dc:creator />
      <dc:date>2012-10-26T09:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to have one listbox for querying multiple fields (logical OR beetwen)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-one-listbox-for-querying-multiple-fields-logical-OR/m-p/457219#M489535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can want to have two columns, you should be able to create this table with two header rows using a pivot table.&lt;/P&gt;&lt;P&gt;In the script add a PersonNum field to your Persons table to say whether will appear in column 1, 2 ... n.&lt;/P&gt;&lt;P&gt;On the pivot chart:&lt;/P&gt;&lt;P&gt;First dimension = PlaceName&lt;/P&gt;&lt;P&gt;Second dimension = PersonNum (the column identifier)&lt;/P&gt;&lt;P&gt;First expression = only(PersonName)&lt;/P&gt;&lt;P&gt;Second expresison = only(Age)&lt;/P&gt;&lt;P&gt;You could then drag and drop dimension 3 (PersonNum) onto horizontal header to show person-1 or person-2 etc. columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-one-listbox-for-querying-multiple-fields-logical-OR/m-p/457219#M489535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-26T11:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to have one listbox for querying multiple fields (logical OR beetwen)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-one-listbox-for-querying-multiple-fields-logical-OR/m-p/457220#M489536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are different ways to do this.&lt;/P&gt;&lt;P&gt;I would prefer to seperate the personnumber into a new field&lt;/P&gt;&lt;P&gt;In other word create data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="225"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="49"&gt;Place&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="46"&gt;Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="42"&gt;Age&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="88"&gt;PersonNumber&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;beach&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;toto&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;street&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;jane&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;beach&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;tarzan&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;office&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;mike&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;42&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;street&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;john&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Person2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;office&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&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;I attached an example of one way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;Dennis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-one-listbox-for-querying-multiple-fields-logical-OR/m-p/457220#M489536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-26T11:19:11Z</dc:date>
    </item>
  </channel>
</rss>

