MSBA-132 · Lesson 12 of 12 · 19 min
Case study: a sales dashboard
▶ Video coming soon A video version of this lesson is on the way.
Lumenvale's Continuing Education unit runs non-credit courses for the public: first aid, bookkeeping, welding refreshers, conversational languages, pottery. Unlike tutoring, these courses are sold, and the unit's director, who reports revenue to the college board every term, had been building her numbers by hand from three exports. When she heard what Kwabena had done for Student Success, she asked for a sales report and dashboard of her own. This capstone follows the whole project from first conversation to finished app, drawing on every lesson in the course. At each stage, try answering the question yourself before reading Kwabena's approach.
Stage 1: Requirements
Kwabena started not with data but with a meeting. He asked the director, her two program coordinators and the finance analyst who reconciled revenue three questions: what decisions do you make with these numbers, how often, and what do you do today? From their answers he wrote a one-page brief.
| Need | Who | How often | Measure or view |
|---|---|---|---|
| Revenue and seats sold this term compared with last term | Director, board | Weekly, and termly for the board | Revenue, Seats Sold, change from last term |
| Which program categories are growing or shrinking | Director, coordinators | Weekly | Revenue by category and month |
| Courses at risk of cancellation for low enrolment | Coordinators | Daily in the two weeks before a course starts | Seats sold against minimum seats |
| Revenue that matches the finance system | Finance analyst | Monthly | Net revenue after refunds, by month |
Two definitions were agreed before anything was built, following lesson 11. Revenue means the amount paid for registrations, minus refunds, counted on the date of registration. Seats Sold means registrations with a status of Confirmed. The finance analyst signed off on both, because she would be the first to notice a mismatch.
Stage 2: Where the data lives
Three sources held what was needed:
- Registrations were recorded in a Dataverse table, Course Registration, by the unit's registration app, which Signe Tavernier-Mbeki had built the previous year. Each row had the course offering, the registrant, the amount paid, the status and the registration date.
- Course offerings, with category, campus, start date, price and minimum seats, were in a second Dataverse table, Course Offering, linked to registrations by a lookup column, a one-to-many relationship from lesson 1.
- Refunds came from the college's finance system as a monthly Excel export saved to a SharePoint library.
Before going further, Kwabena checked the data in Dataverse. A business rule already required an amount on Confirmed registrations, but older rows from before the rule had blanks, and a view filtered to Confirmed registrations with no amount found 31 of them. The registration office fixed them at the source, as lesson 2 recommends, rather than leaving Power Query to guess.
Stage 3: Getting and shaping the data
In Power BI Desktop, Kwabena connected to Dataverse and to the SharePoint folder of refund files, choosing Transform data each time. His Power Query plan, built with lesson 4's tools, was:
- Course Registration: keep only the needed columns, set types, filter out test registrations created during the app's pilot, keep Cancelled rows (so cancellations can be counted) but flag them.
- Course Offering: keep category, campus, start date, price and minimum seats; trim and standardize category names, which profiling showed included "Health" and "Health " with a trailing space.
- Refunds: combine all monthly files from the SharePoint folder into one table with an append, unpivot nothing (the export was already tidy), and set the refund date and amount types.
- Date: a date table covering every day from the unit's first registration to the end of next year, with month, term and fiscal year columns.
All tables used Import mode, since the data was small. The refund files stayed in SharePoint so the service could refresh them without Kwabena's laptop.
Stage 4: The model and measures
The model followed the star schema from lesson 11. Course Registration and Refunds were fact tables; Course Offering, Campus and Date were dimensions. Relationships ran one-to-many from each dimension to the facts. Technical key columns were hidden, every table and column had a plain-language name, and each measure had a description containing its business definition.
Gross Revenue =
CALCULATE (
SUM ( 'Course Registration'[Amount Paid] ),
'Course Registration'[Status] = "Confirmed"
)
Refunds = SUM ( Refund[Refund Amount] )
Revenue = [Gross Revenue] - [Refunds]
Seats Sold =
CALCULATE (
COUNTROWS ( 'Course Registration' ),
'Course Registration'[Status] = "Confirmed"
)
Average Price = DIVIDE ( [Revenue], [Seats Sold] )
Revenue Last Term =
CALCULATE ( [Revenue], DATEADD ( 'Date'[Date], -4, MONTH ) )
Change From Last Term = DIVIDE ( [Revenue] - [Revenue Last Term], [Revenue Last Term] )The coordinators' at-risk view needed one more measure: seats still needed to reach the minimum for each offering.
Seats Short =
VAR Needed = SELECTEDVALUE ( 'Course Offering'[Minimum Seats] )
RETURN
IF ( NOT ISBLANK ( Needed ), MAX ( Needed - [Seats Sold], 0 ) )Kwabena checked the measures against the finance analyst's numbers for a closed month before building any visuals. They matched to the dollar once refunds were included, which was the moment the finance analyst started trusting the project.
Stage 5: The report
The report had three pages, each answering one need from the brief, following lessons 5 and 6.
- Overview: four cards (Revenue, Seats Sold, Average Price, Change From Last Term), a column chart of revenue by month and a sorted bar chart of revenue by program category. A term slicer, synced across pages, sat top right. Clicking a category cross-filtered the monthly chart; Edit interactions stopped it from changing the term cards' comparison.
- Courses at risk: a table of offerings starting in the next 14 days, with start date, campus, minimum seats, Seats Sold and Seats Short. Conditional formatting turned Seats Short red when it was above zero. A relative date filter kept the table to the next 14 days automatically.
- Finance reconciliation: a matrix of gross revenue, refunds and revenue by month, with a hidden report-level filter excluding test data and a visible page filter for fiscal year.
A drill-through page, Offering detail, listed every registration for one offering, reachable from any visual that showed offerings. Every visual had a clear title and alt text, colour was never the only signal, and the tab order was set. Kwabena designed a mobile layout for the Overview page, because the director read it on her phone before board meetings.
Stage 6: Publishing, refresh and the dashboard
Kwabena published the report to a new workspace, Continuing Education Analytics, on Pro licence mode. In the service he configured the semantic model, following lesson 10:
- credentials for Dataverse (organizational account) and SharePoint (organizational account), with no gateway needed because both are cloud sources;
- scheduled refresh at 6:00 a.m. and 1:00 p.m. daily, within the Pro limit of eight;
- failure emails to the Continuing Education Analytics group as well as himself;
- a Last refreshed card in each page header.
He then built a dashboard for the director, as lesson 6 describes, pinning the Revenue and Seats Sold cards, the revenue by category chart, and a card from the Student Success model showing tutoring hours for Continuing Education learners, which the director also tracked. The director set a data alert on the Seats Sold tile to notify her if weekly confirmed registrations fell below a threshold she chose.
Stage 7: Sharing
Following lesson 7, readers did not get workspace roles. Kwabena created an org app called Continuing Education Sales with two audiences:
- Leadership (the director and the board liaison): Overview and Finance reconciliation.
- Coordinators: Overview, Courses at risk and Offering detail.
The finance analyst was given Build permission on the semantic model so she could analyse it in Excel. The model was labelled Confidential, because registrations include names and contact details, and export was limited to summarized data. Pages seen by the board showed no individual names. Because the workspace was on Pro licence mode and Lumenvale had no F64 capacity, Rupert confirmed that all nine readers had Pro licences, six of them through Microsoft 365 E5.
Stage 8: Bringing it to where people work
Following lesson 9, the Courses at risk page was added as a tab in the coordinators' Teams channel, where they discussed which courses to promote or cancel. In the registration app, Maribeth added a Power BI tile showing Seats Short for the selected offering, so that registration staff saw immediately when a course was close to its minimum. The college's public website did not get the report; the communications office wanted a public chart of total course enrolments by year, which contained no personal data, and that was handled separately by the web team.
Stage 9: Copilot
Continuing Education's workspace was on Pro, but the director and Kwabena were assigned to Lumenvale's Fabric Copilot capacity, so Copilot was available to them (lesson 8). Before relying on it, Kwabena prepared the model for AI: descriptions on every measure, AI instructions explaining that a term is four months and that revenue is net of refunds, and verified answers for the three questions the director asked most. He added a narrative visual to the Overview page. When the director asked Copilot "which categories drove the change from last term?", it correctly named Health and Trades and pointed to the category chart. When she asked why Health had grown, Copilot described the numbers but could not know that a hospital had sent forty staff for first aid recertification, which the coordinator added in the board notes.
Stage 10: Review
A month after launch, Kwabena checked the report's usage metrics and held a short review with the director, using a checklist that sums up the course:
| Check | Lesson | Result |
|---|---|---|
| Data entered correctly at the source, with rules where needed | 1, 2 | Business rule on amount; 31 old blanks fixed |
| Data shaped in Power Query, not patched in DAX | 4 | Category names trimmed; refund files appended |
| Star schema with a date table and documented measures | 5, 11 | Two facts, three dimensions, descriptions on all measures |
| Pages answer specific questions; visuals chosen from the question | 5, 6 | Three pages mapped to the brief |
| Refresh scheduled, credentials managed, failures reported | 10 | Twice daily; team notified on failure |
| Readers get an app audience; licences checked; data labelled | 3, 7 | Org app with two audiences; Confidential label |
| Content reaches people where they work | 9 | Teams tab and Power BI tile in the app |
| Copilot used with a prepared model and checked answers | 8 | Narrative visual; verified answers added |
The usage metrics showed that coordinators opened the Courses at risk tab in Teams almost every day, and that two courses that would have been cancelled had been saved by targeted promotion. The board liaison asked for one change: a comparison with the same term last year as well as last term. That request, and the time intelligence needed to answer it, is where MSBA-261 begins.
Extending the case study
Capstones are most useful when you take them further yourself. Here are four extensions to try, each of which uses a skill from this course in a new way.
- Add a waitlist. Registrations with a status of Waitlisted are currently ignored. Add a Waitlisted Seats measure and show it next to Seats Short on the Courses at risk page, so coordinators can see when a full course should open a second section.
- Add a campus filter with row-level security. Each campus coordinator should see only their own campus. Plan the role and the filter, and decide which audience members it applies to.
- Add a business rule upstream. Registrations sometimes arrive with an amount higher than the course price. Design a Dataverse business rule that shows an error when Amount Paid exceeds the offering's price, and decide on its scope.
- Write a board summary prompt. Draft a Copilot prompt that produces a five-sentence board summary of the term, and list the facts you would check before using it.
Worked problem
Checking the revenue figure
In a closed month, the finance system shows net revenue of 38,450 dollars. The report shows Gross Revenue of 39,720 dollars and Refunds of 1,270 dollars. Does the report reconcile?
Show solution
- Revenue = Gross Revenue - Refunds.
- 39,720 - 1,270 = 38,450.
- The report's Revenue matches the finance figure exactly.
Answer: Yes. Revenue of 38,450 dollars matches the finance system, so the measures and refund data agree.
Common mistakes
MistakeStarting with visuals before agreeing what revenue and seats sold mean.
InsteadWrite a requirements brief and get definitions signed off before building.
MistakeChecking measures only by looking at whether the charts seem reasonable.
InsteadReconcile measures against a trusted figure, such as a closed month in the finance system, before publishing.
MistakeGiving every reader the same app content.
InsteadUse audiences for navigation and keep detail pages for the people who need them.
MistakeDeclaring the project finished at launch.
InsteadReview usage and feedback after a few weeks and plan the next improvements.
Summary and key terms
- Start with a requirements brief and agreed definitions, signed off by the people who will check the numbers.
- Fix data quality at the source, shape data in Power Query and model it as a star schema with a date table.
- Write documented measures and reconcile them against a trusted figure before building visuals.
- Design pages around specific questions, with interactions, drill-through, accessibility and a mobile layout.
- Schedule refresh, pin key tiles to a dashboard with alerts, and share through an org app with audiences.
- Embed where people work, use Copilot on a prepared model, and review usage after launch.
- Requirements brief
- A short document listing who needs what information, how often and why.
- Reconciliation
- Checking that report figures match a trusted source, such as the finance system.
- Usage metrics
- Power BI reports showing how often content is viewed and by whom.
- Seats Short
- The case study measure showing how many more registrations an offering needs to reach its minimum.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why did Kwabena reconcile the Revenue measure with the finance analyst's numbers before building visuals?
Show answer
To confirm the measure matched the agreed definition and a trusted source, so readers would trust the report.
Why was no gateway needed for this model?
Show answer
Both sources, Dataverse and SharePoint Online, are cloud sources the service can reach directly.
What controls which pages coordinators see, and what would control which rows they see?
Show answer
App audiences control which pages they see; row-level security would control which rows they see.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.