DP-700 Fact Table Grain: Order Lines and Shipping Charges
Choose the fact table grain for a Fabric sales model. Work through an order-line example that double-counts shipping, then try the matching DP-700 sample.
Use one row per order line when reports need product-level sales. A shipping charge billed once per order belongs at order grain. Keep it in an order-level fact for order totals, or allocate it to lines under a business-approved rule when reports need shipping by product. Copying the entire charge to every line overstates shipping totals.
Write down what one fact row represents
A source export can include order number, line number, product description, customer name, line revenue and order shipping on every row. In the warehouse, declare the sales fact grain as one row per source order line. In this single-source example, order number plus line number identifies the business event. The order number alone cannot identify multiple lines.
Keep consistently defined product and customer attributes in their dimensions. Store dimension keys and line-level measures in the sales fact. A repeated header charge can look numeric and additive in the input file, yet its business event is still the order. Name that grain separately before choosing where to store it.
Source: Microsoft Learn: dimensional modeling fact tables in Fabric Warehouse ↗
Work through two orders with three lines
Order 101 contains a monitor and a stand. It has a $12 shipping charge. Order 102 has one cable and a $6 shipping charge. The source repeats order 101’s charge on both lines. Summing all source rows yields $30, which overstates the invoiced total of $18 by $12.
If the finance report only needs shipping by order, load 101 → $12 and 102 → $6 into an order-level shipping fact. Check that all source rows for each order agree on its charge before consolidating. Two different orders can legitimately pay the same amount, so deduplicating by charge value can drop valid orders.
| Order / line | Product | Line revenue | Shipping in export |
|---|---|---|---|
| 101 / 1 | Monitor | $80 | $12 |
| 101 / 2 | Stand | $40 | $12 |
| 102 / 1 | Cable | $30 | $6 |
Source: Microsoft Learn: dimensional modeling fact tables in Fabric Warehouse ↗
Allocate shipping when the report needs product totals
Suppose finance approves allocating shipping in proportion to positive line revenue for this feed. Order 101 has $120 of line revenue. Its $80 monitor receives $8 of shipping and its $40 stand receives $4. The sole line on order 102 receives $6. The three line allocations sum to $18, matching the two header charges.
Build the check around two invariants. Each source order line appears once in the sales fact, and the allocated amounts sum to the header charge for every order. If cents do not divide evenly, use a documented residual rule to make the rounded line values add back to the billed amount. Ask finance for a rule for zero-value orders and refunds before applying the same calculation to them.
Source: Kimball Group: allocated facts ↗
DP-700 practice question with explained options
A product manager needs revenue and shipping by SKU. Order shipping is available only at header grain. Finance approves the proportional rule. Which design meets both requirements?
A. Add the whole shipping charge to each order line. B. Load one row per order and join to any product on that order. C. Keep the sales fact at order-line grain and store a reconciled line allocation. D. Sum distinct shipping values for each product.
Choose C. It keeps the product relationship at the line and reconciles allocations to the billed amount. A repeats charges across lines. B cannot tell how much shipping belongs to each product on a multi-product order. D treats equal charges as duplicates and provides no allocation rule.
The free DP-700 sample includes a wide sales-feed question. Write the fact grain before opening the options, then decide where to put descriptive attributes and which measures fit that grain. The related Type 2 guide picks up the next decision, finding the correct historical dimension key.
Source: Microsoft Learn: dimensional modeling fact tables in Fabric Warehouse ↗
Your next steps
- State the event represented by one fact row before loading the table.
- Keep header charges at order grain until an approved line allocation exists.
- Reconcile line allocations to the original order charges.
Sources & official resources
Linked resources checked on 2026-11-30. Technical behavior and provider guidance can change; check the documentation for the version you use.
About this guide and its recommendations
Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.
Suggest a correction →