<?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/609531#M225018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maja...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare Variable&lt;/P&gt;&lt;P&gt;SET vDateBug = DATE(Max([Data Ocorrência Estoque]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; { &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Date Bug]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = {'&amp;lt;$(vDateBug)'} &lt;BR /&gt; &amp;gt;}&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt;DISTINCT&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[ID Bug]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2014 19:44:30 GMT</pubDate>
    <dc:creator>EduardoAlexandredeFrancisco</dc:creator>
    <dc:date>2014-05-07T19:44:30Z</dc:date>
    <item>
      <title>Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609530#M225017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pretty new to set analysis. I have a field containing periods (YYYYMM). When I select a period I want one of my columns to show the sum of registered hours for all periods &amp;lt;= the selected period. How do I do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to exclude all employees who are not still working for us after the period selected in the other field. For that I have a field containing the employees end of employment period. For those who are still working for us I thought I could enter a fictive value in the script that is far ahead in the future so that I could write in the expression that I want to show records where end of employment period is &amp;gt; the period selected in the other field. Is that possible? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 19:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609530#M225017</guid>
      <dc:creator />
      <dc:date>2014-05-07T19:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609531#M225018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maja...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare Variable&lt;/P&gt;&lt;P&gt;SET vDateBug = DATE(Max([Data Ocorrência Estoque]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; { &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Date Bug]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = {'&amp;lt;$(vDateBug)'} &lt;BR /&gt; &amp;gt;}&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt;DISTINCT&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[ID Bug]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 19:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609531#M225018</guid>
      <dc:creator>EduardoAlexandredeFrancisco</dc:creator>
      <dc:date>2014-05-07T19:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609532#M225019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maja, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can start with this:&lt;/P&gt;&lt;P&gt;count({&amp;lt; Period={"&amp;lt;=Date(Max(Period), 'YYYYMM')"} &amp;gt;} Hours)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ricardo Reaño&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 20:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609532#M225019</guid>
      <dc:creator />
      <dc:date>2014-05-07T20:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609533#M225020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really understand what I need the count function for but I tried to apply what you wrote on my expression and wrote it like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;EMPLOYEETYPE = {1}, REGDATE_PERIOD = {"&amp;lt;=max(REGDATE_PERIOD)"}&amp;gt;} HOURS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it results in zeros. I put max(REGDATE_PERIOD) in the label just to check that it shows correctly and it shows 201403 just like what was selected in the listbox. So I don't understand why it doesn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Maja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 05:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609533#M225020</guid>
      <dc:creator />
      <dc:date>2014-05-08T05:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609534#M225021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;EMPLOYEETYPE = {1}, REGDATE_PERIOD = {"&amp;lt;=&lt;STRONG&gt; $(=&lt;/STRONG&gt;max(REGDATE_PERIOD))"}&amp;gt;} HOURS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;And if you find this too is not working, it would be a date format issue. Then, try to share your sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 05:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609534#M225021</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-08T05:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609535#M225022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. That worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 05:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/609535#M225022</guid>
      <dc:creator />
      <dc:date>2014-05-08T05:51:08Z</dc:date>
    </item>
  </channel>
</rss>

