Services

Technologies

Industries

About Us

Our Work - Case Studies

Using QUOTIENT and MOD in Power BI

Quotient and Mod in Power BI

From Warehouse to Dashboard 

Ever tried to calculate how many full pallets you can fill with boxes, and how many are left over?

The key solution to this is by using QUOTIENT() and MOD() in Power BI to break down totals into usable units. 

By calculating this it can help multiple areas, such as inventory planning, logistics, and operational efficiency. 


Case Scenario:

For instance, you have a business which is operates in the logistics industry:

  •  You have a total number of boxes 
  •  Each pallet holds a fixed number of boxes 

You want to calculate:

  • Number of full pallets 
  • Number of leftover boxes 

Example: 1,250 boxes, 48 boxes per pallet 

Shipment IDProductTotal BoxesBoxes per Pallet
S001Widget A125048

Step by Step walkthrough of quotient and MOD in Power BI

If you want to follow along with this example, start with this dataset

Shipment IDProductTotal BoxesBoxes per Pallet
S001Widget A125048
S002Widget B96060
S003Widget C100550
S004Widget D230072
S005Widget E87540

Step 1: Using the data provided (or your own dataset), select ‘enter data’ on Power BI and paste this into the table

Step 2: Create a calculated column or measure for

FullPallets = 

   QUOTIENT([TotalBoxes],[BoxesPerPallet])

Copy and paste this DAX into Power BI

Shipment IDProductTotal BoxesBoxes per PalletFull Pallets
S001Widget A12504826
S002Widget B9606016
S003Widget C10055020
S004Widget D23007231
S005Widget E8754021

Step 3: Create another calculated column or measure for

LeftoverBoxes = 

   MOD([TotalBoxes],[BoxesPerPallet])

Copy and paste this DAX into Power BI

Shipment IDProductTotal BoxesBoxes per PalletFull PalletsLeftover Boxes
S001Widget A125048262
S002Widget B96060160
S003Widget C100550205
S004Widget D2300723168
S005Widget E875402135

Step 4: Add visuals: KPI cards, matrix or bar charts

Power BI Dashboard Example:

Example of visuals that can use using quotient and mod

Adding visuals to the dashboard such as KPI Cards, bar chart and a matrix can provide clearer insights for businesses.

Why It Works?

  •  Operational Insight: Helps warehouse teams plan shipments, assigning delivery slots or rotating shifts
  •  Business Impact: Reduces overpacking, improves space utilisation
  •  These functions are fast, intuitive, and easy to explain to non-technical user

Other Use Cases:

  •  Packaging – Units per container
  • Time Tracking – Hours and minutes
  •  Budgeting – Full payments vs remainder 


Final Thoughts: Small Functions, Big Impact

Why not test this with your own data and let us know how you get on.

If you have any questions on this or any other topics, please get in touch.

From setup to storytelling—our Power BI guides are written for real users, not just analysts. Learn what works, and why

Power BI Archives – Select Distinct

Struggling with reporting, migration, or BI strategy? Our Power BI consultants offer hands-on help and flexible packages tailored to your business.

Power BI Consultant UK – Free Strategy Call with Microsoft Experts