<?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 rounded numbers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4610371#M176482</link>
    <description>&lt;P&gt;You need to force the total to work out the rounding at the factory level. You can do that with something like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Round Up =
SUMX ( VALUES ( 'Table'[Factory] ), ROUNDUP ( [Total HC] * 5 / 100, 0 ) )
&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 14 Mar 2025 14:10:22 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2025-03-14T14:10:22Z</dc:date>
    <item>
      <title>SUM rounded numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4610227#M176473</link>
      <description>&lt;P&gt;I need to adjust my pwd calculation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By law here in my country, factories need 5% of employees to be pwd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until then the formula below was working normally, and everyone was happy:&lt;/P&gt;&lt;P&gt;PWD HC Goal = [Total HC] *5/100&lt;/P&gt;&lt;P&gt;[Total HC] is a simple COUNTROWS from the employee table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, I've been told that fractions should always be rounded up, and this is causing a problem in the formula when we try to see the grand total.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Factory&lt;/TD&gt;&lt;TD&gt;Total HC&lt;/TD&gt;&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&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;167&lt;/TD&gt;&lt;TD&gt;8,35&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;992&lt;/TD&gt;&lt;TD&gt;49,6&lt;/TD&gt;&lt;TD&gt;53&lt;/TD&gt;&lt;TD&gt;SUM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;RoundUP&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each factory, the formula PWD HC Goal = ROUNDUP([Total HC] *5/100,0) works.&lt;/P&gt;&lt;P&gt;However, if I try to see the total, the final number is not the sum of the rounded numbers, but the rounding of the summed numbers.&amp;nbsp;Which logically makes sense, but it's not what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I adjust this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:45:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4610227#M176473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-14T12:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: SUM rounded numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4610239#M176474</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;PWD HC Goal = &lt;BR /&gt;SUMX(&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;'EmployeeTable',&lt;BR /&gt;"RoundedPWDGoal", ROUNDUP([Total HC] * 5 / 100, 0)&lt;BR /&gt;),&lt;BR /&gt;[RoundedPWDGoal]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:50:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4610239#M176474</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-14T12:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: SUM rounded numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4610371#M176482</link>
      <description>&lt;P&gt;You need to force the total to work out the rounding at the factory level. You can do that with something like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Round Up =
SUMX ( VALUES ( 'Table'[Factory] ), ROUNDUP ( [Total HC] * 5 / 100, 0 ) )
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Mar 2025 14:10:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4610371#M176482</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-03-14T14:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: SUM rounded numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4649666#M177987</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;Just wanted to check if you had a chance to review the solutions provided by the super users?&lt;BR /&gt;If the reponses had addressed your query, please &lt;STRONG&gt;accept as solution&lt;/STRONG&gt; or give &lt;STRONG&gt;Kudos&lt;/STRONG&gt; so that other users can benefit from it.&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 11:43:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4649666#M177987</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-04-12T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: SUM rounded numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4659846#M178435</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/384198" target="_blank"&gt;@gdps_vc&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you had a chance to review the solutions provided by the super users?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the reponses had addressed your query, please&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accept as solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;or give&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;so that other users can benefit from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 10:10:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4659846#M178435</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-04-20T10:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUM rounded numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4678802#M179206</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/384198" target="_blank" rel="noopener"&gt;@gdps_vc&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you had a chance to review the solutions provided by the super users?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the reponses had addressed your query, please&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accept as solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;or give&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;so that other users can benefit from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 08:33:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-rounded-numbers/m-p/4678802#M179206</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-04T08:33:16Z</dc:date>
    </item>
  </channel>
</rss>

