<?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: Load table twice and union all after difference filtering in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272373#M624036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your understanding is correct.&amp;nbsp; But how can i do two filters? I have already added one like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;Control:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;UserId, Family &lt;/P&gt;&lt;P&gt;User1, F1&lt;/P&gt;&lt;P&gt;User2, F2&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i cannot do this because S3 does not under F1. S3 is under F2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Control:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;UserId, Family, Series&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;User1, F1, S3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;User2, F2, *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;]; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Wilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 15:27:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-18T15:27:07Z</dc:date>
    <item>
      <title>Load table twice and union all after difference filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272368#M624031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi&lt;/SPAN&gt;&lt;SPAN lang="ZH-CN" style="font-size: 10pt; font-family: 宋体;"&gt;，&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;How can I filter below product table by Series and Family based on User Id? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;In SQL, if “user1” will load Family = ‘F1’ and Series = ‘S3’, I will do &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Select * from Products where Family = ‘F1’ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Union &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Select * from Products where Series = ‘S3’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;How can I do this in QlikView script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Table - Products &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;ProductId, Series, Family &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;P1, S1, F1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;P2, S2, F1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;P3, S3, F2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;P4, S4, F2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Wilson&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 08:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272368#M624031</guid>
      <dc:creator />
      <dc:date>2016-11-18T08:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load table twice and union all after difference filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272369#M624032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt; * from Products where Family = ‘F1’;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;Concatenate &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this is optional here since all fields are common in two loads (it gets auto concatenated)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt; * from Products where Series = ‘S3’;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272369#M624032</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-18T09:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load table twice and union all after difference filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272370#M624033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco Biswas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to do filter based on login.&amp;nbsp; So i will do it using load inline table and join. &lt;/P&gt;&lt;P&gt;I cannot do filter directly on SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Wilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272370#M624033</guid>
      <dc:creator />
      <dc:date>2016-11-18T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load table twice and union all after difference filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272371#M624034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand right. I guess you need to have a look at Section Access :&lt;A href="https://community.qlik.com/docs/DOC-1853"&gt;Introduction to Section Access&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272371#M624034</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-18T09:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load table twice and union all after difference filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272372#M624035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As tresesco point out, if your data reduction is based on the user/login of the dash, then you can use Section Access to control that. If you want the dash itself only show specific data, then you can directly use the SQL in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And by the way, your case if the data is from the same table, the SQL query can be simpler like below:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;Select * from Products where Family = ‘F1’ or &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt; Series = ‘S3’;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Zhihong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 13:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272372#M624035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-18T13:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load table twice and union all after difference filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272373#M624036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your understanding is correct.&amp;nbsp; But how can i do two filters? I have already added one like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;Control:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;UserId, Family &lt;/P&gt;&lt;P&gt;User1, F1&lt;/P&gt;&lt;P&gt;User2, F2&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i cannot do this because S3 does not under F1. S3 is under F2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Control:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;UserId, Family, Series&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;User1, F1, S3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;User2, F2, *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;]; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Wilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 15:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272373#M624036</guid>
      <dc:creator />
      <dc:date>2016-11-18T15:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load table twice and union all after difference filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272374#M624037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhihong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have 5 users, how many SQL statements i should prepare? it is more reasonable to do it using section access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Wilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 15:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-table-twice-and-union-all-after-difference-filtering/m-p/1272374#M624037</guid>
      <dc:creator />
      <dc:date>2016-11-18T15:29:49Z</dc:date>
    </item>
  </channel>
</rss>

