<?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: Matrix table with sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554053#M30758</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272202" data-lia-user-login="Carlo1975" class="lia-mention lia-mention-user"&gt;Carlo1975&lt;/a&gt;&amp;nbsp;, do you expect this?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You might want to add another measure,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Accum = 
DIVIDE( [Accum], CALCULATE( SUM( Table1[Amount] ) , ALL( Table1[Quarter] ) ) )&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 16 Dec 2020 14:43:29 GMT</pubDate>
    <dc:creator>CNENFRNL</dc:creator>
    <dc:date>2020-12-16T14:43:29Z</dc:date>
    <item>
      <title>Matrix table with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1553772#M30747</link>
      <description>&lt;P&gt;Hi, I have a problem and I don't know how to overcome it. I don't know if the solution is Dax or power query. I'm sorry.&lt;/P&gt;&lt;P&gt;I try to explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table like this. With 2 clusters columns, one column with the quarters, and one with an amount:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to do a matrix table I don't have any problem&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;up to here everything is quite simple.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that, for each row, I have to sum the&amp;nbsp;previous value with the following. And so, if you look at first row, you have for the first quarter 150, the second 150 and on the last one 700:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my new Matrix Table I have to do this: On the first quarter I will have 150, on the second quarter 300 (because I have to sum the 150 on the first quarter, to the second). In the third quarter, I will have 1000 because I will sum 150 (first quarter), 150 (second quarter) and 700 (last one). The new first row will be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This one, for all the row and all the quarters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ok....for this problem&amp;nbsp;&lt;/SPAN&gt;CNENFRNL said me the best solution and I used it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Accum = 
VAR __qtr = MAX ( Table1[Quarter] )
RETURN
    CALCULATE ( SUM ( Table1[Amount] ), Table1[Quarter] &amp;lt;= __qtr )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1521406#M29672" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1521406#M29672&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I have another problem....I don't have to use absolute numbers but percentages and I cannot use the power BI options&amp;nbsp;&lt;SPAN&gt;"show value as a percentage of grand total".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible using the DAX code above and my example to have a percentage cumulative Value?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Carlo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 11:55:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1553772#M30747</guid>
      <dc:creator>Carlo1975</dc:creator>
      <dc:date>2020-12-16T11:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554053#M30758</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272202" data-lia-user-login="Carlo1975" class="lia-mention lia-mention-user"&gt;Carlo1975&lt;/a&gt;&amp;nbsp;, do you expect this?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You might want to add another measure,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Accum = 
DIVIDE( [Accum], CALCULATE( SUM( Table1[Amount] ) , ALL( Table1[Quarter] ) ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Dec 2020 14:43:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554053#M30758</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-12-16T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554179#M30761</link>
      <description>&lt;P&gt;HI&amp;nbsp;CNENFRNL and Thank you....with this I obtain always 100% on my chart, instead&amp;nbsp;I have to have this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so each percentage, is a percentage on the grand total (4.190)...the sum of all the percentage will be 100%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;150 is the 4% of grand total 4.190&lt;/P&gt;&lt;P&gt;300 is the 7% of grand total 4.190&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope to explain well my problem.&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Carlo&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 15:27:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554179#M30761</guid>
      <dc:creator>Carlo1975</dc:creator>
      <dc:date>2020-12-16T15:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554489#M30772</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272202" data-lia-user-login="Carlo1975" class="lia-mention lia-mention-user"&gt;Carlo1975&lt;/a&gt;&amp;nbsp;, you might want to try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Accum =
VAR __gt = SUMX ( ALL ( Table1[Cluster2], Table1[Quarter] ), [Accum] )
RETURN
    DIVIDE ( [Accum], __gt )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:09:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554489#M30772</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-12-16T17:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554536#M30776</link>
      <description>&lt;P&gt;I'm sorry, what is Cluster2?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:26:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-table-with-sum/m-p/1554536#M30776</guid>
      <dc:creator>Carlo1975</dc:creator>
      <dc:date>2020-12-16T17:26:26Z</dc:date>
    </item>
  </channel>
</rss>

