<?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: Urgent help needed with set analysis in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374859#M1169985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below code hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;max(aggr(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;STRONG&gt;num&lt;/STRONG&gt;(&lt;/SPAN&gt;sum({ &amp;lt; Year={$(=Year(Date(max(MakeDate(Year, Month, Day)), 'YYYY')))}, Month={$(=Month(Date(max(MakeDate(Year, Month, Day)), 'MMM')))}, PositionType={Resource} &amp;gt; }EN_TOTAL_MW_DA_15min),&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;'#,##0')&lt;/SPAN&gt;, Year, Month, Day, HE))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 14:04:29 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2012-07-30T14:04:29Z</dc:date>
    <item>
      <title>Urgent help needed with set analysis in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374858#M1169984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 reports: One by Month Year as dimension and other using set analysis to show the latest monthyear data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1. pivot report by month-year as dimension: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where one of my expression is max(aggr(sum({&amp;lt; PositionType={Resource} &amp;gt; } EN_TOTAL_MW_DA_15min), Year, Month, Day, HE)) and gives the right result which for Mar 2012 should be 3587.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Using set analysis to show the latest monthyear data(assuming Mar for now):&amp;nbsp; doing the set analysis and using the expression as below, do not get the same results and need help with the below expression to give the same result as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(max(aggr(sum({ &amp;lt; Year={$(=Year(Date(max(MakeDate(Year, Month, Day)), 'YYYY')))}, Month={$(=Month(Date(max(MakeDate(Year, Month, Day)), 'MMM')))}, PositionType={Resource} &amp;gt; }EN_TOTAL_MW_DA_15min), Year, Month, Day, HE)), '#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing anything wrong as for some reason the aggr dosn't work and do not even get any results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached please find the screen shot, the numbers in red needs to match with that as green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with this would be greatly appreciated.&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;DD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 13:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374858#M1169984</guid>
      <dc:creator />
      <dc:date>2012-07-30T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed with set analysis in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374859#M1169985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below code hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;max(aggr(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;STRONG&gt;num&lt;/STRONG&gt;(&lt;/SPAN&gt;sum({ &amp;lt; Year={$(=Year(Date(max(MakeDate(Year, Month, Day)), 'YYYY')))}, Month={$(=Month(Date(max(MakeDate(Year, Month, Day)), 'MMM')))}, PositionType={Resource} &amp;gt; }EN_TOTAL_MW_DA_15min),&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;'#,##0')&lt;/SPAN&gt;, Year, Month, Day, HE))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 14:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374859#M1169985</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-07-30T14:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed with set analysis in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374860#M1169986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunil for prompt reply, but for some reason tried different things but aggr doesn't work. There's no data displayed for that column and row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what would be causing it or is it aggr function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 14:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374860#M1169986</guid>
      <dc:creator />
      <dc:date>2012-07-30T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed with set analysis in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374861#M1169987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for better help you can attach&amp;nbsp; a sample file &lt;/P&gt;&lt;P&gt;&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>Mon, 30 Jul 2012 14:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374861#M1169987</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-07-30T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed with set analysis in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374862#M1169988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file is too big to share, what's he alternative reduced data file is okay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got an error: &lt;SPAN class="jive-error-message"&gt;File 'QlikView_testsample.qvw' is too large.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-error-message"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-error-message"&gt;DD&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 15:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374862#M1169988</guid>
      <dc:creator />
      <dc:date>2012-07-30T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help needed with set analysis in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374863#M1169989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not you make make date in script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;MakeDate(Year, Month, Day)&lt;/SPAN&gt; as Datefield&lt;/P&gt;&lt;P&gt;and use that field in same expression&lt;/P&gt;&lt;P&gt;&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>Tue, 31 Jul 2012 06:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgent-help-needed-with-set-analysis-in-expression/m-p/374863#M1169989</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-07-31T06:02:31Z</dc:date>
    </item>
  </channel>
</rss>

