<?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 ROUNDUP in SQL in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDUP-in-SQL/m-p/830230#M5973</link>
    <description>&lt;P&gt;Hi, I've used ROUNDUP in my report as per the requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalPoints = IF(sum(Points)&amp;gt; 0.1 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, FORMAT(ROUND(SUM(Points),1),"0.0")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, FORMAT(ROUNDUP(sum(Points),2),"0.00")) -- If less than 0.1, ex: 0.001, I want 0.01&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;am getting desired output in the report as user requested. Now am in the process writing test cases using SQL for validation and not able to re-produce the same output using SQL.&amp;nbsp; what is the equivalent of ROUNDUP in SQL?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;CEILING is always rounding to nearest WholeNumber -- giving me 1.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CAST(Points as decimal(16,2)) --- is giving me 0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CAST(Points as decimal(16,3)) --- is giving me 0.002&amp;nbsp; - 3 Decimals (i want only 2 decimals).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Please help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 28 Oct 2019 16:12:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-28T16:12:04Z</dc:date>
    <item>
      <title>ROUNDUP in SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDUP-in-SQL/m-p/830230#M5973</link>
      <description>&lt;P&gt;Hi, I've used ROUNDUP in my report as per the requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalPoints = IF(sum(Points)&amp;gt; 0.1 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, FORMAT(ROUND(SUM(Points),1),"0.0")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, FORMAT(ROUNDUP(sum(Points),2),"0.00")) -- If less than 0.1, ex: 0.001, I want 0.01&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;am getting desired output in the report as user requested. Now am in the process writing test cases using SQL for validation and not able to re-produce the same output using SQL.&amp;nbsp; what is the equivalent of ROUNDUP in SQL?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;CEILING is always rounding to nearest WholeNumber -- giving me 1.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CAST(Points as decimal(16,2)) --- is giving me 0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CAST(Points as decimal(16,3)) --- is giving me 0.002&amp;nbsp; - 3 Decimals (i want only 2 decimals).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Please help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDUP-in-SQL/m-p/830230#M5973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: ROUNDUP in SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDUP-in-SQL/m-p/830842#M5996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you will need to have this question posted in a SQL msdn Forum. But, Have you tried using ROUND() Function? The below is the link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/sql/t-sql/functions/round-transact-sql?view=sql-server-ver15" target="_blank"&gt;https://docs.microsoft.com/en-us/sql/t-sql/functions/round-transact-sql?view=sql-server-ver15&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Vignesh M&lt;BR /&gt;&lt;BR /&gt;If what I suggested worked for you feel free to Drop a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" and Consider to "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" if I solved your Issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 05:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDUP-in-SQL/m-p/830842#M5996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-29T05:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: ROUNDUP in SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDUP-in-SQL/m-p/834482#M6119</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; yes, I posted in SQL community also.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still no luck.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 23:48:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ROUNDUP-in-SQL/m-p/834482#M6119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-31T23:48:26Z</dc:date>
    </item>
  </channel>
</rss>

