<?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 Sum for the Latest Month across the Years in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687415#M52373</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Goal:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a Master Measure for Total Number of Employees&amp;nbsp; to be used against any dimension&lt;/LI&gt;&lt;LI&gt;Total Number of Employees is a cumulative value so it is not a direct Sum, ie: it should be the Sum of Employees found in the &lt;STRONG&gt;Latest Month.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Examples below on data and output chart needed.&lt;/P&gt;&lt;P&gt;Currently i tried the below Set Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUM ({$&amp;lt; [Year Month]={$(=MAX([Year Month]))} &amp;gt;} [Number of Employees])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when i place this measure in a bar chart grouped by the Year, only the Latest Year will get a value while the rest will be ZERO.&lt;/P&gt;&lt;P&gt;Ex: if Latest Month in the data is = 2020-08, but knowing i have months in the previous years&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="71px"&gt;Fiscal Year&lt;/TD&gt;&lt;TD width="181px"&gt;Total Employee&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="71px"&gt;2019&lt;/TD&gt;&lt;TD width="181px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Example of Data Present:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Calendar:&lt;/EM&gt;&lt;/P&gt;&lt;TABLE width="345"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Fiscal Year&lt;/TD&gt;&lt;TD&gt;Year Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-01&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2019-08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-09-01&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2019-09&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-10-01&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;2019-10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fact Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;DateRegionHead Count&lt;/P&gt;&lt;TABLE width="500"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;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;&lt;TD width="71px"&gt;Fiscal Year&lt;/TD&gt;&lt;TD width="181px"&gt;Total Employee&lt;/TD&gt;&lt;TD width="47px"&gt;Logic&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="71px"&gt;2019&lt;/TD&gt;&lt;TD width="181px"&gt;6&lt;/TD&gt;&lt;TD width="47px"&gt;Sum of the Regions found in Month &lt;STRONG&gt;2019-09&lt;/STRONG&gt; ; the last month of the Fiscal Year 2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="71px"&gt;2020&lt;/TD&gt;&lt;TD width="181px"&gt;9&lt;/TD&gt;&lt;TD width="47px"&gt;Sum of the Regions found in Month &lt;STRONG&gt;2019-10&lt;/STRONG&gt; ; the last month of the Fiscal Year 2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
    <dc:creator>ghaliabed</dc:creator>
    <dc:date>2021-12-20T21:32:42Z</dc:date>
    <item>
      <title>Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687415#M52373</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Goal:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a Master Measure for Total Number of Employees&amp;nbsp; to be used against any dimension&lt;/LI&gt;&lt;LI&gt;Total Number of Employees is a cumulative value so it is not a direct Sum, ie: it should be the Sum of Employees found in the &lt;STRONG&gt;Latest Month.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Examples below on data and output chart needed.&lt;/P&gt;&lt;P&gt;Currently i tried the below Set Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUM ({$&amp;lt; [Year Month]={$(=MAX([Year Month]))} &amp;gt;} [Number of Employees])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when i place this measure in a bar chart grouped by the Year, only the Latest Year will get a value while the rest will be ZERO.&lt;/P&gt;&lt;P&gt;Ex: if Latest Month in the data is = 2020-08, but knowing i have months in the previous years&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="71px"&gt;Fiscal Year&lt;/TD&gt;&lt;TD width="181px"&gt;Total Employee&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="71px"&gt;2019&lt;/TD&gt;&lt;TD width="181px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Example of Data Present:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Calendar:&lt;/EM&gt;&lt;/P&gt;&lt;TABLE width="345"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Fiscal Year&lt;/TD&gt;&lt;TD&gt;Year Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-08-01&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2019-08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-09-01&lt;/TD&g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;2019-10-01&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-10-01&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;EM&gt;Target Measure/Chart:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Table Chart that will show this:&lt;/P&gt;&lt;TABLE width="700"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="71px"&gt;Fiscal Year&lt;/TD&gt;&lt;TD width="181px"&gt;Total Employee&lt;/TD&gt;&lt;TD width="47px"&gt;Logic&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="71px"&gt;2019&lt;/TD&gt;&lt;TD width="181px"&gt;6&lt;/TD&gt;&lt;TD width="47px"&gt;Sum of the Regions found in Month &lt;STRONG&gt;2019-09&lt;/STRONG&gt; ; the last month of the Fiscal Year 2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="71px"&gt;2020&lt;/TD&gt;&lt;TD width="181px"&gt;9&lt;/TD&gt;&lt;TD width="47px"&gt;Sum of the Regions found in Month &lt;STRONG&gt;2019-10&lt;/STRONG&gt; ; the last month of the Fiscal Year 2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687415#M52373</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687657#M52397</link>
      <description>&lt;P&gt;I found a possible way to do this but not fully working yet.&lt;/P&gt;&lt;P&gt;Using the &lt;SPAN&gt;FirstSortedValue function:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue( Aggr( Sum( Number of Employee) , [Year Month] ), -Num([Year Month] ) )&lt;/LI-CODE&gt;&lt;P&gt;Great post here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Additive-and-Non-Additive-Numbers/bc-p/1687631#M8701" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Additive-and-Non-Additive-Numbers/bc-p/1687631#M8701&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it still doesn't work fully for my case as when i add dimensions other than Calendar it only gives a value for one of the values but not all of them.&lt;/P&gt;&lt;P&gt;Like image below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 819px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30565i25B1C1A9100DE025/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 13:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687657#M52397</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-03-25T13:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687680#M52401</link>
      <description>&lt;P&gt;You probably need to add the extra dimensions to your aggregation function&lt;/P&gt;&lt;P&gt;Based on the formula in your chart:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue( Aggr( Sum(SignedData) , [Year Month Number], ACCOUNT_TYPE ), -Num([Year Month Number] ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 14:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687680#M52401</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-25T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687711#M52406</link>
      <description>&lt;P&gt;I tried adding it in the Aggr part, but when i did no values were returned at all.&lt;/P&gt;&lt;P&gt;Plus i need this to stay dynamic as in regardless what dimension i add to the chart i want it to show value.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue( Aggr( Sum( SignedData ) , [Year Month Number], ACCOUNT_TYPE ), -Num([Year Month Number]) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 808px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30575iB4047B94431570F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 15:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687711#M52406</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-03-25T15:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687713#M52407</link>
      <description>&lt;P&gt;Can you post the dashboard or recreate the issue in a new one?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 15:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687713#M52407</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-25T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687723#M52410</link>
      <description>&lt;P&gt;Please find attached the dashboard i am working with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 15:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687723#M52410</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-03-25T15:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687749#M52416</link>
      <description>&lt;P&gt;This works for the sample table (see attached):&lt;/P&gt;&lt;P&gt;=FirstSortedValue(aggr(sum(SignedData), ACCOUNT_TYPE, [Year Month Number] ),-aggr(only([Year Month Number]) , ACCOUNT_TYPE, [Year Month Number]))&lt;/P&gt;&lt;P&gt;To make it into a master measure you would need to add all the dimensions you'll likely to use in your charts in the two aggregation functions; it should work&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 16:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687749#M52416</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-25T16:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687766#M52419</link>
      <description>&lt;P&gt;It doesn't seem to be working across all cases.&lt;/P&gt;&lt;P&gt;in this example not all Account Types are being calculated and also if you want to show total at level of the chart, it does not show but is just BLANK.&lt;/P&gt;&lt;P&gt;Pick:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue(aggr(sum(SignedData), ACCOUNT_TYPE, [Year Month Number] ),-aggr(only([Year Month Number]) , ACCOUNT_TYPE, [Year Month Number]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30587i1CE00B41924D6E29/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 16:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687766#M52419</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-03-25T16:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687768#M52421</link>
      <description>&lt;P&gt;This table shows different dimensions; you need to add them to the formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687768#M52421</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-25T17:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687774#M52423</link>
      <description>&lt;P&gt;yes the dimensions used in the chart already added in the Formula, and was getting results in the image&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687774#M52423</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-03-25T17:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687775#M52424</link>
      <description>&lt;P&gt;can you re-share the file?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687775#M52424</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-25T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687786#M52425</link>
      <description>&lt;P&gt;please find it attached&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687786#M52425</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-03-25T17:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687798#M52428</link>
      <description>&lt;P&gt;The calculation works as expected (I've added a table that shows this)&lt;/P&gt;&lt;P&gt;The issue is that you are using a pivot table; there are different behaviours when expanded/collapsed . You need to use two different formulas and pick using the Dimensionality() function&lt;/P&gt;&lt;P&gt;See attached&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Headcount2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30591i0DA8DE386D041B6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Headcount2.png" alt="Headcount2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 18:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687798#M52428</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-25T18:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687805#M52431</link>
      <description>&lt;P&gt;Yes it works for this specific pivot table and chart combination.&lt;/P&gt;&lt;P&gt;But i guess there isn't a way to make a true Master Measure that can be applied regardless of chart composition.&lt;/P&gt;&lt;P&gt;Also one that allows u to show totals, as currently in pivot table totals stay null.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 18:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687805#M52431</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-03-25T18:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687810#M52434</link>
      <description>&lt;P&gt;Totals are just another level of dimensionality (0)&lt;/P&gt;&lt;P&gt;See attached&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 18:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1687810#M52434</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-25T18:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1690270#M52735</link>
      <description>&lt;P&gt;Yes this works for specific charts&lt;/P&gt;&lt;P&gt;but yes so far haven't found a way to make it a master measure. Available for self-service&lt;/P&gt;&lt;P&gt;only as prepackaged calculations&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 12:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1690270#M52735</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-04-02T12:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1690307#M52740</link>
      <description>&lt;P&gt;Correct. I can't see a way of making it a master measure&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 13:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1690307#M52740</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-04-02T13:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1695732#M53207</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am trying a new approach now and wanted to see if can help with the last part.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Assumptions:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Have Pivot table with:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Year --&amp;gt; Quarter --&amp;gt; Month in the columns&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Any dimension in the Rows&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;U&gt;Current measure being used:&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if
(
     Dimensionality() = 2
    ,sum(SignedData) // Month Level
    ,sum({&amp;lt;[Fiscal Month Number]={$(=max([Fiscal Month Number]))}&amp;gt;}SignedData)
)&lt;/LI-CODE&gt;&lt;P&gt;If i make the pivot table to only have Quarter --&amp;gt; Month &lt;EM&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/EM&gt;Year --&amp;gt; Month&lt;/P&gt;&lt;P&gt;It is giving me the results i want&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex: (of course switch Dimensionality()=1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Quarter --&amp;gt; Month&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghaliabed_0-1587557913231.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32286iD101C38A721C3732/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghaliabed_0-1587557913231.png" alt="ghaliabed_0-1587557913231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Looking at Q.3 when expanded , the values at the Month Level for the Rows is correct but the Total is wrong&lt;/LI&gt;&lt;LI&gt;Looking at Q.4 when not expanded, the values at the Rows is correct and the Total is correct&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is closer to what is needed as i can switch the Dimension present in the row and not be affected.&lt;/P&gt;&lt;P&gt;But as you can the roll up is still an issue for Totala, and also when i use all three Time levels (Year --&amp;gt; Q --&amp;gt; Month)&lt;/P&gt;&lt;P&gt;&lt;U&gt;I get results like ones below:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghaliabed_1-1587558543480.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32287i760D52AE856848FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghaliabed_1-1587558543480.png" alt="ghaliabed_1-1587558543480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where only the Quarter and the Month that is at the max has values while the rest become ZERO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 12:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1695732#M53207</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-04-22T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1695744#M53209</link>
      <description>&lt;P&gt;can you upload the dashboard?&lt;/P&gt;&lt;P&gt;Also, totals only work for Q4 because that's when you have your&amp;nbsp;max([Fiscal Month Number]); when you use set analysis, you are looking for the max month across the current selection, not per row/column. You will need to use firstsortedvalue and aggr like we've done before&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1695744#M53209</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-04-22T13:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for the Latest Month across the Years</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1695756#M53210</link>
      <description>&lt;P&gt;Please find dashboard here.&lt;/P&gt;&lt;P&gt;And yes i get that for the Max(Fiscal Month Number)&lt;/P&gt;&lt;P&gt;But isn't a set analysis where the value of the Max changes by the grouping at the chart level ?&lt;/P&gt;&lt;P&gt;Since max(fiscal Month Number) at Q1 level is different then Q2, but seems value in the set analysis only gets calculated before the dashboard is rendered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-for-the-Latest-Month-across-the-Years/m-p/1695756#M53210</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2020-04-22T13:30:08Z</dc:date>
    </item>
  </channel>
</rss>

