<?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 Running total with incorrect subtotal column in a matrix table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207697#M116890</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I cannot fix my issue below, even after having spent hours to sort that leveraging existing resources.&lt;/P&gt;&lt;P&gt;Here is my problem.&lt;/P&gt;&lt;P&gt;I have a measure, which is a running total, shown in a timeline matrix. This measure works well and total of each column is ok, but column subtotal is not: I've got the last column value, not the sum of each of the previous ones. To be clear, I have set this measure to show recurring revenue from contracts which are invoiced on a monthly manner from a start date. I need the total revenue by month (column total) and for the entire period (a quarter, a year, etc. which is my column subtotal).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And here is my dax measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And of course I need that dynamically updating with the timeline selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 16:33:24 GMT</pubDate>
    <dc:creator>NorbertManuel</dc:creator>
    <dc:date>2023-04-26T16:33:24Z</dc:date>
    <item>
      <title>Running total with incorrect subtotal column in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207697#M116890</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I cannot fix my issue below, even after having spent hours to sort that leveraging existing resources.&lt;/P&gt;&lt;P&gt;Here is my problem.&lt;/P&gt;&lt;P&gt;I have a measure, which is a running total, shown in a timeline matrix. This measure works well and total of each column is ok, but column subtotal is not: I've got the last column value, not the sum of each of the previous ones. To be clear, I have set this measure to show recurring revenue from contracts which are invoiced on a monthly manner from a start date. I need the total revenue by month (column total) and for the entire period (a quarter, a year, etc. which is my column subtotal).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And here is my dax measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And of course I need that dynamically updating with the timeline selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207697#M116890</guid>
      <dc:creator>NorbertManuel</dc:creator>
      <dc:date>2023-04-26T16:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with incorrect subtotal column in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207709#M116892</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398139" data-lia-user-login="NorbertManuel" class="lia-mention lia-mention-user"&gt;NorbertManuel&lt;/a&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-Roll/m-p/411443#M150" target="_blank"&gt;Matrix Measure Total Triple Threat Rock &amp;amp; Roll - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207709#M116892</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-04-26T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with incorrect subtotal column in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207741#M116897</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;thanks, unfortunately I have already went through these materials without being able to leverage them, as my issue is not at row level, but column level (as the total in each column is ok).&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 17:10:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207741#M116897</guid>
      <dc:creator>NorbertManuel</dc:creator>
      <dc:date>2023-04-26T17:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with incorrect subtotal column in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207976#M116920</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398139" data-lia-user-login="NorbertManuel" class="lia-mention lia-mention-user"&gt;NorbertManuel&lt;/a&gt;&amp;nbsp;Can you clarify for me. The total that is wrong is the subtotal of a row (first level of what you have in your Rows field well correct? If that is the case then a variation of MM3TR&amp;amp;R should do the trick. If you could post sample data that would be ideal but perhaps something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Measure = [Measure] // this is the measure in question
  VAR __Result = 
    IF(
      ISINSCOPE( [Column2]), // this is the second level of your hierarchy, could also possibly use HASONEVALUE()
      __Measure, // if 2nd level is in scope/has one value then just return the measure
        VAR __Table = SUMMARIZE('Table', [Column2], "__Measure", [Measure])
        VAR __Result = SUMX(__Table, [__Measure])
      RETURN
        __Result
    )
RETURN
  __Result



or alternately:

Measure =
  VAR __Measure = [Measure] // this is the measure in question
  VAR __Result = 
    IF(
      ISINSCOPE( [Column2]), // this is the second level of your hierarchy, could also possibly use HASONEVALUE()
      __Measure, // if 2nd level is in scope/has one value then just return the measure
        VAR __Table = ADDCOLUMNS(DISTINCT('Table'[Column2]), "__Measure", [Measure])
        VAR __Result = SUMX(__Table, [__Measure])
      RETURN
        __Result
    )
RETURN
  __Result
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Apr 2023 21:05:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3207976#M116920</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-04-26T21:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with incorrect subtotal column in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3208911#M116969</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; thanks for spending time on my case.&lt;/P&gt;&lt;P&gt;No, the issue is not that one.&lt;/P&gt;&lt;P&gt;Let me clarify with the picture of my matrix:&lt;/P&gt;&lt;P&gt;If you look at Feb'23 column, total of the column show 6.28 which is correct (2.18+0.55+0.19+3.26+0.1)&lt;/P&gt;&lt;P&gt;And same for the next columns.&lt;/P&gt;&lt;P&gt;The issue is with the subtotal column (the last one in bold called "total"): as you can see, for the first row for instance, this is showing 5.81, which is basically the same value as Dec'23. And same for following rows. This is not surprising because my measure is a kind of rolling YTD (meaning not stopping at the end of each year, but a running total).&lt;/P&gt;&lt;P&gt;However, my objective is to get the value of the total recurring revenue invoiced each month, for the selected period (here the whole year 2023). So, instead of showing the "exit rate", ie the value invoiced in Dec'23, I want to get the value from Jan'23+Feb'23+...+Dec'23. And that should be dynamic, ie if I select Q1'23 in my timeline, I will need to see Jan, Feb, Mar and then get the sum of these 3 months.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 09:25:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-with-incorrect-subtotal-column-in-a-matrix-table/m-p/3208911#M116969</guid>
      <dc:creator>NorbertManuel</dc:creator>
      <dc:date>2023-04-27T09:25:39Z</dc:date>
    </item>
  </channel>
</rss>

