<?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: Including OR logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411572#M153201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right so here if my end user wanted to find all accts for V42.7 they would need to search the code in [Prim Diag] to find accts 5000-5003. Then they would need to search the code in [Sec Diag] to find accts 5005-5007. I would like a way where the can search for this code once and return all valid accts. Hence my thought of using an OR function..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 20:20:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-06T20:20:10Z</dc:date>
    <item>
      <title>Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411570#M153199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a field that will display selections from 2 other loaded fields [Prim Diag] and [Sec Diag]. If this were a report ran in Crystal the logic would be to include info for Diag Code X01.13 where listed in [Prim Diag] or [Sec Diag]. With the current table I have in QV it is possible to get this info by setting 2 separate filters (obviously), but for user ease I would like to be done with 1 step. Does anyone know how to do this? Please let me know if you need an example or attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 19:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411570#M153199</guid>
      <dc:creator />
      <dc:date>2013-02-06T19:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411571#M153200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pl attach sample application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 19:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411571#M153200</guid>
      <dc:creator />
      <dc:date>2013-02-06T19:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411572#M153201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right so here if my end user wanted to find all accts for V42.7 they would need to search the code in [Prim Diag] to find accts 5000-5003. Then they would need to search the code in [Sec Diag] to find accts 5005-5007. I would like a way where the can search for this code once and return all valid accts. Hence my thought of using an OR function..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411572#M153201</guid>
      <dc:creator />
      <dc:date>2013-02-06T20:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411573#M153202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somebody might come up with a better method than this, but here goes (I can't modify your example tonight as I'm not near a pc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a data island in your data model that is a field containing the distinct values from both [prim diag] and [sec diag]. Use this field in your front end for the user to select against.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your chart you need to use a set analysis expression that implies an OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume you want sum of sales in your chart, your expression would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[prim diag]={[selected field name]}&amp;gt;}sales)+&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[sec diag]={[selected field name]}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax here might not be precise as I can't check it but if you can't make it work drop a reply in and I'll take a look in the morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411573#M153202</guid>
      <dc:creator />
      <dc:date>2013-02-06T20:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411574#M153203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sec Diag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp;'--'&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Prim Diag] &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411574#M153203</guid>
      <dc:creator />
      <dc:date>2013-02-06T20:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411575#M153204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although a concatenation would include the code in a search I need it to display only that diag code. I could concatenate and rename the tables to include both options but that is would take a lot of reloading of all my files. An if or function should be able to grab the right data I just havn't seen an example I can use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411575#M153204</guid>
      <dc:creator />
      <dc:date>2013-02-06T20:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411576#M153205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411576#M153205</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-06T20:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Including OR logic</title>
      <link>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411577#M153206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh beautiful! Thank you so much!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-OR-logic/m-p/411577#M153206</guid>
      <dc:creator />
      <dc:date>2013-02-06T20:51:23Z</dc:date>
    </item>
  </channel>
</rss>

