<?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 issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3094960#M108549</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445711" data-lia-user-login="Allan_Zeng" class="lia-mention lia-mention-user"&gt;Allan_Zeng&lt;/a&gt;&amp;nbsp; have you tried to format the column with zero decimal places&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 09:25:40 GMT</pubDate>
    <dc:creator>Uspace87</dc:creator>
    <dc:date>2023-02-23T09:25:40Z</dc:date>
    <item>
      <title>Sum Total issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3094844#M108536</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I met an issue about sum need your support.&lt;/P&gt;&lt;P&gt;The data as below(Data is from database, and original data type is float):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Their total shows as below instead of 0.&amp;nbsp;and below result will be treated as &amp;lt;0 but not =0.&lt;/P&gt;&lt;P&gt;May I know how to settle to show the sum as 0?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&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>Thu, 23 Feb 2023 08:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3094844#M108536</guid>
      <dc:creator>Allan_Zeng</dc:creator>
      <dc:date>2023-02-23T08:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3094949#M108547</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue could be caused by floating-point precision errors. When adding or subtracting numbers with many decimal places, the result may not be exactly what you expect due to the limited precision of floating-point numbers.&lt;/P&gt;&lt;P&gt;To fix this issue, you can use the ROUND function to round the numbers to a certain number of decimal places before summing them. For example, if you want to round the numbers to two decimal places, you can use the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Total = ROUND(SUM('&lt;SPAN class=""&gt;Table&lt;/SPAN&gt;'&lt;SPAN class=""&gt;[Value]&lt;/SPAN&gt;), &lt;SPAN class=""&gt;2&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This will round each number in the "Value" column to two decimal places before summing them, which should eliminate any floating-point precision errors.&lt;/P&gt;&lt;P&gt;Alternatively, you can use the DECIMAL function to convert the numbers to a fixed-point decimal format with a specific number of decimal places. For example, if you want to use four decimal places, you can use the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Total &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(&lt;SPAN class=""&gt;DECIMAL&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'Table'&lt;/SPAN&gt;[&lt;SPAN class=""&gt;Value&lt;/SPAN&gt;], &lt;SPAN class=""&gt;18&lt;/SPAN&gt;, &lt;SPAN class=""&gt;4&lt;/SPAN&gt;))&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This will convert each number in the "Value" column to a fixed-point decimal format with 18 total digits and 4 decimal places, and then sum them. This should also eliminate any floating-point precision errors.&lt;/P&gt;&lt;P&gt;I hope this helps! Let me know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:20:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3094949#M108547</guid>
      <dc:creator>MAwwad</dc:creator>
      <dc:date>2023-02-23T09:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3094960#M108549</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445711" data-lia-user-login="Allan_Zeng" class="lia-mention lia-mention-user"&gt;Allan_Zeng&lt;/a&gt;&amp;nbsp; have you tried to format the column with zero decimal places&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3094960#M108549</guid>
      <dc:creator>Uspace87</dc:creator>
      <dc:date>2023-02-23T09:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3105129#M109364</link>
      <description>&lt;P&gt;Thank you for your solution!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The fomular Total = ROUND(SUM('&lt;/SPAN&gt;&lt;SPAN class=""&gt;Table&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;) can fix the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While the following fomular shown below error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Total&amp;nbsp;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(&lt;SPAN class=""&gt;DECIMAL&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'Table'&lt;/SPAN&gt;[&lt;SPAN class=""&gt;Value&lt;/SPAN&gt;],&amp;nbsp;&lt;SPAN class=""&gt;18&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class=""&gt;4&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I found change the data type as "Fixed decimal number" can also fix the issue.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 02:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3105129#M109364</guid>
      <dc:creator>Allan_Zeng</dc:creator>
      <dc:date>2023-03-01T02:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3105134#M109365</link>
      <description>&lt;P&gt;Thank you for your reminder.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found change the data type as "Fixed decimal number" can also fix the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 02:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Total-issue/m-p/3105134#M109365</guid>
      <dc:creator>Allan_Zeng</dc:creator>
      <dc:date>2023-03-01T02:39:46Z</dc:date>
    </item>
  </channel>
</rss>

