← Power BI Dashboards track
Lesson 5 of 6 · 8 min

Revenue analysis and time intelligence

Listen

Nigerian voice narration

Scenario

Fictional training case. The MD's questions get sharper: How does this month's collection compare with last month's? Which tariff category carries the revenue? Which district's debt is growing? These are comparison questions — across time and across categories — and they need a calendar table and a handful of time-intelligence patterns.

An analyst presenting an interactive dashboard

The calendar table

Time intelligence needs a proper date table: one row per day, with columns for month, quarter and year. Create one with CALENDARAUTO() or import one, relate it to the billing date, and mark it as a date table. Never use the fact table's own date column for time intelligence.

Month-over-month comparison

With the calendar in place: Previous Month Billed = CALCULATE([Total Billed], PREVIOUSMONTH(Calendar[Date])). Growth % = DIVIDE([Total Billed] − [Previous Month Billed], [Previous Month Billed]). The MD's favourite question is now one visual.

Revenue by tariff category

Drag Tariff to rows and Total Billed, Total Collected and Collection Efficiency to values. Residential, commercial and industrial customers behave very differently — industrial may be 60% of revenue from 5% of customers. Category analysis shapes tariff and debt policy.

An employee assembling a prompt from three structured blocks
Prompt practice

Build the prompt from three phrases — Role, Task and Format — and watch the AI answer.

Debt ageing and district risk

Outstanding balance by district, sorted descending, shows where the debt sits. Add the monthly trend of outstanding per district and you can say which district's debt is growing — the difference between a number and an early warning.

Common mistakes to avoid

The classic time-intelligence mistake is using the fact table's own date column, which has gaps, and getting wrong or blank previous-month values — build and mark a proper calendar table. Another is reporting a debt level without its trend: ₦40m outstanding that is shrinking is a different story from ₦40m that is growing. And do not compare months with different numbers of billing days without saying so; note the caveat in the report.

Your practice

Build a calendar table, create the Previous Month and Growth % measures, and make two visuals: revenue and collection efficiency by tariff, and outstanding by district with its monthly trend. Write one sentence of interpretation for each — that is analysis, not just display.

Try this prompt

You are a DAX expert. Given a Billing table and a Calendar table, write measures for previous month's billed revenue and month-over-month growth percentage, and explain why a separate calendar table is required.

Follow-along sample data
DisCo billing records (CSV)
Download
Checkpoint · 3 questions

Answer all three questions and check your answers to unlock the next lesson. Pass mark: 2 of 3.

Month-over-month growth % equals…

'Industrial customers are 60% of revenue from 5% of accounts' is an example of…

A district whose outstanding balance grows month after month is…