<?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 Left join with different granularity of data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-join-with-different-granularity-of-data/m-p/1397924#M613178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement to populate a new column in Alert table as ‘Alert Status ‘ by checking into Ticket tables which I have TicketwithL3Node and TicketwithL4Node both the tables have the same number (Name) of columns just don’t have value for ‘&lt;SPAN style="color: black;"&gt;L4Node’ in &lt;/SPAN&gt;TicketwithL3Node. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I do left join with Alert table and TicketwithL3Node it should be with Key &lt;STRONG style="color: black;"&gt;L3Node&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;And &lt;/STRONG&gt;if I do left join with Alert table and TicketwithL4Nodeit should be with Key &lt;STRONG style="color: black;"&gt;L3Node&amp;amp;’|’&amp;amp; L4Node as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;And finally &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;if&lt;STRONG&gt; &lt;/STRONG&gt;TicketType =’Performace’ then &lt;/SPAN&gt;Alert Status should populate as ‘Ticket raised’&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;if&lt;STRONG&gt; &lt;/STRONG&gt;TicketType =Comment then &lt;/SPAN&gt;Alert Status should populate as ‘No Action Required’&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;if&lt;STRONG&gt; &lt;/STRONG&gt;TicketType =Null() then &lt;/SPAN&gt;Alert Status should populate as ‘No Action taken’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tried&lt;/STRONG&gt;- after doing left join separately for both the tables with Alert , concatenated the tables but it is not giving correct count of alert because of concatenation. ( Can’t Do distinct count as Alert number can be multiple)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise if somebody worked with same type of problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any more information.&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 16:32:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-15T16:32:09Z</dc:date>
    <item>
      <title>Left join with different granularity of data</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-different-granularity-of-data/m-p/1397924#M613178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement to populate a new column in Alert table as ‘Alert Status ‘ by checking into Ticket tables which I have TicketwithL3Node and TicketwithL4Node both the tables have the same number (Name) of columns just don’t have value for ‘&lt;SPAN style="color: black;"&gt;L4Node’ in &lt;/SPAN&gt;TicketwithL3Node. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I do left join with Alert table and TicketwithL3Node it should be with Key &lt;STRONG style="color: black;"&gt;L3Node&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;And &lt;/STRONG&gt;if I do left join with Alert table and TicketwithL4Nodeit should be with Key &lt;STRONG style="color: black;"&gt;L3Node&amp;amp;’|’&amp;amp; L4Node as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;And finally &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;if&lt;STRONG&gt; &lt;/STRONG&gt;TicketType =’Performace’ then &lt;/SPAN&gt;Alert Status should populate as ‘Ticket raised’&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;if&lt;STRONG&gt; &lt;/STRONG&gt;TicketType =Comment then &lt;/SPAN&gt;Alert Status should populate as ‘No Action Required’&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;if&lt;STRONG&gt; &lt;/STRONG&gt;TicketType =Null() then &lt;/SPAN&gt;Alert Status should populate as ‘No Action taken’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tried&lt;/STRONG&gt;- after doing left join separately for both the tables with Alert , concatenated the tables but it is not giving correct count of alert because of concatenation. ( Can’t Do distinct count as Alert number can be multiple)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise if somebody worked with same type of problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any more information.&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 16:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-different-granularity-of-data/m-p/1397924#M613178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T16:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Left join with different granularity of data</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-different-granularity-of-data/m-p/1397925#M613179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved by using the combination of inner join , concatenation and where exists. &lt;/P&gt;&lt;P&gt;Below is the sample code. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Alert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3,&lt;/P&gt;&lt;P&gt;//L3&amp;amp;'|'&amp;amp; L4 as Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3 as AlertL3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L4 as AlertL4&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[L3andL4TestData.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner Join(Alert)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ticket:&lt;/P&gt;&lt;P&gt;LOAD Ticket, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'L3' as Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[L3andL4TestData.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Alert into $(vqvdpath)\1.Extract\Alert.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Alert;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alert1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Alert,&lt;/P&gt;&lt;P&gt;L3&amp;amp;'|'&amp;amp; L4 as Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3 as AlertL3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L4 as AlertL4&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[\L3andL4TestData.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner Join(Alert1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Ticket, &lt;/P&gt;&lt;P&gt;L3&amp;amp;'|'&amp;amp; L4 as Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'L4' as Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[\L3andL4TestData.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Alert1 into $(vqvdpath)\Alert1.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Alert1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AlerFinal:&lt;/P&gt;&lt;P&gt;LOAD L3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertL3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertL4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ticket, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vqvdpath)\Alert.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertL3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertL4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ticket, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vqvdpath)\Alert1.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (AlerFinal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alert2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Alert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L3 as AlertL3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L4 as AlertL4&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[\L3andL4TestData.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1) where not Exists (L3);&lt;/P&gt;&lt;P&gt;// Composite key can be used in where exists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 16:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-different-granularity-of-data/m-p/1397925#M613179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-16T16:20:51Z</dc:date>
    </item>
  </channel>
</rss>

