<?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 Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278545#M584736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quickie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the attached set analysis to calculate the Actual value for the year 2011. What I want to do is change it, so I can look at the latest months value instead. I'm guessing I need to do something with the max and month function but I can't quite figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year &lt;/SPAN&gt;= {2011},&lt;SPAN style="color: #800000;"&gt;Measure&lt;/SPAN&gt;={'Actual'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 09:13:18 GMT</pubDate>
    <dc:creator>samvile18</dc:creator>
    <dc:date>2011-08-17T09:13:18Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278545#M584736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quickie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the attached set analysis to calculate the Actual value for the year 2011. What I want to do is change it, so I can look at the latest months value instead. I'm guessing I need to do something with the max and month function but I can't quite figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year &lt;/SPAN&gt;= {2011},&lt;SPAN style="color: #800000;"&gt;Measure&lt;/SPAN&gt;={'Actual'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 09:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278545#M584736</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2011-08-17T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278546#M584737</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;If you want to work on the latest month, I advice you to do something like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 12px; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Year &lt;/SPAN&gt;= {2011},&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Measure&lt;/SPAN&gt;={'Actual'}, Month={"$(=Max(Month))"} &amp;gt;}&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Value&lt;/SPAN&gt;)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 12px; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;Month&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Year &lt;/SPAN&gt;= {"$(=Max(MonthYear))"},&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Measure&lt;/SPAN&gt;={'Actual'}} &amp;gt;}&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Value&lt;/SPAN&gt;)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you want to work on the three latest months, you have to do :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 12px; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;Month&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Year &lt;/SPAN&gt;= {"&amp;gt;=$(=AddMonths(Max(MonthYear),-2))"},&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Measure&lt;/SPAN&gt;={'Actual'}} &amp;gt;}&lt;SPAN style="font-size: 12px; color: #800000;"&gt;Value&lt;/SPAN&gt;)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 09:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278546#M584737</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-08-17T09:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278547#M584738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year &lt;/SPAN&gt;= {2011},Month={"$(=max(Month))"},&lt;SPAN style="color: #800000;"&gt;Measure&lt;/SPAN&gt;={'Actual'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assunming month is a numeric field &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 09:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278547#M584738</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-17T09:23:07Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278548#M584739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does work, I do however have a problem with my data which could be tricky to get around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The max month will be 12 as there is budget data loaded until the end of the year, this set analysis therefore returns £0 for the actual data because there's only data loaded up Jul (7) for actuals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know a way around that?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 09:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/278548#M584739</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2011-08-17T09:35:26Z</dc:date>
    </item>
  </channel>
</rss>

