<?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: Re: set analysis script help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499142#M186492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if attached is what you are looking for. I loaded in your data, then used a straight table with dimension of Month and expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Training Man Days] = {'&amp;gt;=2'}&amp;gt;}if(Month = aggr(min({&amp;lt;[Training Man Days] = {'&amp;gt;=2'}&amp;gt;}Month), [Emp ID]), [Emp ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I checked full accumulation on the expression tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 17:26:44 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2013-12-18T17:26:44Z</dc:date>
    <item>
      <title>set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499138#M186488</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;i have a attached a excel file . First tab contains data while second tab has result set .&lt;/P&gt;&lt;P&gt;Please give me the expression which would do the trick . note - Result needed by using frontend only , no backend modifications permitted .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 10:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499138#M186488</guid>
      <dc:creator />
      <dc:date>2013-12-18T10:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499139#M186489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here I need to use condition =&amp;gt; &lt;STRONG&gt;Overall&lt;/STRONG&gt; &lt;STRONG&gt;Training Man Days of that Employee should be greater than or equal to 2&lt;/STRONG&gt;. So for April , i would get empid's 5,7,9,10 hence 4&lt;/P&gt;&lt;P&gt;For may , i would get 2,4 ,6 hence 3 +april's 4 = 7&lt;/P&gt;&lt;P&gt;For june , i would get 3,9 but we already got 9 in april so only 1 + april's 4 + may's 3 = 8&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.Hope my question is more understandable now &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 10:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499139#M186489</guid>
      <dc:creator />
      <dc:date>2013-12-18T10:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499140#M186490</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;In you excel,&amp;nbsp; output tab - can you explain how you got 4 as Unique emp count for April?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 12:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499140#M186490</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-12-18T12:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499141#M186491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Thanks Abey for showing interest .Let me explain this again in detail .&lt;/P&gt;&lt;P&gt;1) For april we have 4 employees whose total [Training Man Days] for the month of april is greater than or equal to 2 .&lt;/P&gt;&lt;P&gt;those employees are 5 ,7 , 9 ,10 . hence for April result is 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)For May we have 3 employees whose total[Training Man Days]for the month of may is greater than or equal to 2,&lt;/P&gt;&lt;P&gt;those employees are 2,4,6. hence for may we should get( distnct [employees of april + employees of May] )= 5,7,9,10,2,4,6 hence for may result is 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3( For June there are 2 employees whose total[Training Man Days]for the month of may is greater than or equal to 2,&lt;/P&gt;&lt;P&gt;those are 3,9 , but 9 is already presnt in April , hence for june we should get (distinct[employees of april + employees of May + employees of June]), hence for june ,result should be 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly for other months ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 13:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499141#M186491</guid>
      <dc:creator />
      <dc:date>2013-12-18T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499142#M186492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if attached is what you are looking for. I loaded in your data, then used a straight table with dimension of Month and expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Training Man Days] = {'&amp;gt;=2'}&amp;gt;}if(Month = aggr(min({&amp;lt;[Training Man Days] = {'&amp;gt;=2'}&amp;gt;}Month), [Emp ID]), [Emp ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I checked full accumulation on the expression tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 17:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499142#M186492</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-12-18T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499143#M186493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/114213"&gt;jerem1234&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thats useful but issue comes when there is a person whose training man days for a month is 0.50,0.50,1, this person's id should be included ,in your example such person's id wont be included.&lt;/P&gt;&lt;P&gt;so inshort we need something like count({&amp;lt;sum([Training Man Days]) = {'&amp;gt;=2'}&amp;gt;}if(Month = aggr(min({&amp;lt;sum([Training Man Days]) = {'&amp;gt;=2'}&amp;gt;}Month), [Emp ID]), [Emp ID])).&lt;/P&gt;&lt;P&gt;waiting for your reply ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499143#M186493</guid>
      <dc:creator />
      <dc:date>2013-12-19T13:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499144#M186494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached. To incorporate it with a sum makes it a bit more tricky. The formula I ended up with is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct if(aggr(sum({1}[Training Man Days]), [Emp ID], Month) &amp;gt;=2, if(Month = aggr(min({1}if(aggr(sum({1}[Training Man Days]), [Emp ID], Month) &amp;gt;=2, Month)), [Emp ID]), [Emp ID])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since they are sums, you can't use the set analysis to reduce the sets. So I had to add it a couple of aggregations, and convert some set analysis to if statements. I also added in two records of EMP ID 11 to August to test out the summing. That's why the last number is 10 and not 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 18:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499144#M186494</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-12-19T18:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499145#M186495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey jerem nice job.... you could add some more to your application like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;Year={'$(=max(Year))'},Month1=,Day=,Month={'&amp;lt;=$(=max(Month))'}&amp;gt;}distinct if(aggr(sum({&amp;lt;Year={'$(=max(Year))'},Month1=,Day=,Month={'&amp;lt;=$(=max(Month))'}&amp;gt;}[Training Man Days]), [Emp ID], Month) &amp;gt;=2, if(Month = aggr(min({&amp;lt;Year={'$(=max(Year))'},Month1=,Day=,Month={'&amp;lt;=$(=max(Month))'}&amp;gt;}if(aggr(sum({&amp;lt;Year={'$(=max(Year))'},Month1=,Day=,Month={'&amp;lt;=$(=max(Month))'}&amp;gt;}[Training Man Days]), [Emp ID], Month) &amp;gt;=2, Month)), [Emp ID]), [Emp ID])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Dec 2013 05:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499145#M186495</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2013-12-22T05:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis script help</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499146#M186496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attached one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 09:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-script-help/m-p/499146#M186496</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2013-12-24T09:22:36Z</dc:date>
    </item>
  </channel>
</rss>

