<?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: Problem with table totals in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Problem-with-table-totals/m-p/2925811#M39934</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/476549"&gt;@grojnak&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did you mean to use measure formula to calculate with multiple aggregations? If that is the case, I'd like to suggest you take a look at the Greg’s blog about measure with multiple aggregations:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_self"&gt;Measure Totals, The Final Word&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 02:57:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-24T02:57:27Z</dc:date>
    <item>
      <title>Problem with table totals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-with-table-totals/m-p/2925358#M39930</link>
      <description>&lt;P&gt;Hi there. I am new here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm writing here because I am having a common issue, according to what I could see. The totals in a table. First of all, I want to expain the data. We are counting products we sold. Our schema is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 194px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/828669iB858FF28058157CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We have the ID number of the sell and, as columns, the producs sold. This is working fine, but when we try to make a table in PBI we have an issue with the totals:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 205px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/828671iF19D1720123E6A1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, the total is 3253, but that same table exported to Excel gives another result (3079). this is the correct result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 488px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/828672iE51C78AFD2726269/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure that the issue is in the measures used to calculate that total in PBI. These are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Total sells = DISTINCTCOUNTNOBLANK( 'Table'[ID_sell] )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the one I am using in the table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Total products sold = IF(HASONEVALUE(Table[products]),[Total sells],SUMX('Table',[Total sells]))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The individual total of each product is OK, but not the total. Can you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 20:56:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-with-table-totals/m-p/2925358#M39930</guid>
      <dc:creator>grojnak</dc:creator>
      <dc:date>2022-11-23T20:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with table totals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-with-table-totals/m-p/2925811#M39934</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/476549"&gt;@grojnak&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did you mean to use measure formula to calculate with multiple aggregations? If that is the case, I'd like to suggest you take a look at the Greg’s blog about measure with multiple aggregations:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_self"&gt;Measure Totals, The Final Word&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 02:57:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-with-table-totals/m-p/2925811#M39934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-24T02:57:27Z</dc:date>
    </item>
  </channel>
</rss>

