Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
funklordofusa
Helper I
Helper I

MROUND

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.

 

The basic dax for my column is: 

     IF( Column A = "parameter X", MROUND( [forecasted sales units], [minimum order quantity] ) )

 

However, there is a remark for MROUND: MROUND rounds up, away from zero, if the remainder of dividing number by the specified multiple is greater than or equal to half the value of multiple.

 

In my case, let's say the forecasted sales units = 4 per month and the minimum order quantity = 9.  The dax is rounding down based upon the remark but I would prefer it to always round up to the multiple.

 

Is it possible to basically combine MROUND (for the multiple) and ROUNDUP?

 

Thanks,

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @funklordofusa 

You should be able to use the CEILING function for this purpose:

CEILING ( [forecasted sales units], [minimum order quantity] )

 

Regards,

Owen

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi @funklordofusa 

You should be able to use the CEILING function for this purpose:

CEILING ( [forecasted sales units], [minimum order quantity] )

 

Regards,

Owen

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Perfect, Owen.  This is exactly the dax I was looking for.

Thanks!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.