<?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 Subquery to compare Data from same qvd in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subquery-to-compare-Data-from-same-qvd/m-p/694303#M672597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;first of all thanks for the attention &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have this problem(i try ro semplify the question):&lt;/P&gt;&lt;P&gt;There is a one QVD with FIELDS&lt;/P&gt;&lt;P&gt;CLIENT, DEPARTMENT, FACILITY, YEAR(value can be only 2014 and 2013)&lt;/P&gt;&lt;P&gt;is necessary to create a Flag on CLIENT-DEPARTMENT Level that shoulbe be have this value:&lt;/P&gt;&lt;P&gt;-"New" if CLIENT in 2014 isn't present in 2013&lt;/P&gt;&lt;P&gt;-"Expanded" if CLIENT in 2014 is present in 2013 but with Different DEPARTMENT&lt;/P&gt;&lt;P&gt;-"Ext Fac" if CLIENT + DEPARTMENT in 2014 is present in 2013 but with a FACILITY that not present in 2014&lt;/P&gt;&lt;P&gt;-"Ent Fac" if CLIENT + DEPARTMENT in 2014 is present in 2013 but with a FACILITY that non PRESENT in 2013&lt;/P&gt;&lt;P&gt;-"Change Fact" if CLIENT + DEPARTMENT in 2014 is present in 2013 but with a different Facility of 2014&lt;/P&gt;&lt;P&gt;-"False" no condition above is satisfied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SQL i can do more subquery but with LOAd i don't have any idea......&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 12:14:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-25T12:14:41Z</dc:date>
    <item>
      <title>Subquery to compare Data from same qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-to-compare-Data-from-same-qvd/m-p/694303#M672597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;first of all thanks for the attention &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have this problem(i try ro semplify the question):&lt;/P&gt;&lt;P&gt;There is a one QVD with FIELDS&lt;/P&gt;&lt;P&gt;CLIENT, DEPARTMENT, FACILITY, YEAR(value can be only 2014 and 2013)&lt;/P&gt;&lt;P&gt;is necessary to create a Flag on CLIENT-DEPARTMENT Level that shoulbe be have this value:&lt;/P&gt;&lt;P&gt;-"New" if CLIENT in 2014 isn't present in 2013&lt;/P&gt;&lt;P&gt;-"Expanded" if CLIENT in 2014 is present in 2013 but with Different DEPARTMENT&lt;/P&gt;&lt;P&gt;-"Ext Fac" if CLIENT + DEPARTMENT in 2014 is present in 2013 but with a FACILITY that not present in 2014&lt;/P&gt;&lt;P&gt;-"Ent Fac" if CLIENT + DEPARTMENT in 2014 is present in 2013 but with a FACILITY that non PRESENT in 2013&lt;/P&gt;&lt;P&gt;-"Change Fact" if CLIENT + DEPARTMENT in 2014 is present in 2013 but with a different Facility of 2014&lt;/P&gt;&lt;P&gt;-"False" no condition above is satisfied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SQL i can do more subquery but with LOAd i don't have any idea......&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 12:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-to-compare-Data-from-same-qvd/m-p/694303#M672597</guid>
      <dc:creator />
      <dc:date>2014-09-25T12:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery to compare Data from same qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-to-compare-Data-from-same-qvd/m-p/694304#M672598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QvdTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;f1,f2,f3&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;[qvd];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyData:&lt;/P&gt;&lt;P&gt;left join (QvdTable)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;f1,f2,f3,&lt;/P&gt;&lt;P&gt;calculated expression...............&lt;/P&gt;&lt;P&gt;Resident QvdTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Resident of already loaded data to manipulate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 16:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-to-compare-Data-from-same-qvd/m-p/694304#M672598</guid>
      <dc:creator />
      <dc:date>2014-09-25T16:59:13Z</dc:date>
    </item>
  </channel>
</rss>

