Retail report verification
Build a report that can be checked
A report is correct only relative to its metric definitions, data scope and filter state. Build a Summary page for decisions and a Detail page for tracing the underlying order lines. Use the synthetic retail-v1 fixture in labs/fixtures/ and its dimensional-v1 extension. All values represent USD and order dates January 5–7, 2026; no tax, returns or discounts. Tier A is offline with paper or a local worksheet; Tier B is an optional disposable Power BI Desktop Import report. Native DAX, M, refresh and rendering NOT RUN. No account, publish or tenant operations. See labs/retail-capstone/README.md for exact inputs and deliverables.
Example 1: assemble the measure set and summary
Reuse the Chapter 09 measure definitions (create each separately if absent):
Total Revenue = SUM(FactSales[RevenueUSD])Total Cost = SUM(FactSales[CostUSD])Gross Profit = [Total Revenue] - [Total Cost]Gross Margin = DIVIDE([Gross Profit], [Total Revenue])Orders = DISTINCTCOUNT(FactSales[OrderID])Units Sold = SUM(FactSales[Quantity])Expected without selections: revenue 200 USD, cost 126 USD, profit 74 USD, margin 37%, four orders and nine units. Format margin as a percentage, not USD. Use cards for revenue, profit, margin and orders; add sorted product bars and a daily line chart for January 5–7. Product totals are Notebook 60, Desk Lamp 90, Backpack 50. Daily totals are 54, 86, 60. Set a zero baseline for bars, label the currency and period, and make the date order chronological. Use region and product slicers with filtering enabled on Summary visuals and no synchronization to Detail. Set the report-level OrderDate period via DimDate[Date]; clear other filters before the baseline check.
Example 2: test filters against line-level detail
On Detail add an independent region slicer and a table containing FactSales[LineID], OrderID, OrderDate, ProductKey, Quantity, RevenueUSD and CostUSD; set numeric row columns to Do not summarize where available. Include [Total Revenue] and [Gross Profit] cards to cross-check selection. Five distinct line IDs and 200 USD are expected at baseline. On Summary select South: L03 and L05 contribute 96 revenue, 60 cost and 36 profit, margin 37.5%, two orders, five units. Add Desk Lamp: only L05 remains, revenue 60, cost 36, profit 24, margin 40%. Detail remains 200 until its own region slicer is set. Set Detail to South and compare its line list and 96 revenue with the South-only Summary state. Clear both slicers independently. Test South plus Backpack on Summary: no fact rows; the revenue and margin measures are expected BLANK. A visual may represent blank as empty or omit a category. Do not label it zero without a metric rule. Restore the baseline before saving.
Diagnose a disagreement
If a product bar shows 200 for every product, inspect relationship activity and direction, key types and slicer interactions before editing DAX. If totals differ only on one page, inspect its filters and selections. Distinct orders are not additive across products: Notebook has two orders, Desk Lamp two and Backpack one, but O01 appears in two product groups, so the grand total is four. Reconcile numerator and denominator for margin; do not average category percentages.
Practice
Complete task 2: build or sketch both pages, record fields and units, test the four selection cases and reset. Submit a separate expected versus observed log; offline results are predictions only.
Official reading
troubleshoot · slicer · tutorial. Official documentation search extracts checked; exact build and native execution remain unverified.