<?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 MROUND in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND/m-p/1833709#M39005</link>
    <description>&lt;P&gt;I'm using MROUND to assist in preparing a purchase forecast to give to a supplier based upon our sales forecast and their minimum order quantity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The basic dax for my column is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF( Column A = "parameter X", MROUND( [forecasted sales units], [minimum order quantity] ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is a remark for MROUND:&amp;nbsp;&lt;SPAN&gt;MROUND rounds up, away from zero, if the remainder of dividing&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;number&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;by the specified&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;multiple&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is greater than or equal to half the value of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;multiple&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, let's say the forecasted sales units = 4 per month and the minimum order quantity = 9.&amp;nbsp; The dax is rounding down based upon the remark but I would prefer it to always round up to the multiple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to basically combine MROUND (for the multiple) and ROUNDUP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 12:49:19 GMT</pubDate>
    <dc:creator>funklordofusa</dc:creator>
    <dc:date>2021-05-10T12:49:19Z</dc:date>
    <item>
      <title>MROUND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND/m-p/1833709#M39005</link>
      <description>&lt;P&gt;I'm using MROUND to assist in preparing a purchase forecast to give to a supplier based upon our sales forecast and their minimum order quantity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The basic dax for my column is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF( Column A = "parameter X", MROUND( [forecasted sales units], [minimum order quantity] ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is a remark for MROUND:&amp;nbsp;&lt;SPAN&gt;MROUND rounds up, away from zero, if the remainder of dividing&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;number&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;by the specified&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;multiple&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is greater than or equal to half the value of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;multiple&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, let's say the forecasted sales units = 4 per month and the minimum order quantity = 9.&amp;nbsp; The dax is rounding down based upon the remark but I would prefer it to always round up to the multiple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to basically combine MROUND (for the multiple) and ROUNDUP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:49:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND/m-p/1833709#M39005</guid>
      <dc:creator>funklordofusa</dc:creator>
      <dc:date>2021-05-10T12:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND/m-p/1834582#M39041</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="50323" data-lia-user-login="funklordofusa" class="lia-mention lia-mention-user"&gt;funklordofusa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to use the CEILING function for this purpose:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CEILING ( [forecasted sales units], [minimum order quantity] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 22:19:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND/m-p/1834582#M39041</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2021-05-10T22:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: MROUND</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND/m-p/1834592#M39042</link>
      <description>&lt;P&gt;Perfect, Owen.&amp;nbsp; This is exactly the dax I was looking for.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 22:45:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MROUND/m-p/1834592#M39042</guid>
      <dc:creator>funklordofusa</dc:creator>
      <dc:date>2021-05-10T22:45:47Z</dc:date>
    </item>
  </channel>
</rss>

