<?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 and month selection issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-and-month-selection-issue/m-p/287114#M106808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Hi. I have LatestActual field which I want to use in my set analysis expression to get the sum of the actuals. LatestActual is basically a flag which tells what is the latest month that has actuals posted in it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Let’s say there are 3 metrics, 2 metrics have their LatestActual in Dec and 1 metrics has in Oct. I want set analysis to pick the corresponding LatestActual month for each of the metrics. Making any selections, triggers, macros is not allowed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;So basically, when you would open the app, you would see 3 metrics – 2 metrics (A,B) with actuals from Dec, and 1(C) metric with actual from Oct. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Please look at the sample qvw.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 20:58:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-15T20:58:25Z</dc:date>
    <item>
      <title>set analysis and month selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-month-selection-issue/m-p/287114#M106808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Hi. I have LatestActual field which I want to use in my set analysis expression to get the sum of the actuals. LatestActual is basically a flag which tells what is the latest month that has actuals posted in it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Let’s say there are 3 metrics, 2 metrics have their LatestActual in Dec and 1 metrics has in Oct. I want set analysis to pick the corresponding LatestActual month for each of the metrics. Making any selections, triggers, macros is not allowed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;So basically, when you would open the app, you would see 3 metrics – 2 metrics (A,B) with actuals from Dec, and 1(C) metric with actual from Oct. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Please look at the sample qvw.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: &amp;amp;quot;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 20:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-month-selection-issue/m-p/287114#M106808</guid>
      <dc:creator />
      <dc:date>2012-02-15T20:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and month selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-month-selection-issue/m-p/287115#M106809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;I had a brief look at your Set Analysis question and could not figure out the problem. However a different and quite simple solution would be to put an IF statement into the Sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this, it looks to me that this will return the result you are looking for:&lt;/P&gt;&lt;P&gt;&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;P&gt;sum(If ( Month=month(LatestActual),Actual))&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 01:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-month-selection-issue/m-p/287115#M106809</guid>
      <dc:creator />
      <dc:date>2012-02-16T01:39:35Z</dc:date>
    </item>
  </channel>
</rss>

