<?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: Need Urgent HELP! on DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3813762#M149150</link>
    <description>&lt;P&gt;SubTotal = CALCULATE([Population], ALL(YourStateTable))&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 13:40:46 GMT</pubDate>
    <dc:creator>lukiz84</dc:creator>
    <dc:date>2024-04-05T13:40:46Z</dc:date>
    <item>
      <title>Need Urgent HELP! on DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3813241#M149138</link>
      <description>&lt;P&gt;Dear All,&lt;BR /&gt;&lt;BR /&gt;I want to show the sub total in a separate column in the matrix visual as shown in the screenshot.&amp;nbsp;&lt;BR /&gt;Population is a measure, not a direct column from the database.&amp;nbsp;&lt;BR /&gt;NOTE: Country is from different table and State is from different table.&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Same State Name will be there in different countries&lt;BR /&gt;&lt;BR /&gt;Can someone please help me around with this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&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;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 11:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3813241#M149138</guid>
      <dc:creator>Newbie12345</dc:creator>
      <dc:date>2024-04-05T11:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need Urgent HELP! on DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3813762#M149150</link>
      <description>&lt;P&gt;SubTotal = CALCULATE([Population], ALL(YourStateTable))&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 13:40:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3813762#M149150</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2024-04-05T13:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need Urgent HELP! on DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3814813#M149211</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299202" data-lia-user-login="lukiz84" class="lia-mention lia-mention-user"&gt;lukiz84&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response!&amp;nbsp;&lt;BR /&gt;The problem here is, I have same state name in other countries too, so we can not use ALL,&amp;nbsp;&lt;BR /&gt;I tries ALLEXCEP as well but since it is a matrix, it is giving row level value along with subtotal.&amp;nbsp;&lt;BR /&gt;Want I am trying to get here is, only Subtotal like a merged single value (as shown in the screenshot above)&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 06:00:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3814813#M149211</guid>
      <dc:creator>Newbie12345</dc:creator>
      <dc:date>2024-04-06T06:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need Urgent HELP! on DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3815005#M149213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601759" data-lia-user-login="Newbie12345" class="lia-mention lia-mention-user"&gt;Newbie12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure you can make a matrix column appear to be a Excel merged column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your measure, would this help?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Subtotal = 
    IF(
        NOT HASONEVALUE( 'Table'[State] ),
        CALCULATE(
            SUM( 'Table'[Population] ),
            REMOVEFILTERS( 'Table'[State] )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 07:51:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3815005#M149213</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-04-06T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need Urgent HELP! on DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3817864#M149307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601759" data-lia-user-login="Newbie12345" class="lia-mention lia-mention-user"&gt;Newbie12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426215" data-lia-user-login="gmsamborn" class="lia-mention lia-mention-user"&gt;gmsamborn&lt;/a&gt;&amp;nbsp;Thank you very much for your prompt reply, and here allow me to make some comments of my own.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI does not inherently support displaying subtotals in separate columns within the same matrix. However, you can create a separate visual to show totals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, here is the method I provided:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check to see if there is a relationship between the "Country" and "State" tables in the model. If not, make sure there is a public key that links these tables directly or indirectly.&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;Since you mentioned that "Population" is a metric and not a direct column, you will need to create a metric using DAX to correctly calculate subtotals for different states and countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sub Total = 
SUMX(
    FILTER(
        'Country / State', 
        'Country / State'[Country] = MAX('Country / State'[Country])
    ), 
    'Country / State'[Measure Population]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a card for displaying Sub Total.&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;Also used in conjunction with the slicer for showing population totals under different countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 06:11:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Urgent-HELP-on-DAX/m-p/3817864#M149307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-08T06:11:32Z</dc:date>
    </item>
  </channel>
</rss>

