<?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: Measure to Sum specific rows and the subtotal/grand total to still display the Actual Total Sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Sum-specific-rows-and-the-subtotal-grand-total-to/m-p/1445768#M27093</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="35959" data-lia-user-login="BILearner" class="lia-mention lia-mention-user"&gt;BILearner&lt;/a&gt; , you have to use isinscope and isfiltered to get correct subtotal and grand totals &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/" target="_blank"&gt;https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/" target="_blank"&gt;https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 01:33:54 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-10-21T01:33:54Z</dc:date>
    <item>
      <title>Measure to Sum specific rows and the subtotal/grand total to still display the Actual Total Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Sum-specific-rows-and-the-subtotal-grand-total-to/m-p/1445622#M27089</link>
      <description>&lt;P&gt;Hi Power BI Community,&lt;BR /&gt;&lt;BR /&gt;I have a table displayed like below, with column definitions as follows.&lt;BR /&gt;&lt;BR /&gt;Tot Sales = Sum(Sales)&lt;BR /&gt;My Formula = Is my attempt to get the expected result.&lt;BR /&gt;Expected Result = How I want the calculation to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Here is the DAX I wrote&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SUMX(SUMMARIZE(SalesFact,'Territory'[Territory ID],'Product'[Sales Role]),IF('Product'[Sales Role]="Cat 1 Rep",CALCULATE([Total Sales],'Product'[Cat 1 Product]="YES",ALL('Product')),IF('Product'[Sales Role]="Cat 2 Rep",CALCULATE([Total Sales],'Product'[Cat 2 Rep Product]="YES"),CALCULATE([Total Sales],'Product'[Cat 3 Rep Product]="YES"))))&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;The above formula gives me the expected result against the Cat 1 Rep row, but fails to get the expected sub total and grand total.&amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The field "Cat 1 Rep Product" in above formula is a flag which identifies products from product table that fall into Cat 1.&lt;BR /&gt;"Cat 2 Rep Product" and "Cat 3 Rep Product" are similar columns.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;What I want is - Sum the results for Cat 1 Rep row and Cat 2 Rep row and display it against the Cat 1 rep, other rows shouldn't be impacted. Also, I do not want this manipulation to impact the Column subtotal or grand total and should display the actual total that is (Cat 1 Rep Product + Cat 2 Rep Product + Cat 3 Rep Product) and&lt;BR /&gt;NOT ( (Cat 1 Rep Product + Cat 2 Rep Product) + Cat 2 Rep Product + Cat 3 Rep Product).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this possible?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you all!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 21:54:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Sum-specific-rows-and-the-subtotal-grand-total-to/m-p/1445622#M27089</guid>
      <dc:creator>BILearner</dc:creator>
      <dc:date>2020-10-20T21:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to Sum specific rows and the subtotal/grand total to still display the Actual Total Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Sum-specific-rows-and-the-subtotal-grand-total-to/m-p/1445768#M27093</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="35959" data-lia-user-login="BILearner" class="lia-mention lia-mention-user"&gt;BILearner&lt;/a&gt; , you have to use isinscope and isfiltered to get correct subtotal and grand totals &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/" target="_blank"&gt;https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/" target="_blank"&gt;https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 01:33:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Sum-specific-rows-and-the-subtotal-grand-total-to/m-p/1445768#M27093</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-21T01:33:54Z</dc:date>
    </item>
  </channel>
</rss>

