<?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: Sum of a measure based on Max of another measure of current month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427665#M96280</link>
    <description>&lt;P&gt;I am sorry&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14787"&gt;@maxgro&lt;/a&gt;&amp;nbsp;I didn't understand your suggestion. Could you please elaborate a little?&lt;/P&gt;
&lt;P&gt;where do you suggest I use the &lt;SPAN&gt;FirstSortedValue? Since, it returns dimensions as output (I looked at the examples off the link you shared), I am not sure how it helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 10:24:02 GMT</pubDate>
    <dc:creator>Braveen</dc:creator>
    <dc:date>2024-03-06T10:24:02Z</dc:date>
    <item>
      <title>Sum of a measure based on Max of another measure of current month</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427642#M96275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a data that looks like below (simplified).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Braveen_0-1709718701273.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/161416iB9F5CECD6C4BFC3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Braveen_0-1709718701273.png" alt="Braveen_0-1709718701273.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I need sum of current month plan based on the maximum plan revision. I have used this expression.&lt;/P&gt;
&lt;P&gt;{&amp;lt;Plan month = {"$(=Max(Plan month))"}, Plan Rev = {"$(=Max(Plan Rev))"} &amp;gt;} Sum(Plan).&lt;/P&gt;
&lt;P&gt;It works fine when I choose a month or works if all the months have 2 plan revisions. I would like this Max(Plan Rev) should take the current month in to account and display the max revision of that month.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Braveen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 09:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427642#M96275</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2024-03-06T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure based on Max of another measure of current month</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427654#M96277</link>
      <description>&lt;P&gt;try with [Plan month] as dimension and this expression&lt;/P&gt;
&lt;P&gt;FirstSortedValue( Plan, -[Plan Rev])&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427654#M96277</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2024-03-06T10:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure based on Max of another measure of current month</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427659#M96279</link>
      <description>&lt;P&gt;Hello, this formula should work&lt;/P&gt;
&lt;P&gt;{&amp;lt;month = {"$(=Max(month))"}, Rev = {"$(=Max({&amp;lt;month = {"$(=Max(month))"}&amp;gt;}Rev))"} &amp;gt;} Sum(Plan)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427659#M96279</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-03-06T10:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure based on Max of another measure of current month</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427665#M96280</link>
      <description>&lt;P&gt;I am sorry&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14787"&gt;@maxgro&lt;/a&gt;&amp;nbsp;I didn't understand your suggestion. Could you please elaborate a little?&lt;/P&gt;
&lt;P&gt;where do you suggest I use the &lt;SPAN&gt;FirstSortedValue? Since, it returns dimensions as output (I looked at the examples off the link you shared), I am not sure how it helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427665#M96280</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2024-03-06T10:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure based on Max of another measure of current month</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427679#M96282</link>
      <description>&lt;P&gt;This is working as expected. Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/287708"&gt;@Clement15&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-of-a-measure-based-on-Max-of-another-measure-of-current/m-p/2427679#M96282</guid>
      <dc:creator>Braveen</dc:creator>
      <dc:date>2024-03-06T10:36:21Z</dc:date>
    </item>
  </channel>
</rss>

