Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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,
Solved! Go to Solution.
You should be able to use the CEILING function for this purpose:
CEILING ( [forecasted sales units], [minimum order quantity] )
Regards,
Owen
You should be able to use the CEILING function for this purpose:
CEILING ( [forecasted sales units], [minimum order quantity] )
Regards,
Owen
Perfect, Owen. This is exactly the dax I was looking for.
Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 6 | |
| 6 |