<?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 Issue in exist clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-exist-clause/m-p/716578#M675773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate missing ad from&amp;nbsp; the data for example I am having two table one is comp and other is table2.&lt;/P&gt;&lt;P&gt;If key (unit +cat+client+publishdate)&amp;nbsp; in comp data table and in table 2&amp;nbsp; same key is not present (unit+cat+client+publishdate2)&lt;/P&gt;&lt;P&gt;with in the range of publishdate+7 or publishdate-7 then it is called fullmissing but if key is present within the same range i.e publishdate+7 or publishdate-7 then it is called partial missing. &lt;/P&gt;&lt;P&gt;I tried with exist function but i stucked on date range&lt;/P&gt;&lt;P&gt;Kindly find the sample data for reference. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumita Chawla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Jul 2014 08:17:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-05T08:17:38Z</dc:date>
    <item>
      <title>Issue in exist clause</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-exist-clause/m-p/716578#M675773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate missing ad from&amp;nbsp; the data for example I am having two table one is comp and other is table2.&lt;/P&gt;&lt;P&gt;If key (unit +cat+client+publishdate)&amp;nbsp; in comp data table and in table 2&amp;nbsp; same key is not present (unit+cat+client+publishdate2)&lt;/P&gt;&lt;P&gt;with in the range of publishdate+7 or publishdate-7 then it is called fullmissing but if key is present within the same range i.e publishdate+7 or publishdate-7 then it is called partial missing. &lt;/P&gt;&lt;P&gt;I tried with exist function but i stucked on date range&lt;/P&gt;&lt;P&gt;Kindly find the sample data for reference. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumita Chawla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2014 08:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-exist-clause/m-p/716578#M675773</guid>
      <dc:creator />
      <dc:date>2014-07-05T08:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in exist clause</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-exist-clause/m-p/716579#M675774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit,&lt;/P&gt;&lt;P&gt;&amp;nbsp; cat,&lt;/P&gt;&lt;P&gt;&amp;nbsp; client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; space,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(pubdate,'MM/DD/YYYY')) as pubdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit&amp;amp;cat&amp;amp;client&amp;amp;space as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit&amp;amp;cat&amp;amp;client&amp;amp;space&amp;amp;pubdate as Key2&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit, cat, client, space, pubdate&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a1, c1, 300, 30/05/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a2, c2, 400, 06/01/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a2, c3, 500, 06/01/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a2, C4, 400, 06/05/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a2, C5, 400, 06/08/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit,&lt;/P&gt;&lt;P&gt;&amp;nbsp; cat,&lt;/P&gt;&lt;P&gt;&amp;nbsp; client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; space,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(pubdate,'MM/DD/YYYY')) as pubdate2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit&amp;amp;cat&amp;amp;client&amp;amp;space as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit&amp;amp;cat&amp;amp;client&amp;amp;space&amp;amp;pubdate as Key2&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; unit, cat,client, space, pubdate&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a1, c1, 300, 30/05/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a2, c2, 400, 06/01/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a3, c7, 400, 06/01/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; indo, a2, C5, 400, 06/03/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;]Where Exists (Key,unit&amp;amp;cat&amp;amp;client&amp;amp;space);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Trim(pubdate2))=0, 'Full Missing',If(pubdate2 &amp;lt;= (pubdate+7) or pubdate2 &amp;gt;= (pubdate-7),'partial missing')) as Flag&lt;/P&gt;&lt;P&gt;Resident T1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table T1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2014 09:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-exist-clause/m-p/716579#M675774</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-05T09:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issue in exist clause</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-exist-clause/m-p/716580#M675775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I tried with your solution but I found that output is coming different means Partial missing is not coming exact.&lt;/P&gt;&lt;P&gt;And space I can't take in key.&lt;/P&gt;&lt;P&gt;Can u plz check the output for partial missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2014 12:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-exist-clause/m-p/716580#M675775</guid>
      <dc:creator />
      <dc:date>2014-07-05T12:22:30Z</dc:date>
    </item>
  </channel>
</rss>

