<?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: Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776112#M1021780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Navven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please recheck your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A()&amp;nbsp; is not in use as far as i know.. what is that?&lt;/P&gt;&lt;P&gt;And what is diffr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 10:53:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-24T10:53:51Z</dc:date>
    <item>
      <title>Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776106#M1021774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuck up with the below scenario. Hope i get help from here and proceed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border: 0.5pt solid windowtext; width: 48pt; height: 15pt; background-color: transparent;" width="64"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Item&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black; width: 48pt; background-color: transparent;" width="64"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Posting Date&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black; width: 48pt; background-color: transparent;" width="64"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Type&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;24-Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;25-Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;25-Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;27-Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;28-Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;29-Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User selects a date, we are to consider the Items of Type-1, where the posting date is on or before(until) the date selected by user.&lt;/P&gt;&lt;P&gt;Here, we are to make sure that there is no Type 2 happenning for that item, within the date selected by user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we select all such items, we are to calculate the date selected-posting date and see if the difference is &amp;gt;1,&lt;/P&gt;&lt;P&gt;Finally, we are to count such items where the difference is greater than 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: User selected date - 26th Mar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;step1: Identify Type 1 items within 26th Mar&lt;/P&gt;&lt;P&gt;result:&amp;nbsp; A,B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step2: Identify if the items have type2 within 26th Mar and remove them, if they have&lt;/P&gt;&lt;P&gt;result: A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step3: find out the date difference, user selected date-posting date&lt;/P&gt;&lt;P&gt;result : 2 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step4: count the items if the difference is &amp;gt;1,&lt;/P&gt;&lt;P&gt;result: count - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis equivalent of this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 06:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776106#M1021774</guid>
      <dc:creator />
      <dc:date>2015-03-24T06:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776107#M1021775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give one more example as step 3,4 and 5 as I am unable to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776107#M1021775</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-24T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776108#M1021776</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;After identifying the Items in step2, here, it is a single item,&amp;nbsp; item A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are to take the type 1 date difference for each item ( user selected date minus posting date of item A of type 1) &lt;/P&gt;&lt;P&gt;i.e., (26-Mar minus 24-Mar) which is 2 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we have to check if we are to count the item A or not, by checking the difference is &amp;gt;1 or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, since the difference is 2, which is &amp;gt;1, we are to count item A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 09:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776108#M1021776</guid>
      <dc:creator />
      <dc:date>2015-03-24T09:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776109#M1021777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 09:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776109#M1021777</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-24T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776110#M1021778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clean!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This logic should work for the given scenario, whereas.. the record count in real database is quite huge, around 60 lakh(in example, its 6 records) ..so, will the solution work in such cases as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for 27th Mar.. it should eliminate item A, but it shows count as 2. can you explain this further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776110#M1021778</guid>
      <dc:creator />
      <dc:date>2015-03-24T10:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776111#M1021779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Step1 for 26th march&lt;/P&gt;&lt;P&gt;= Concat(DISTINCT If([Posting Date] &amp;lt; Date,Item),',')&lt;/P&gt;&lt;P&gt;Step2&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Concat(DISTINCT {&amp;lt; Item=P({&amp;lt;[Posting Date] ={"&amp;lt;$(=Max(Date))"},Type = {'1'}&amp;gt;})&amp;gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Item=P({&amp;lt;[Posting Date] ={"&amp;lt;$(=Max(Date))"},Type = {'2'}&amp;gt;})&amp;gt;}Item,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step3&lt;/P&gt;&lt;P&gt;Count(If(Index(diffr,Item) And Date-[Posting Date] &amp;gt; 1,1))&lt;/P&gt;&lt;P&gt;step4:&lt;/P&gt;&lt;P&gt;Count(If(Index(diffr,Item) And Date-[Posting Date] &amp;gt; 1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776111#M1021779</guid>
      <dc:creator />
      <dc:date>2015-03-24T10:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776112#M1021780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Navven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please recheck your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A()&amp;nbsp; is not in use as far as i know.. what is that?&lt;/P&gt;&lt;P&gt;And what is diffr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776112#M1021780</guid>
      <dc:creator />
      <dc:date>2015-03-24T10:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776113#M1021781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain how it will eliminate Item A if date selected is 27-Mar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Distinct. You will&lt;/P&gt;&lt;P&gt;='Step3 &amp;amp; 4: '&amp;amp;Count(&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; If(Index(vItm,Item) And Date-[Posting Date] &amp;gt; 1,1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 11:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776113#M1021781</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-24T11:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776114#M1021782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1, Step 2 are perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In step 3 : we are to eliminate the records identified in step2 and keep the remaining items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in step4, for the remaining items as resulted by step 3, we are to calculate the difference of dates and if the difference is &amp;gt;1, we are to calculate the items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 11:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776114#M1021782</guid>
      <dc:creator />
      <dc:date>2015-03-24T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776115#M1021783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case of 27-Mar, you will get A in Step 2 and difference (27-Mar Minus 24-Mar) is 3 days which is greater than 1 and count will be 1. Is this expected your result? If yes, then try this expr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Step3 &amp;amp; 4: '&amp;amp;Count(If(Index(vItm,Item) And Date-[Posting Date] &amp;gt; 1 &lt;STRONG&gt;And Type = 1&lt;/STRONG&gt;,1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776115#M1021783</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-24T12:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776116#M1021784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anbu..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should eliminate the record identified in step2.&lt;/P&gt;&lt;P&gt;Your script is calculating the differnce for the date for the record which is to be excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 27-Mar, if we add the condition And Type=1, it gives correct result, but the same fails for 29-Mar.&lt;/P&gt;&lt;P&gt;For 28-Mar it should give 2. [Step1: A,B,C , Step2 : A , Step3: (ABC-A = B,C)&amp;nbsp; , Step4: ( 28 Mar - B date, 28Mar- C date) and count how many have difference &amp;gt;1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776116#M1021784</guid>
      <dc:creator />
      <dc:date>2015-03-24T13:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776117#M1021785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Add minus instead of * in the below expr. Make this change to variable vItm&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;Concat(DISTINCT {&amp;lt; Item=P({&amp;lt;[Posting Date] ={"&amp;lt;$(=Max(Date))"},Type = {'1'}&amp;gt;})&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;lt;Item=P({&amp;lt;[Posting Date] ={"&amp;lt;$(=Max(Date))"},Type = {'2'}&amp;gt;})&amp;gt;}Item,',')&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;If you want to include where diff is one then use &amp;gt;=&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;='Step3 &amp;amp; 4: '&amp;amp;Count(If(Index(vItm,Item) And Date-[Posting Date] &lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt; 1 And Type = 1,1))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776117#M1021785</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-24T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776118#M1021786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works.. Thanks for your time!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 05:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776118#M1021786</guid>
      <dc:creator />
      <dc:date>2015-03-25T05:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776119#M1021787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anbu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thi first step where we are using concat, is causing a performance issue&lt;/P&gt;&lt;P&gt;Since we have 30 lakh records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest any alternative for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 07:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776119#M1021787</guid>
      <dc:creator />
      <dc:date>2015-03-26T07:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776120#M1021788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt; Item=P({&amp;lt;[Posting Date] ={"&amp;lt;$(=Max(Date))"},Type = {'1'}&amp;gt;})&amp;gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&amp;lt;Item=P({&amp;lt;[Posting Date] ={"&amp;lt;$(=Max(Date))"},Type = {'2'}&amp;gt;})&amp;gt;}Item)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 08:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/776120#M1021788</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-26T08:24:23Z</dc:date>
    </item>
  </channel>
</rss>

