<?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: SUMX Incorrect Values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2980069#M99882</link>
    <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451586" data-lia-user-login="Euro0681" class="lia-mention lia-mention-user"&gt;Euro0681&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you show the code for measure 1?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 21:09:54 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2022-12-20T21:09:54Z</dc:date>
    <item>
      <title>SUMX Incorrect Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2979922#M99877</link>
      <description>&lt;P&gt;I Have created a Measure (Measure 1) and then created another measure (Measure 2) to try and correct the totals and it's giving wrong values at a row level causing the total to be wrong as well.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Column = Sales Amount from Table&lt;BR /&gt;Rate = Column from Table&amp;nbsp;&lt;BR /&gt;Measure 1 = Column * Rate&lt;BR /&gt;Measure 2 = SUMX( 'Table', [Measure 1] )&lt;BR /&gt;&lt;BR /&gt;Measure 2 is incorrect on row level causing total to be incorrect?? any suggestions?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 20:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2979922#M99877</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-12-20T20:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Incorrect Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2979934#M99879</link>
      <description>&lt;P&gt;Try SUM() instead of SUMX()&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 20:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2979934#M99879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-20T20:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Incorrect Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2979970#M99880</link>
      <description>&lt;P&gt;I cant use SUM to sum up a measure.. EXAMPLE: SUM([Measure 1])&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 20:31:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2979970#M99880</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-12-20T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Incorrect Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2980069#M99882</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451586" data-lia-user-login="Euro0681" class="lia-mention lia-mention-user"&gt;Euro0681&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you show the code for measure 1?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 21:09:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2980069#M99882</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-20T21:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Incorrect Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2980574#M99906</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451586" data-lia-user-login="Euro0681" class="lia-mention lia-mention-user"&gt;Euro0681&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;P&gt;If you want to display Total at the end, you can use the following function:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2 =
var _table1=SUMMARIZE('Table', 'Table'[Column],"Value",[Measure1])
return
IF(
    HASONEVALUE('Table'[Column] ),
    [Measure1],SUMX(_table1,[Value]))&lt;/LI-CODE&gt;
&lt;P&gt;If you want to display Total in full, you can use the following function:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 3 = SUMX(ALL('Table'),[Measure1])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 03:15:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Incorrect-Values/m-p/2980574#M99906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-21T03:15:38Z</dc:date>
    </item>
  </channel>
</rss>

