<?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: SUM grand total per category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-grand-total-per-category/m-p/2979876#M99874</link>
    <description>&lt;P&gt;Thank you so much!!!&lt;/P&gt;&lt;P&gt;It worked perfectly!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 19:22:38 GMT</pubDate>
    <dc:creator>marina_oliveira</dc:creator>
    <dc:date>2022-12-20T19:22:38Z</dc:date>
    <item>
      <title>SUM grand total per category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-grand-total-per-category/m-p/2979021#M99829</link>
      <description>&lt;P&gt;Hello everyone!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am new to Dax and am guessing the solution is right under my nose, but I've exhausted my limited knowledge and need some guidance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have category (location) and subcategory (centers).&amp;nbsp;&lt;/P&gt;&lt;P&gt;A location can have more than one center.&lt;/P&gt;&lt;P&gt;My dimension table Unidades uses the subcategory as primary key, since they aren't duplicate.&lt;/P&gt;&lt;P&gt;There's also a fact table containing the amount of extra hours (R$) per location (category).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I put the information on a visual it repeats the corresponding overtime for every center according to its location. That's OK. My problem is that I need to add up the grand total of overtime hours, but my measure is adding the overtime for each center and not the location, wich means it adds duplicate values. How do I get the correct sum?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 12:41:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-grand-total-per-category/m-p/2979021#M99829</guid>
      <dc:creator>marina_oliveira</dc:creator>
      <dc:date>2022-12-20T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: SUM grand total per category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-grand-total-per-category/m-p/2979118#M99834</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="462237" data-lia-user-login="marina_oliveira" class="lia-mention lia-mention-user"&gt;marina_oliveira&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sumx(summarize(Fact, Dim[Location], Fact[Hora]), [Hora])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sumx(values(Dim[Location]), calculate(Max(Fact[Hora])) )&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 13:29:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-grand-total-per-category/m-p/2979118#M99834</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-20T13:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUM grand total per category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-grand-total-per-category/m-p/2979876#M99874</link>
      <description>&lt;P&gt;Thank you so much!!!&lt;/P&gt;&lt;P&gt;It worked perfectly!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 19:22:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-grand-total-per-category/m-p/2979876#M99874</guid>
      <dc:creator>marina_oliveira</dc:creator>
      <dc:date>2022-12-20T19:22:38Z</dc:date>
    </item>
  </channel>
</rss>

