Retail · Power BI
DAX measures library for executive board pack reporting
Independent grading: 92/100(verify, opens in a new tab)
Problem
The finance and commercial board at Meridian Retail (simulated retailer) needed a single, governed measures library to power their quarterly board pack. The request covered nine specific measures: revenue on a year-to-date basis, prior-year comparison, year-on-year growth, gross margin, new and returning customer counts, rolling three-month revenue, average order value, and a composite executive health score from zero to one hundred.
What I did
All nine measures were built inside a dedicated Board Pack Measure table, keeping them separate from the existing Margin Measures table as the brief specified. Time-intelligence measures use TOTALYTD anchored to the Date table, with SAMEPERIODLASTYEAR wrapping the prior-year variant. New Customers YTD required CALCULATE with DISTINCTCOUNT and a FILTER that checks whether the customer's earliest-ever order year, found by applying ALL to remove date context, matches the current year. The Executive Health Score uses four VAR components, each capped at 100 with MIN, combined at weights of 0.30, 0.25, 0.25, and 0.20.
Finding
The reviewer confirmed all nine measures produced correct results, and the submission noted a 100% customer retention rate as a notable finding from the live dataset.
Outcome
The board pack measures library gives the finance team a single auditable source for all nine KPIs, with RLS restricting regional managers to their own store data via USERPRINCIPALNAME.
[Board Pack Measure] Revenue YTD =
TOTALYTD('Margin Measures'[Revenue (NGN )],'Date'[Date])
[Board Pack Measure] Revenue YTD LY =
TOTALYTD('Margin Measures'[Revenue (NGN )], SAMEPERIODLASTYEAR('Date'[Date]))
[Board Pack Measure] Revenue YoY Growth % =
DIVIDE(('Board Pack Measure'[Revenue YTD] - 'Board Pack Measure'[Revenue YTD LY]), 'Board Pack Measure'[Revenue YTD LY])These three measures form the core year-on-year revenue chain: a base YTD total, a prior-year equivalent using SAMEPERIODLASTYEAR, and a safe division for growth percentage, all referencing the same Date table for consistent filter context.
Next step
A useful next step would be breaking the Executive Health Score into its four component VAR values as separate visible measures, so the board can see which dimension is dragging or lifting the composite in any given period.
- TOTALYTD and SAMEPERIODLASTYEAR for time-intelligence measures
- CALCULATE with FILTER and DISTINCTCOUNT for conditional aggregation
- DATESINPERIOD for rolling-period calculations
- Composite DAX measures with weighted VAR components
- Row-Level Security with USERPRINCIPALNAME and LOOKUPVALUE
- Field parameters for dynamic metric and dimension selection