<?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 How Can I do this set analisis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150783#M28744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({$&amp;lt;Month={'$(=Max(Month))'}, Year={'$(=Max(Year))'}&amp;gt;} Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I'm thinking the single-quotes are unnecessary, but it may depend on your data types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2009 03:41:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-31T03:41:58Z</dc:date>
    <item>
      <title>How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150782#M28743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with Month, Year and Amount of stocks. I want to show only the amount of the last year and month selected. Ag: If user selects all months of 2008, I want to show only the amount of december.&lt;/P&gt;&lt;P&gt;If I fix the month like above, it works. But How can I make this calculation selecting the last month/year?&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Month={12}, Year={2008}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 03:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150782#M28743</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2009-07-31T03:31:52Z</dc:date>
    </item>
    <item>
      <title>How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150783#M28744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({$&amp;lt;Month={'$(=Max(Month))'}, Year={'$(=Max(Year))'}&amp;gt;} Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I'm thinking the single-quotes are unnecessary, but it may depend on your data types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 03:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150783#M28744</guid>
      <dc:creator />
      <dc:date>2009-07-31T03:41:58Z</dc:date>
    </item>
    <item>
      <title>How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150784#M28745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NMiller's suggestion should work. Use&lt;/P&gt;&lt;P&gt;...Year={$(=Max(Year)-1)}....&lt;/P&gt;&lt;P&gt;to get the previous year, as you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 04:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150784#M28745</guid>
      <dc:creator />
      <dc:date>2009-07-31T04:24:46Z</dc:date>
    </item>
    <item>
      <title>How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150785#M28746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the expression sum({$&amp;lt;Month={'$(=Max(Month))'}, Year={'$(=Max(Year))'}&amp;gt;} Amount), didn't work cause I need to respect the selection.&lt;/P&gt;&lt;P&gt;If is selected Month april, may and june, I need to get june that is the Maximum month selected, but the expression got december month that is the max month of the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 20:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150785#M28746</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2009-07-31T20:21:51Z</dc:date>
    </item>
    <item>
      <title>How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150786#M28747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To have set analysis disregard any current selections you can substitute the leading $ for a 1, like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sum( {1&amp;lt;Month... instead of Sum( {$&amp;lt;Month.....&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This method disregards ANY selections you have made. Alternatively, if you are wanting to disregard only the selection on month, but still allow the aggregation set to be narrowed by other selections you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sum( {$&amp;lt;Month={$(=Max( {1} Month) )}, Year={$(=Max(Year)-1)}&amp;gt;} Amount)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You can play around with the set modifiers to get what your looking for. If you only want the max over a selection, then use the $. If you want the Max regardless of the selection, use the 1. Hopefully this helps.&lt;/P&gt;&lt;P&gt;sjprows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 20:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150786#M28747</guid>
      <dc:creator />
      <dc:date>2009-07-31T20:55:40Z</dc:date>
    </item>
    <item>
      <title>How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150787#M28748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That string will respect the selection. If nothing is selected, the maximum month will be used. If anything is selected, then the maximum &lt;STRONG&gt;selected&lt;/STRONG&gt; month will be used.&lt;/P&gt;&lt;P&gt;Take a look at this example. In my example, the months are numbers, so no single quotes are necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 21:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150787#M28748</guid>
      <dc:creator />
      <dc:date>2009-07-31T21:02:06Z</dc:date>
    </item>
    <item>
      <title>How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150788#M28749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was that month field was not numeric, and in some months (I don't know the cause) were not working. Changing to numeric was the solution. Thank You all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 23:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150788#M28749</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2009-08-03T23:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I do this set analisis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150789#M28750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NMiller&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your example, what if you want to list the calendar Quarters (report dimension) but consider in the stock evaluation expression only the last month of eack Quarter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 23:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Can-I-do-this-set-analisis/m-p/150789#M28750</guid>
      <dc:creator />
      <dc:date>2012-07-04T23:57:59Z</dc:date>
    </item>
  </channel>
</rss>

