PBI-21 · Count orders correctly when lines repeat

Guest practice: progress is stored in this browser session. Sign in for account-based learning records.

Power BI industry practice

Case: · synthetic training data · follow the numbered tasks on the left.

This workbench loads the downloadable case CSVs and calculates their results. It supports the listed teaching operations and measure patterns. Complete the paired Desktop procedure for full Power BI authoring.

Calculation and report context

Retail/finance use Period scope and Year. HR headcount uses As-of; HR leavers/attrition use Year. Operations uses ticket creation year. Region applies where that column exists. Set context before running an action; result cards record the context used.

Import and inspect the case files

fact rows loaded. The preview shows 50 rows per page; calculations use all rows.

Profile, clean and reshape

Use the action specified by your task. Cleaning is applied to an in-memory copy; downloaded source files are preserved.

Full-dataset profile

Applied steps

Rejected rows: . Open Data and choose Exceptions to inspect the reason column.

Validate a dimension relationship

Retail: Product. Finance: Account to both facts. HR: Employee to snapshots. Operations: Priority to tickets. Do not join financial facts directly.

Calendar prepared. For HR, the selected date is a cutoff parameter; use the paired tutorial's disconnected calendar pattern.

Write and check a case measure

Created measures:

Supported case formulas and prerequisites

These are a teaching subset. Derived patterns are evaluated against the loaded case data. In Desktop create the dependencies and date relationships described in the paired tutorial. The HR calendar is disconnected; attrition uses opening and closing headcounts. Retail refunds use the original sales cohort, rather than refund-event month.

Build, filter and drill into results

Retail visuals aggregate LineRevenue, finance visuals aggregate ActualAmount, HR visuals count active employees at As-of, and operations visuals count created tickets. Labels state the quantity. Other measures are inspected in Calculate.

First 20 contributing rows shown. Open Data for paginated source inspection.

Test a synthetic user-to-region mapping

This HR exercise reads SecurityMapping.csv and checks the active-employee rows a simulated identity can see. These example.invalid identities are fictional. This is a data-level teaching check; real authentication, RLS assignment and effective permissions must be tested in the Microsoft service.

Recorded calculation and reconciliation

Create a case measure and Run calculation first. The expected-result sheet explains the required context.

Enter a percentage as the displayed percent (for example 8.7719 for 8.7719%). Tolerance is 0.005 units or percentage points. Changing filters does not rewrite this recorded result; rerun the calculation for new context.

Lab complete!

Count orders correctly when lines repeat

Score

This session

Hints used

Review the notes Next lab