<?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 visual show two columns as Total and % total along with other columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4653426#M178144</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442641" data-lia-user-login="SriBhaskar" class="lia-mention lia-mention-user"&gt;SriBhaskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when you add a measure to calculate the percentage, Power BI applies it to all columns (segments), not just to the total column. But with a little workaround using DAX, you can show a separate % Total column right next to the Total column without showing it for each segment.&lt;/P&gt;
&lt;P&gt;Please follow the below steps:&lt;/P&gt;
&lt;P&gt;Creating a measure that calculates the % of Total. Using a custom column layout (via field parameters or calculated groups with tabular editor if needed). Or the simpler way: manually arranging a second matrix to appear beside the first one (less dynamic but visually works).&lt;/P&gt;
&lt;P&gt;By Using DAX (For a Separate % Column):&lt;/P&gt;
&lt;P&gt;Step 1: Create the % Total Measure&lt;BR /&gt;% of Total = &lt;BR /&gt;DIVIDE(&lt;BR /&gt;[Sum of Units Sold],&lt;BR /&gt;CALCULATE([Sum of Units Sold], ALL('YourTable'[Country]))&lt;BR /&gt;)&lt;BR /&gt;Replace [Sum of Units Sold] and 'YourTable' with your actual measure/table names.&lt;/P&gt;
&lt;P&gt;Step 2: Use This Measure in Matrix&lt;BR /&gt;Now to only show it in the Total column, you can try using a DAX trick to blank out values unless it's the total row (this works depending on layout):&lt;/P&gt;
&lt;P&gt;% of Total Only in Total Column = &lt;BR /&gt;IF(&lt;BR /&gt;HASONEVALUE('Segment'[Segment]), &lt;BR /&gt;BLANK(), &lt;BR /&gt;[% of Total]&lt;BR /&gt;)&lt;BR /&gt;This tells Power BI: If you're inside a specific Segment (i.e., not the total column), then don't show anything. Only show value when it's not filtered by a Segment → i.e., the Grand Total column.&lt;/P&gt;
&lt;P&gt;Step 3: Add This Measure to the Matrix&lt;BR /&gt;Now drag this measure into the Values field after the Sum of Units Sold.&lt;/P&gt;
&lt;P&gt;Sample Output:&lt;/P&gt;
&lt;P&gt;| Canada | Channel | Enterprise | ... | Total | % of Total |&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;BR /&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 09:47:57 GMT</pubDate>
    <dc:creator>v-dineshya</dc:creator>
    <dc:date>2025-04-15T09:47:57Z</dc:date>
    <item>
      <title>Matrix visual show two columns as Total and % total along with other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4652501#M178105</link>
      <description>&lt;P&gt;I have a matrix visual shows the country as rows, segments as column and the grandtotal. I need to add one more column beside total as total %. I dont need to add % for all the segments only as a column beside grandtotal. Below is the visual&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to add % as a seperate column as a last column in the matrix. If I create a measure and add it, it is adding for all segments I dont need that to all the segments. I need both total and % columns at the end.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help on this or any suggestion or workaround?&lt;BR /&gt;Thanks&lt;BR /&gt;Sri&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 21:37:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4652501#M178105</guid>
      <dc:creator>SriBhaskar</dc:creator>
      <dc:date>2025-04-14T21:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix visual show two columns as Total and % total along with other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4653226#M178134</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442641" data-lia-user-login="SriBhaskar" class="lia-mention lia-mention-user"&gt;SriBhaskar&lt;/a&gt;&amp;nbsp;Hi!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try with calculate a separated table as:&lt;/P&gt;
