<?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 Using MAX in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-MAX-in-set-analysis/m-p/1681226#M63786</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to something apparently simple but cannot get it to work. I have a range of periods being 202001 the highest one and for each period I calculate the sum of petrol units divided by the sum of total units. Works perfect, no issue.&lt;/P&gt;&lt;P&gt;Now, what I also want to highlight is the is the out come of the last period. But here I am not able to get this done. When I do the next:&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;FUEL_PORTFOLIOPERIOD = {"=MAX(FUEL_PORTFOLIOPERIOD)"}&amp;gt;}FUEL_DIESEL) / SUM({&amp;lt;FUEL_PORTFOLIOPERIOD = {"=MAX(FUEL_PORTFOLIOPERIOD)"}&amp;gt;}FUEL_NUMCONTRACTS)&lt;/P&gt;&lt;P&gt;is does not work. When I change the&amp;nbsp;"=MAX(FUEL_PORTFOLIOPERIOD)" for "202001" it works perfect. I also tried it making the Max(Fuel_portfolioPeriod) a variable that works correct but applying this variable in the Set Analysis, once again I get a wrong outcome. It just ignores the filter for FUEL_PORTFOLIOPERIOD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 08:21:50 GMT</pubDate>
    <dc:creator>Remco</dc:creator>
    <dc:date>2021-04-02T08:21:50Z</dc:date>
    <item>
      <title>Using MAX in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-MAX-in-set-analysis/m-p/1681226#M63786</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to something apparently simple but cannot get it to work. I have a range of periods being 202001 the highest one and for each period I calculate the sum of petrol units divided by the sum of total units. Works perfect, no issue.&lt;/P&gt;&lt;P&gt;Now, what I also want to highlight is the is the out come of the last period. But here I am not able to get this done. When I do the next:&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;FUEL_PORTFOLIOPERIOD = {"=MAX(FUEL_PORTFOLIOPERIOD)"}&amp;gt;}FUEL_DIESEL) / SUM({&amp;lt;FUEL_PORTFOLIOPERIOD = {"=MAX(FUEL_PORTFOLIOPERIOD)"}&amp;gt;}FUEL_NUMCONTRACTS)&lt;/P&gt;&lt;P&gt;is does not work. When I change the&amp;nbsp;"=MAX(FUEL_PORTFOLIOPERIOD)" for "202001" it works perfect. I also tried it making the Max(Fuel_portfolioPeriod) a variable that works correct but applying this variable in the Set Analysis, once again I get a wrong outcome. It just ignores the filter for FUEL_PORTFOLIOPERIOD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-MAX-in-set-analysis/m-p/1681226#M63786</guid>
      <dc:creator>Remco</dc:creator>
      <dc:date>2021-04-02T08:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using MAX in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-MAX-in-set-analysis/m-p/1681228#M63787</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;{"$(=MAX(FUEL_PORTFOLIOPERIOD))"}&amp;gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 09:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-MAX-in-set-analysis/m-p/1681228#M63787</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2020-03-03T09:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using MAX in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-MAX-in-set-analysis/m-p/1681230#M63788</link>
      <description>&lt;P&gt;It worked. Thanks. I thought I tried all the possibilities...&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 10:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-MAX-in-set-analysis/m-p/1681230#M63788</guid>
      <dc:creator>Remco</dc:creator>
      <dc:date>2020-03-03T10:00:26Z</dc:date>
    </item>
  </channel>
</rss>

