<?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: Simple question... Max Value in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511655#M750261</link>
    <description>&lt;P&gt;May be try this in that case&lt;/P&gt;&lt;PRE&gt;=FirstSortedValue({$&amp;lt;ComponentID = {498}&amp;gt;} Aggr(Sum({$&amp;lt;ComponentID = {498}&amp;gt;} Loonresultaat), MonthNr, Employee), -Aggr(Only({$&amp;lt;ComponentID = {498}&amp;gt;}MonthNr), MonthNr, Employee))&lt;/PRE&gt;</description>
    <pubDate>Fri, 23 Nov 2018 15:49:12 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-23T15:49:12Z</dc:date>
    <item>
      <title>Simple question... Max Value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511631#M750257</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a simple database with payroll information. For each month the value of the payment.&lt;/P&gt;&lt;P&gt;What is working:&lt;/P&gt;&lt;P&gt;textbox with : =max(MonthNr)&lt;/P&gt;&lt;P&gt;This gives back the number 08&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further in a straight tabel the following expression:&lt;/P&gt;&lt;P&gt;=sum( {$ &amp;lt; ComponentID={498}, &lt;SPAN&gt;MonthNr&lt;/SPAN&gt;={08}&amp;gt; } Loonresultaat)&lt;/P&gt;&lt;P&gt;Also this is working......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT i can't get it working in 1 statement:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum( {$ &amp;lt; ComponentID={498},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MonthNr&lt;/SPAN&gt;&lt;SPAN&gt;={'=max(MonthNr)'}&amp;gt; } Loonresultaat)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tried a lot way of different writings (with = '' $ etc), but dont get it working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also made a variable vMaxMonth=max(MonthNr) and then use it in the expression is not helping.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Seems&amp;nbsp;such a simple problem...... am overlooking something.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511631#M750257</guid>
      <dc:creator>intervigilium</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question... Max Value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511639#M750258</link>
      <description>&lt;P&gt;Try one of these&lt;/P&gt;&lt;PRE&gt;=Sum({$&amp;lt; ComponentID = {498}, MonthNr = {"$(=Max(MonthNr))"}&amp;gt;} Loonresultaat)&lt;/PRE&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;PRE&gt;=Sum({$&amp;lt; ComponentID = {498}, MonthNr = {"$(=MaxString(MonthNr))"}&amp;gt;} Loonresultaat)&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511639#M750258</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-23T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question... Max Value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511642#M750259</link>
      <description>&lt;P&gt;MonthNr "08" already contains a formatting.&lt;BR /&gt;The MAX() within the SetAnalysis would work only on numeric data.&lt;/P&gt;&lt;P&gt;Suggest to have a field MonthNr with the plain numeric value ("8"). Then formulas should work.&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511642#M750259</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2018-11-23T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question... Max Value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511653#M750260</link>
      <description>&lt;P&gt;Dear Stalwar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both expressions are working! I have to find out the difference between single and double qoutes '&amp;nbsp; versus ". But i will google that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for the solutions&lt;/P&gt;&lt;P&gt;I didn't use the double qoutes before.&lt;/P&gt;&lt;P&gt;Only one more question... the last month-number is different for each row. How do i add that to the expression?&lt;/P&gt;&lt;P&gt;I added a screenshot. Now it takes '9' as max month in the total table, but the max value is different voor each employee.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511653#M750260</guid>
      <dc:creator>intervigilium</dc:creator>
      <dc:date>2018-11-23T15:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question... Max Value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511655#M750261</link>
      <description>&lt;P&gt;May be try this in that case&lt;/P&gt;&lt;PRE&gt;=FirstSortedValue({$&amp;lt;ComponentID = {498}&amp;gt;} Aggr(Sum({$&amp;lt;ComponentID = {498}&amp;gt;} Loonresultaat), MonthNr, Employee), -Aggr(Only({$&amp;lt;ComponentID = {498}&amp;gt;}MonthNr), MonthNr, Employee))&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511655#M750261</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-23T15:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question... Max Value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511660#M750262</link>
      <description>&lt;P&gt;Really great, that is working! Would never got that working without&amp;nbsp;help!&lt;/P&gt;&lt;P&gt;Thanks again and nice evening!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Max-Value-in-set-analysis/m-p/1511660#M750262</guid>
      <dc:creator>intervigilium</dc:creator>
      <dc:date>2018-11-23T15:56:20Z</dc:date>
    </item>
  </channel>
</rss>

