<?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: How to calculate percentage of column total? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829958#M184503</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THE DATA MODEL&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 18:25:07 GMT</pubDate>
    <dc:creator>sarthakgirdhar</dc:creator>
    <dc:date>2025-09-18T18:25:07Z</dc:date>
    <item>
      <title>How to calculate percentage of column total?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829956#M184502</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Hi DAX gurus,&lt;BR /&gt;&lt;BR /&gt;I have some good news! AI won't be replacing us anytime soon. Both ChatGPT and CoPilot were unable to solve this.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;All I am trying to do is write a dynamic DAX measure that calculates the percentage of students who obtained a grade X over the column total.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I have many filters/slicers on this page. As you can see in the attached image, the default tooltip for "100% stacked bar chart" gives the right percentage (15.38%, in this case) every time. I can change the filters that affects the total, and I still get the correct percentage.&lt;BR /&gt;&lt;BR /&gt;My written DAX measure &lt;EM&gt;Grade Percentage&lt;/EM&gt; fails to do so. I'd like your help in writing the correct DAX measure. I will eventually use this measure to create a customized Tooltip.&lt;BR /&gt;&lt;BR /&gt;P.S. - The REPLY has the Data Model too.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Sarthak&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 18:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829956#M184502</guid>
      <dc:creator>sarthakgirdhar</dc:creator>
      <dc:date>2025-09-18T18:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate percentage of column total?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829958#M184503</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THE DATA MODEL&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 18:25:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829958#M184503</guid>
      <dc:creator>sarthakgirdhar</dc:creator>
      <dc:date>2025-09-18T18:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate percentage of column total?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829969#M184504</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578282" data-lia-user-login="sarthakgirdhar" class="lia-mention lia-mention-user"&gt;sarthakgirdhar&lt;/a&gt;&amp;nbsp;The classic approach to this would be something along the lines of:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Total = 
VAR _Total = CALCULATE( COUNTROWS( 'Course Grades' ), ALLSELECTED( 'Course Grades' ) )
VAR _Part = COUNTROWS( 'Course Grades' ) 
// or something like COUNTROWS( FILTER( 'Course Grades', [Grade] = "A" )
VAR _Return = DIVIDE( _Part, _Total )
RETURN _Return&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Sep 2025 19:00:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829969#M184504</guid>
      <dc:creator>GeraldGEmerick</dc:creator>
      <dc:date>2025-09-18T19:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate percentage of column total?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829973#M184505</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1338394" data-lia-user-login="GeraldGEmerick" class="lia-mention lia-mention-user"&gt;GeraldGEmerick&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply!&lt;BR /&gt;&lt;BR /&gt;I figured out the issue. It wasn't my DAX measure that was the issue, it was actually the "100% stacked Bar chart".&lt;BR /&gt;You see, the aforementioned visual already normalizes the values, and with my measure, there was double normalization that was happening hence, the wrong percentage. The calculation works just fine on the "normal" Stacked bar chart.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 19:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4829973#M184505</guid>
      <dc:creator>sarthakgirdhar</dc:creator>
      <dc:date>2025-09-18T19:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate percentage of column total?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4831135#M184537</link>
      <description>&lt;P&gt;Glad to hear it!&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 13:51:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4831135#M184537</guid>
      <dc:creator>GeraldGEmerick</dc:creator>
      <dc:date>2025-09-20T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate percentage of column total?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4833068#M184598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578282" data-lia-user-login="sarthakgirdhar" class="lia-mention lia-mention-user"&gt;sarthakgirdhar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1338394" data-lia-user-login="GeraldGEmerick" class="lia-mention lia-mention-user"&gt;GeraldGEmerick&lt;/a&gt; Thank you for your prompt response.&lt;/P&gt;
&lt;P&gt;I'm glad your issue has been resolved. Please mark the helpful reply or your own response as the solution so it can assist others with similar issues.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 07:16:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-percentage-of-column-total/m-p/4833068#M184598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-09-23T07:16:38Z</dc:date>
    </item>
  </channel>
</rss>