&lt;P&gt;Segment Plus = &lt;BR /&gt;UNION (&lt;BR /&gt;VALUES('Segments'[Segment]),&lt;BR /&gt;ROW("Segment", "Total %")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Use SegmentPlus as your column in the matrix.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now create a measure like:&lt;/P&gt;
&lt;P&gt;Matrix Value = &lt;BR /&gt;SWITCH (&lt;BR /&gt;SELECTEDVALUE('Segment Plus'[Segment]),&lt;BR /&gt;"Total %", &lt;BR /&gt;DIVIDE(&lt;BR /&gt;[Sum of Units Sold], &lt;BR /&gt;CALCULATE([Sum of Units Sold], ALLSELECTED('YourTable'[Country]))&lt;BR /&gt;),&lt;BR /&gt;[Sum of Units Sold]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Use this measure as Values in the matrix.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" data-start="1834" data-end="1856"&gt;Your matrix will show:&lt;/P&gt;
&lt;UL data-start="1857" data-end="2053"&gt;
&lt;LI class="" data-start="1857" data-end="1913"&gt;
&lt;P class="" data-start="1859" data-end="1913"&gt;Segments as usual (Channel Partners, Enterprise, etc.)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1914" data-end="1955"&gt;
&lt;P class="" data-start="1916" data-end="1955"&gt;Grand Total (auto-calculated by matrix)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1956" data-end="2053"&gt;
&lt;P class="" data-start="1958" data-end="2053"&gt;&lt;STRONG data-start="1958" data-end="2006"&gt;One extra column at the end called "Total %"&lt;/STRONG&gt; showing each country’s % of the overall total.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;BBF&lt;/P&gt;
&lt;DIV style="font-family: Segoe UI, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question?&lt;/STRONG&gt; Mark my post as a solution! &lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Kudos are appreciated &lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":fire:"&gt;🔥&lt;/span&gt; Proud to be a Super User!&lt;/STRONG&gt; &lt;BR /&gt;&lt;img /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Apr 2025 08:29:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4653226#M178134</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2025-04-15T08:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix visual show two columns as Total and % total along with other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4653426#M178144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442641" data-lia-user-login="SriBhaskar" class="lia-mention lia-mention-user"&gt;SriBhaskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when you add a measure to calculate the percentage, Power BI applies it to all columns (segments), not just to the total column. But with a little workaround using DAX, you can show a separate % Total column right next to the Total column without showing it for each segment.&lt;/P&gt;
&lt;P&gt;Please follow the below steps:&lt;/P&gt;
&lt;P&gt;Creating a measure that calculates the % of Total. Using a custom column layout (via field parameters or calculated groups with tabular editor if needed). Or the simpler way: manually arranging a second matrix to appear beside the first one (less dynamic but visually works).&lt;/P&gt;
&lt;P&gt;By Using DAX (For a Separate % Column):&lt;/P&gt;
&lt;P&gt;Step 1: Create the % Total Measure&lt;BR /&gt;% of Total = &lt;BR /&gt;DIVIDE(&lt;BR /&gt;[Sum of Units Sold],&lt;BR /&gt;CALCULATE([Sum of Units Sold], ALL('YourTable'[Country]))&lt;BR /&gt;)&lt;BR /&gt;Replace [Sum of Units Sold] and 'YourTable' with your actual measure/table names.&lt;/P&gt;
&lt;P&gt;Step 2: Use This Measure in Matrix&lt;BR /&gt;Now to only show it in the Total column, you can try using a DAX trick to blank out values unless it's the total row (this works depending on layout):&lt;/P&gt;
&lt;P&gt;% of Total Only in Total Column = &lt;BR /&gt;IF(&lt;BR /&gt;HASONEVALUE('Segment'[Segment]), &lt;BR /&gt;BLANK(), &lt;BR /&gt;[% of Total]&lt;BR /&gt;)&lt;BR /&gt;This tells Power BI: If you're inside a specific Segment (i.e., not the total column), then don't show anything. Only show value when it's not filtered by a Segment → i.e., the Grand Total column.&lt;/P&gt;
&lt;P&gt;Step 3: Add This Measure to the Matrix&lt;BR /&gt;Now drag this measure into the Values field after the Sum of Units Sold.&lt;/P&gt;
&lt;P&gt;Sample Output:&lt;/P&gt;
&lt;P&gt;| Canada | Channel | Enterprise | ... | Total | % of Total |&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;BR /&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 09:47:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4653426#M178144</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-15T09:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix visual show two columns as Total and % total along with other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4662189#M178533</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442641" data-lia-user-login="SriBhaskar" class="lia-mention lia-mention-user"&gt;SriBhaskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 05:27:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4662189#M178533</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-22T05:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix visual show two columns as Total and % total along with other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4670491#M178893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442641" data-lia-user-login="SriBhaskar" class="lia-mention lia-mention-user"&gt;SriBhaskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 09:54:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4670491#M178893</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-28T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix visual show two columns as Total and % total along with other columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4676871#M179111</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442641" data-lia-user-login="SriBhaskar" class="lia-mention lia-mention-user"&gt;SriBhaskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 06:17:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-visual-show-two-columns-as-Total-and-total-along-with/m-p/4676871#M179111</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-05-02T06:17:59Z</dc:date>
    </item>
  </channel>
</rss>

