<?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 limit multiple conditions in a multi-table query? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623130#M229333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bing,&lt;/P&gt;&lt;P&gt;I think u should first join all the tables so that all the fields that need to be filtered is in one single table. Then its easy to apply those filters.&lt;/P&gt;&lt;P&gt;Qlikview will not let u filter data referring to other tables that have been loaded before(in the scripting part).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to keep them in different tables, u can find a key column that will link all the three table and u can filter out data while showing it in the Front end with Calculated dimension and Set analysis. But this is going to reduce the performance and the calculations would become complex and heavy.&lt;/P&gt;&lt;P&gt;So i think its best to do it in data modeling.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Apr 2014 08:44:26 GMT</pubDate>
    <dc:creator>sundarakumar</dc:creator>
    <dc:date>2014-04-27T08:44:26Z</dc:date>
    <item>
      <title>How to limit multiple conditions in a multi-table query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623129#M229332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose have 3 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mstdst="0_0:3" _mstsrc="0_0:1" style="color: #000000; font-family: Arial; font-size: 12px;"&gt;Case&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN _mstdst="0_5:9" _mstsrc="0_2:2" style="color: #000000; font-family: Arial; font-size: 12px;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN _mstdst="0_11:18" _mstsrc="0_3:4" style="color: #000000; font-family: Arial; font-size: 12px;"&gt;includes&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12px;"&gt; the &lt;/SPAN&gt;&lt;SPAN _mstdst="0_24:32" _mstsrc="0_5:6" style="color: #000000; font-family: Arial; font-size: 12px;"&gt;following&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN _mstdst="0_34:39" _mstsrc="0_7:8" style="color: #000000; font-family: Arial; font-size: 12px;"&gt;fields&lt;/SPAN&gt;: case id, open date, close date, owner workgroup, closer workgroup, and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owner table include the following fields: owner workgroup, owner login name, and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closer table include the following fields: closer workgroup, closer login name, and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to limit following conditions: open date between 2014/01/21 and 2014/03/21; owner workgroup is A; closer workgroup is B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to limit multiple conditions in a multi-table query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 08:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623129#M229332</guid>
      <dc:creator />
      <dc:date>2014-04-27T08:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit multiple conditions in a multi-table query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623130#M229333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bing,&lt;/P&gt;&lt;P&gt;I think u should first join all the tables so that all the fields that need to be filtered is in one single table. Then its easy to apply those filters.&lt;/P&gt;&lt;P&gt;Qlikview will not let u filter data referring to other tables that have been loaded before(in the scripting part).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to keep them in different tables, u can find a key column that will link all the three table and u can filter out data while showing it in the Front end with Calculated dimension and Set analysis. But this is going to reduce the performance and the calculations would become complex and heavy.&lt;/P&gt;&lt;P&gt;So i think its best to do it in data modeling.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 08:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623130#M229333</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-04-27T08:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit multiple conditions in a multi-table query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623131#M229334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;start with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load the 3 tables (don't join)&lt;/P&gt;&lt;P&gt;use same names for the fields&amp;nbsp;&amp;nbsp; (qlikview will associate the tables in the data model)&lt;/P&gt;&lt;P&gt;- &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;owner workgroup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;- closer &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;workgroup&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add some chart&lt;/P&gt;&lt;P&gt;add 3 listbox to filter data (owner workgroup, closer workgroup, open date)&lt;/P&gt;&lt;P&gt;filter the charts using the listbox&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - in open date listbox (example)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;=21/01/2014&amp;lt;=21/03/2014 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; in owner and closer just click on A and B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 09:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623131#M229334</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-27T09:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit multiple conditions in a multi-table query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623132#M229335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think he needs to filter data with query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 09:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623132#M229335</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-04-27T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit multiple conditions in a multi-table query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623133#M229336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to (I prefere this way) stay with 3 tables&lt;/P&gt;&lt;P&gt;- load case table first; as case table has all the filter fields is possible to filter using a &lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [owner workgroup] = 'A'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [closer workgroup] = 'B'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [open date] &amp;gt;= ............... and [open date] &amp;lt;= ..........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;- then load the other two tables; you can filter using a where exists, with a where [owner workgroup] = 'A'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to join the tables in the script&lt;/P&gt;&lt;P&gt;- join first &lt;/P&gt;&lt;P&gt;- do a resident load of the result of previous join and filter (where ....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 09:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623133#M229336</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-27T09:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit multiple conditions in a multi-table query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623134#M229337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If u r going to have data as u have posted, then it is best to filter the data at script level by using all the filters in the same table. As u have all the Fields in the same table. Then while loading the rest 2 tables u can use where exists to filter out the data. If u r about to filter data with a field in other tables then u will have to join them.&lt;/P&gt;&lt;P&gt;say u have closegroup sales in closer table and u wan to filter data according to that also, u will have to join the tables to achieve it.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 10:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623134#M229337</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-04-27T10:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit multiple conditions in a multi-table query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623135#M229338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your advice.&lt;/P&gt;&lt;P&gt;i am sorry, i didn't explain the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually, case table with not "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;owner workgroup"&lt;/SPAN&gt; &amp;amp; "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;closer workgroup" field, need use "owner table id" &amp;amp; "closer table id" to joins the owner table and closer table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for case table, there are more then 1 million cases every month; for owner table &amp;amp; closer table, there are more than 50 thousands account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as results, in fact only very few cases, maybe 4 or 5 cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;base on the background:&lt;/P&gt;&lt;P&gt;i can't filter case table with "owner workgroup","closer workgroup" and "open date", because there are not "owner workgroup" &amp;amp;"closer workgroup" field. if only filter "open date", for case table should be load more than hundreds of thousands cases. for only a few cases results, the amount of load data is too large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i am looking for a better solution, more quickly and with less data.&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 04:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-multiple-conditions-in-a-multi-table-query/m-p/623135#M229338</guid>
      <dc:creator />
      <dc:date>2014-04-28T04:18:14Z</dc:date>
    </item>
  </channel>
</rss>

