<?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 Calculating percentage total and grand total for Matrix table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-percentage-total-and-grand-total-for-Matrix-table/m-p/3553018#M136709</link>
    <description>&lt;P&gt;I am trying to build a matrix table that will show the value as well as the percentage. I have included screenshot below. I am stuck with the grand total percentage as it now shows the grand total of each row instead of 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the data source:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building the table to show it as is in the matrix format but i am unable to get the column D (state share portion) right. It either will show Grand total as 500% or it will calculate percentage by row to make the grand total of 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 02:26:05 GMT</pubDate>
    <dc:creator>Marshmallow</dc:creator>
    <dc:date>2023-11-27T02:26:05Z</dc:date>
    <item>
      <title>Calculating percentage total and grand total for Matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-percentage-total-and-grand-total-for-Matrix-table/m-p/3553018#M136709</link>
      <description>&lt;P&gt;I am trying to build a matrix table that will show the value as well as the percentage. I have included screenshot below. I am stuck with the grand total percentage as it now shows the grand total of each row instead of 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the data source:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building the table to show it as is in the matrix format but i am unable to get the column D (state share portion) right. It either will show Grand total as 500% or it will calculate percentage by row to make the grand total of 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 02:26:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-percentage-total-and-grand-total-for-Matrix-table/m-p/3553018#M136709</guid>
      <dc:creator>Marshmallow</dc:creator>
      <dc:date>2023-11-27T02:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage total and grand total for Matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-percentage-total-and-grand-total-for-Matrix-table/m-p/3553208#M136713</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;State share percentage: =
SWITCH (
    TRUE (),
    ISINSCOPE ( 'Product'[Product] ),
        DIVIDE (
            [Total Quantity:],
            CALCULATE ( [Total Quantity:], ALL ( 'Product'[Product] ) )
        ),
    ISINSCOPE ( State[State] ),
        DIVIDE (
            [Total Quantity:],
            CALCULATE (
                [Total Quantity:],
                ALL ( 'Product'[Product] ),
                ALL ( State[State] )
            )
        ),
    DIVIDE (
        [Total Quantity:],
        CALCULATE (
            [Total Quantity:],
            ALL ( 'Product'[Product] ),
            ALL ( State[State] )
        )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 05:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-percentage-total-and-grand-total-for-Matrix-table/m-p/3553208#M136713</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-11-27T05:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage total and grand total for Matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-percentage-total-and-grand-total-for-Matrix-table/m-p/3553230#M136715</link>
      <description>&lt;P&gt;Thank you, it works! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 05:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-percentage-total-and-grand-total-for-Matrix-table/m-p/3553230#M136715</guid>
      <dc:creator>Marshmallow</dc:creator>
      <dc:date>2023-11-27T05:37:17Z</dc:date>
    </item>
  </channel>
</rss>

