<?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 Total is not correct in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2998833#M101152</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the information, unfortunately I cant seem to get that to work. I have two different tables that I am pulling data from. I have included screen shots of what data I am pulling from each table. One is WIP_DTL_HIST and the other is INV_MSTR. I am not sure how to break down the date information asw it is all one in the table .&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 14:46:48 GMT</pubDate>
    <dc:creator>iwuvwoo79</dc:creator>
    <dc:date>2023-01-03T14:46:48Z</dc:date>
    <item>
      <title>Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984545#M100110</link>
      <description>&lt;P&gt;I have a calculation&amp;nbsp;in my table to times the engineering scrap by the parts produced. When I do this, the total (for this example) is showing 4,336,023.7751. But when I export the data, it is showing 66,372.34 (which is the correct amount). I went through line by line in the table just to make sure all data was exported, each line is there and there are no additional&amp;nbsp;lines or quantities.&amp;nbsp;&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;my dax is as follows:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calculation = &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;V_INV_MSTR&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;V_INV_MSTR&lt;/SPAN&gt;&lt;SPAN&gt;[Custom]&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;V_WIP_DTL_HIST&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;V_WIP_DTL_HIST&lt;/SPAN&gt;&lt;SPAN&gt;[Qty Comp Calc]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Qty Comp Calc = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(V_WIP_DTL_HIST[RVRS_CODE]=&lt;/SPAN&gt;&lt;SPAN&gt;"R"&lt;/SPAN&gt;&lt;SPAN&gt;,V_WIP_DTL_HIST[QTY_COMPL]*-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,[QTY_COMPL])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong or have set as a wrong setting????&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984545#M100110</guid>
      <dc:creator>iwuvwoo79</dc:creator>
      <dc:date>2022-12-22T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984570#M100111</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;Power BI totals matrices in an unintuitive way. Many times the problem you described can be solved by using SUMX() instead of SUM(). You can read more about it in this article:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/summing-values-for-the-total/" target="_blank"&gt;Summing values for the total - SQLBI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;See if that makes sense, and if it doesn't you can try and share some data and the calculation you want to so we can look further into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984570#M100111</guid>
      <dc:creator>TomasAndersson</dc:creator>
      <dc:date>2022-12-22T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984581#M100112</link>
      <description>&lt;P&gt;Thank you so much for the quick response. I actually just added the measure data that I am using for that field. I am currently using SUMX as each row is for a different part number at a different plant on a different shift. (I apologoize... I have only been using Power BI for a month)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:55:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984581#M100112</guid>
      <dc:creator>iwuvwoo79</dc:creator>
      <dc:date>2022-12-22T14:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984604#M100114</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="485933" data-lia-user-login="iwuvwoo79" class="lia-mention lia-mention-user"&gt;iwuvwoo79&lt;/a&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 15:07:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984604#M100114</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-12-22T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984731#M100124</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how would I change this statement to include the updated directions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;V_INV_MSTR&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;V_INV_MSTR&lt;/SPAN&gt;&lt;SPAN&gt;[Custom]&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;V_WIP_DTL_HIST&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;V_WIP_DTL_HIST&lt;/SPAN&gt;&lt;SPAN&gt;[Qty Comp Calc]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Dec 2022 17:48:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2984731#M100124</guid>
      <dc:creator>iwuvwoo79</dc:creator>
      <dc:date>2022-12-22T17:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2985019#M100138</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="485933" data-lia-user-login="iwuvwoo79" class="lia-mention lia-mention-user"&gt;iwuvwoo79&lt;/a&gt;&amp;nbsp;OK, so you start with that Measure and create this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calculation =
  IF(
     HASONEVALUE('Table'[Month]),
     [Measure],
     SUMX
       SUMMARIZE('Table',[Year],[Month],[Day],[Shift],[Part No],[Loc],"__Measure",[Measure]),
       [__Measure]
     )
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:42:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2985019#M100138</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-12-22T18:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2985862#M100204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/468710" target="_blank"&gt;@tomsmith213&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create&amp;nbsp;&lt;STRONG&gt;another new measure&lt;/STRONG&gt;&amp;nbsp;as below and put this new measure to&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;replace&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;the original measure&amp;nbsp;&lt;STRONG&gt;[&lt;SPAN&gt;Calculation&lt;/SPAN&gt;]&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;onto the table visual...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Measure =
SUMX (
    GROUPBY (
        'V_INV_MSTR',
        'V_INV_MSTR'[Year],
        'V_INV_MSTR'[Month],
        'V_INV_MSTR'[Day],
        'V_INV_MSTR'[Shift],
        'V_INV_MSTR'[Part Number],
        'V_INV_MSTR'[Loc]
    ),
    [Calculation]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, you can refer the following links to try to solve your problem...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRii_6qkLNh8&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cc07340e98cdc4c049cc708da85ad0a16%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637969275518231092%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=sllOPElQkaqNE9rZJ%2BSoa5CwiBe%2B5dKX82yZXHC1LYg%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKa7Ds4EAjNQ&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cc07340e98cdc4c049cc708da85ad0a16%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637969275518231092%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=nMcFp5Gp2TDaRdU7BMHy7Td528EaRtr1IrqN%2BOdQboA%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;Dax for Power BI: Fixing Incorrect Measure Totals&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above ones can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables(&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/EM&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;format, the visual &lt;STRONG&gt;Fields&lt;/STRONG&gt; settings and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7C52042a9abdcb4f87992108da9226a782%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637982991998684943%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=UtrFZ3zCvCcIHUi%2FVD3ptir0IqV85%2BozKiH9HbdDJHc%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 07:29:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2985862#M100204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-23T07:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total is not correct</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2998833#M101152</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the information, unfortunately I cant seem to get that to work. I have two different tables that I am pulling data from. I have included screen shots of what data I am pulling from each table. One is WIP_DTL_HIST and the other is INV_MSTR. I am not sure how to break down the date information asw it is all one in the table .&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 14:46:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-is-not-correct/m-p/2998833#M101152</guid>
      <dc:creator>iwuvwoo79</dc:creator>
      <dc:date>2023-01-03T14:46:48Z</dc:date>
    </item>
  </channel>
</rss>

