Data Visualisation for Business Decisions

Module 04: Building Interactive Reports and Dashboards

Module 4

Module Overview

The seven-step journey from user brief to published dashboards

Module 3 built a basic Superstore report from a handful of visuals. Module 4 does the job the way an analyst in a real company would: it starts from user requirements, works out which tables and measures are missing, explores the data inside Power BI to choose the visuals that answer each question, sketches a wireframe, builds and assembles a three-page report, and then publishes it to the Power BI service and turns parts of it into user-specific dashboards.

The module runs in five movements:

MovementWhat happensOutput
1. Plan from the briefRead the CEO's and regional managers' three questions and translate each into data needsA list of tables and measures, a target star schema
2. Build the modelLoad the budget, create a Region table, a Calendar table and a measures table, connect everythingTwo fact tables (Orders, Budget) surrounded by lookup tables
3. Create and test measuresDistinct counts, discount percentages, budget comparisons, time intelligence (last year, YoY, YTD)A tested, consistently formatted measure library
4. Build the reportPerformance Overview, Growth Drivers and Profitability Drivers pages, joined by a page navigatorOne page per user question
5. Publish and sharePublish to a workspace, use the report in the service, pin a live page for the CEO and selected visuals for the West regional managerA published report, a semantic model and two dashboards

Memory hook: Questions → Data → Explore → Wireframe → Build → Publish → Pin. Every visual on every page exists because one of the three user questions needs it.

4.1 From User Brief to Build Plan

4.1.1 The Analyst's Report-Building Process

To build a report, the course follows a process close to what happens in a real company:

  1. Review the requirements. Start from the questions the users need answered.
  2. Decide what data tables and measures are needed. Check what already exists from the previous module (much can be reused) and identify what has to be added.
  3. Explore the data in Power BI to decide which visuals best tell the story that answers each user question.
  4. Sketch a simple wireframe of the page.
  5. Build the visuals and assemble the report.

Planning first makes the whole build far more efficient. The summary version of the cycle is: start from the questions, assess what needs to be built, then do the actual build.

Exam tip: the plan is a starting point, not a contract. As you explore you will find questions you did not expect and will need new measures or columns. The professor calls this "perfectly normal": plan as much as possible, then stay flexible.

4.1.2 The Business Context: Superstore

Superstore is a retail outlet whose goal is profitable growth. Everyone shares that goal, but different users need different things from the report.

UserWhat they look at
CEOWhole-company performance
Regional managersTheir own region, month by month, down to individual products
BothYear-to-date (YTD) performance against budget, and a year-on-year (YoY) comparison

This is a very typical requirement in most organisations: there is a budget, there are targets, and people want to compare against the previous year.

The three user questions (every page of the final report answers one of them):

#QuestionSub-questions
1Are we on track against our budget this year?YTD actuals vs budget, YoY comparison
2Where is our growth coming from?Is it more customers? Customers ordering more often? Or bigger orders?
3Is this growth profitable?Are some products, regions or discounts eating into profit?

Targets set by the company:

  • Sales budget: at budgeting time Superstore sets an annual sales budget for each region. Sales are seasonal, peaking every year in the last quarter, so the annual budget is split into monthly figures that follow the same seasonal pattern.
  • Profitability target: a single flat target for everyone, 13%.
  • Together these define profitable growth: hit the sales budget and keep profitability at 13% or better.

Branding requirement: Superstore wants its logo on every page and has set a specific page background colour for all its reports.

4.1.3 Translating Each Question into Data Needs

The data model from Module 3 is the starting point: the orders table in the middle, connected to the customer, product and shipping lookup tables. Each lookup table lists each customer, product or order just once.

The grain problem. The orders table has one row for each product in an order, which is why the first order alone has many rows. From the customer's side, one customer can place many orders. So:

one customer → many orders → each order → many rows (one per distinct product)

Counting rows therefore overstates both orders and customers. The fix is a distinct count: count each order ID and each customer ID only once.

Need from the briefWhat is missingWhat we buildBuilt as
More customers?A true customer countCustomers = distinct count of customer IDMeasure
More orders?A true order countOrders = distinct count of order IDMeasure
Ordering more often?A frequency ratioOrders per CustomerMeasure
Bigger orders?A size ratioAverage Order Value (AOV)Measure
Is discounting hurting profit?Discount is a dollar amount per row, which is not comparable across sale sizesLine Discount % (per product line) and Discount % (rolled up)Column and measure respectively
On track against budget?No budget in the model at allA Budget table (budget by month by region), Total Budget Sales, Sales vs Budget %Table and measures
Profitability targetNothing to compare profitability withProfitability Target = 13%Static measure
Each regional manager sees own sales and own budgetThe budget file has a region column but is not connected to anythingA small Region table (four rows), connected to Customers and BudgetTable
This year so far vs last yearTime functions need a proper date tableA Calendar table, one row per day, no gaps, 1 Jan 2015 to 31 Dec 2018Table, marked as date table

Why a USD 50 discount needs to become a percentage. USD 50 off means something very different on a USD 100 sale than on a USD 2,000 sale. A percentage makes discounts comparable.

Two discount percentages:

Line discount %Discount %
LevelEach product in an order (one row)Rolled up to order, product, region or whole year
NatureA fixed fact about the rowMust be calculated for whatever context is shown
Built asCalculated columnMeasure

Why the Region table. In Module 3 the region slicer worked because orders were connected to customers and each customer had a region: pick West and Power BI finds West customers, then their orders. The budget file also has a region, but it is not connected to anything. Building a small region table with each region once (four rows) and connecting both the customer table and the budget table to it means one region slicer filters West customers, their orders and West's budget together. Best practice: a small lookup table where each region is one row and all other tables refer to it.

Why the Calendar table. Comparing with last year, or adding up the year so far, uses special time intelligence functions in DAX: year to date, month to date, quarter to date, and the same period last year. To find "the same period last year" Power BI needs a calendar with every date, one row per day and no gaps. The calendar runs from 1 January 2015 to 31 December 2018 (the period of the data set), with columns for year, quarter and month. It is connected to the order date and to the budget month, and marked as the date table. Once Power BI has it, YTD totals and YoY and month-on-month comparisons all become feasible.

4.1.4 The Target Shape: A Star Schema

PositionTablesRole
Centre (fact tables)Orders (order_products), BudgetHold the main numbers
Around them (lookup tables)Customers, Products, Region, Calendar (plus Shipping, attached to orders)Each lists one reference item once

This pattern is called a star schema because of its shape, and it is the standard way to build a data model in Power BI.

Memory hook: facts in the middle, lookups around the edge, each lookup item once.

4.2 Building the Data Model

4.2.1 Loading and Fixing the Budget Table

Start from the Module 3 PBIX file (the one with all the earlier visuals), add a new page, then:

  1. Home > Get Data > Excel workbook > Connect, select the budget file and the budget sheet, and Load.
  2. In Table view, the Month column formatting is off. Select the column and, in the format ribbon at the top, set Data type: Date and Format: MM/DD/YYYY.

The budget now shows the first day of each month, and for each month four rows, one per region, for all months of all four years. Region is fine; the sales figures are whole numbers with zero decimals, so they are left as they are.

4.2.2 The Region Table with Enter Data

New tables can be built inside Power BI. For any small table, Home > Enter Data ("Create a new table by typing or pasting in new content") is the quickest route.

  1. Click Enter Data. A single column appears.
  2. Double-click the column header and rename it Region.
  3. Type the values Central, South, East, West. The values must match exactly how they appear in the other tables.
  4. Rename the table from the default Table to Region.
  5. Click Load.

4.2.3 The Calendar Table

Create the table:

  1. Click New Table on the ribbon.
  2. Use the CALENDAR function, which "returns a table with one column of all dates between start date and end date".
dax
Calendar = CALENDAR ( DATE ( 2015, 1, 1 ), DATE ( 2018, 12, 31 ) )
  1. In Table view, confirm every date is present. Change the data type from date/time to Date and format MM/DD/YYYY.

Mark it as the date table:

  1. Click the three dots next to the Calendar table and choose Mark as date table.
  2. Toggle the switch on.
  3. Choose the date column Date. Power BI validates it ("validated successfully").
  4. Save.

Power BI will now use this table for all comparisons against last year, YTD, MTD and every other time function.

Add the derived columns (Table Tools > New Column for each):

dax
Year = YEAR ( 'Calendar'[Date] )

Quarter = "Q" & QUARTER ( 'Calendar'[Date] )

Month Number = MONTH ( 'Calendar'[Date] )

Month = FORMAT ( 'Calendar'[Date], "MMM" )
  • Quarter gets the prefix "Q" so values read Q1, Q2, Q3, Q4.
  • Keep both Month Number and Month name. You do not yet know which the report will need, so it is good practice to keep both. Charts usually want Jan, Feb rather than 1, 2.
  • FORMAT(..., "MMM") returns the three-letter month name (JAN, FEB...).

Sort the month name correctly. Power BI sorts text alphabetically by default (April, August, December...). Select the Month column, choose Sort by column, and pick Month Number so January always comes first.

Build a date hierarchy (needed to drill down in line and column charts), exactly as the product hierarchy was built in Module 3:

  1. On Year, choose Create hierarchy.
  2. On Quarter, choose Add to hierarchy and pick the new hierarchy.
  3. On Month, choose Add to hierarchy.
  4. Rename Year Hierarchy to Date Hierarchy and check it shows Year > Quarter > Month.

Common trap: once the Calendar is marked as the date table, old visuals that relied on Power BI's automatic date hierarchy on the order date (such as the Module 3 area chart) break and look "strange". They are fixed later by rebuilding them on the Calendar fields.

4.2.4 Connecting the Star Schema

The Superstore star schema with two fact tables

In Model view the layout starts as "a bit of a mess". Tidy it into a star:

  1. Put the two fact tables, order_products and Budget, in the centre.
  2. Move Product lookup above (only orders look it up). Shipping and Customer lookup serve order_products.
  3. Place Region so it connects to both Customer lookup and Budget.
  4. Place Calendar and create relationships by dragging and dropping:
    • order_products[Order Date] → Calendar[Date]. Power BI cannot auto-detect this because the fields are named differently, so you must specify the mapping.
    • Budget[Month] → Calendar[Date]. The budget month holds the first day of each month, which maps onto the daily calendar.
  5. Save.

Final model: two fact tables (order details, budget) in the middle; product, customer, region and calendar lookups around them; shipping details connected to the orders table.

Exam tip: the one rule to remember from now on. Anything that must filter both sales and budget must come from a table connected to both. So every date range, year or month selector must use the Calendar table, and every region selector must use the Region table. Only then do both actuals and budget respond to the user's selection.

4.3 Creating the Core Measures

4.3.1 A Dedicated Measures Table

A measure is not really tied to the table it is stored in: it calculates across the whole model. Module 3's measures (Total Net Sales, Total Profit, Profitability, Total Discount) were stored in the orders table. With many more measures coming, best practice is a table that houses only measures.

  1. Home > Enter Data, leave it blank (measures are calculated on the fly), name it _measures and Load.
  2. The underscore prefix is a small hack so the table always sorts at the top of the Data pane, making measures quick to find while building visuals.
  3. Move existing measures (they carry a small calculator icon): select a measure, open the Properties pane, and change Home table from order_products to _measures. Shift-click to select several and move them together.
  4. Delete the blank Column1 (Delete from model > Yes). The table icon turns into a calculator, because it now holds only measures.
  5. Create every new measure here: three dots on _measures > New measure.

4.3.2 Distinct Counts: Customers and Orders

dax
Customers = DISTINCTCOUNT ( order_products[Customer ID] )

Orders = DISTINCTCOUNT ( order_products[Order ID] )

DISTINCTCOUNT looks for unique IDs in order_products and counts each only once. Format both as Whole number, 0 decimals.

Copy-paste technique. Many measures are near-identical. Copy the formula (Ctrl+C), create a new measure, paste, and edit. Be careful to change every reference (here, Customer ID must become Order ID).

4.3.3 Discount Percentage (Measure)

The Net Sales column is what the customer actually paid after the discount. To get a percentage you must divide by the original price (before discount), which is net sales plus discount.

ƒDiscount percentage
Discount %=Total DiscountTotal Net Sales+Total Discount\text{Discount \%} = \frac{\text{Total Discount}}{\text{Total Net Sales} + \text{Total Discount}}
Where: Total Net Sales is what customers paid after discount, so Total Net Sales plus Total Discount is the original (list) price.

A chair priced at USD 100 is sold with a USD 20 discount. The Net Sales column shows 80 and the Discount column shows 20.

Worked example: discount percentage on the chair
Original price=80+20=100\text{Original price} = 80 + 20 = 100
Discount %=2080+20=20100=20%\text{Discount \%} = \frac{20}{80 + 20} = \frac{20}{100} = 20\%

Answer: the discount is 20%, not 25%. Dividing 20 by the net sales of 80 would wrongly give 25%.

dax
Discount % = DIVIDE ( [Total Discount], [Total Discount] + [Total Net Sales] )

Format as Percentage, 1 decimal. Profitability (a percentage from Module 3) is also changed from 2 to 1 decimal so every percentage is consistent.

Common trap: if a new measure lands in the wrong table (for example Budget), delete it and create it again from the _measures table's own New measure option.

4.3.4 Line Discount Percentage (Calculated Column)

Discount % is a measure because you want it at order, product, region or whole-year level. Line discount %, on the other hand, is a fact about each line: "this chair in this specific order was sold at 20% off". So it is a column. You can then group all lines where chairs were sold at 10%, 20% and so on, and examine how profitability varies by discount level.

Superstore uses 12 fixed discount levels from 0% to 80%. Without rounding, tiny calculation differences produce too many levels (30%, 32% and so on). So the column is rounded to 2 decimal places, collapsing values to the minimum number of real discount levels.

Build it in Table view on order_products > New Column:

dax
Line Discount % =
ROUND (
    DIVIDE (
        order_products[Discount],
        order_products[Discount] + order_products[Net Sales]
    ),
    2
)

Format as Percentage, 1 decimal (later reduced to 0 decimals for the discount-level chart). The stored value has 2 decimals (for example 0.20), the display format is separate.

ƒLine discount percentage
Line Discount %=ROUND(DiscountlineDiscountline+Net Salesline, 2)\text{Line Discount \%} = \text{ROUND}\left(\frac{\text{Discount}_{\text{line}}}{\text{Discount}_{\text{line}} + \text{Net Sales}_{\text{line}}},\ 2\right)
Where: both values come from the same row of order_products, and rounding to 2 decimals snaps each line to one of the 12 discount levels.

Memory hook: measure = answer that depends on the context you look at it in. Column = fact stamped on each row.

4.4 Testing Measures and Building the Budget Measures

4.4.1 Test Before You Visualise

Before using any measure in a report, test it: put it in a simple table next to numbers you already trust (here, figures from Excel) and check the results make sense. Test as you go, in small batches, so problems surface before visuals are built on top.

  1. Add a page named Test and drop a Table visual on it.
  2. Put Calendar[Year] in the columns. Problem: Power BI sums the years, because the Year column was created as a number.
  3. Fix: select Year in the Calendar table and change Summarization from Sum to Don't summarize. Check Month too (it was already Don't summarize). Year now shows correctly.
  4. Add the measures: Total Net Sales, Orders, Customers, Discount %, Total Budget Sales, Profitability, Total Discount, Total Profit.
  5. Compare against Excel: 590 customers and about 465,000 net sales check out.

Formatting fixes found while testing:

MeasureFormat set
Total Net Sales, Total Profit, Total Discount, Total Budget SalesCurrency (USD), 0 decimals (the data is US data)
Customers, OrdersWhole number, 0 decimals

4.4.2 Testing the Region Table

Add a Slicer with Region from the Region table (no formatting needed on a test page) and select West:

  • West net sales in 2018: 234,149, matching Excel.
  • West budget sales in 2018: 239,000, which proves the Region table now filters the budget too.

Why the customer total does not add up. With West selected, the customer column shows a total of 257, yet individual years show figures such as 227 and 202, which together far exceed 257. This is correct: the same customer can buy in several years, and a distinct count counts that customer once in the total. The non-additive total confirms that the distinct-count definition is working.

Common trap: a distinct-count total is not the sum of its parts. If the yearly customer counts added up exactly to the total, it would suggest you were counting rows or summing, not counting distinct customers.

4.4.3 Budget and Target Measures

dax
Total Budget Sales = SUM ( Budget[Sales] )

Sales vs Budget % = DIVIDE ( [Total Net Sales], [Total Budget Sales] )

Profitability Target = 0.13

Profit Budget = [Total Budget Sales] * [Profitability Target]

Profit vs Budget % = DIVIDE ( [Total Profit], [Profit Budget] )
MeasureLogicFormat
Total Budget SalesAdds up budget salesCurrency, 0 decimals
Sales vs Budget %Net sales divided by budget. Above 100% = ahead of budgetPercentage, 1 decimal
Profitability TargetCompany policy, a static measure written once so every visual showing profitability can compare against itPercentage, 0 decimals (it is a flat number)
Profit BudgetDerived: the brief gives a sales budget and a 13% target, so the profit budget is budget sales times the targetCurrency, 0 decimals
Profit vs Budget %Actual profit divided by profit budgetPercentage, 1 decimal

Order matters: Profit Budget references Profitability Target, so the target measure must exist first.

ƒSales versus budget
Sales vs Budget %=Total Net SalesTotal Budget Sales\text{Sales vs Budget \%} = \frac{\text{Total Net Sales}}{\text{Total Budget Sales}}
Where: a result above 100% means sales are ahead of budget; below 100% means behind.
Profit budget and profit versus budget
Profit Budget=Total Budget Sales×13%\text{Profit Budget} = \text{Total Budget Sales} \times 13\%
Profit vs Budget %=Total ProfitProfit Budget\text{Profit vs Budget \%} = \frac{\text{Total Profit}}{\text{Profit Budget}}

Where: 13% is the company-wide profitability target held in the Profitability Target measure.

West, full year 2018: net sales 234,149, budget sales 239,000.

Worked example: West against budget in 2018
Sales vs Budget %=234,149239,000=0.9797≈98.0%\text{Sales vs Budget \%} = \frac{234{,}149}{239{,}000} = 0.9797 \approx 98.0\%
Profit Budget=239,000×0.13=31,070\text{Profit Budget} = 239{,}000 \times 0.13 = 31{,}070

Answer: West achieved 98.0% of its sales budget (just behind), and its profit budget at the 13% target is USD 31,070. Under the colour rules used later, 98.0% falls in the amber band (95% to 100%).

4.5 Time Intelligence Measures

4.5.1 Last Year and Year-on-Year

Time-based measures use the Calendar.

  • SAMEPERIODLASTYEAR takes whatever dates are currently being looked at and shifts them back one year. These functions work on the date column of a calendar table.
  • CALCULATE then evaluates Total Net Sales for those shifted dates, giving sales last year.
  • With last year available, the YoY change compares this year with last year.
dax
Sales Last Year =
CALCULATE ( [Total Net Sales], SAMEPERIODLASTYEAR ( 'Calendar'[Date] ) )

Sales YoY % =
DIVIDE ( [Total Net Sales] - [Sales Last Year], [Sales Last Year] )
ƒYear-on-year growth
YoY %=This Year−Last YearLast Year\text{YoY \%} = \frac{\text{This Year} - \text{Last Year}}{\text{Last Year}}
Where: Last Year comes from CALCULATE with SAMEPERIODLASTYEAR on the Calendar date column; the denominator is always last year, never this year.

Custom format for growth. YoY figures go on KPI cards, where a plus or minus sign makes direction obvious. A plain percentage format shows only the % sign, so select the format box and type a custom format string:

text
+0.0%;-0.0%;0.0%

The string has three parts separated by semicolons, and the order matters: positive; negative; zero. So a positive value shows "+12.2%", a negative one "-3.4%", and zero "0.0%".

Same pattern for customers and orders (copy the sales formulas, then swap every reference):

dax
Customers Last Year =
CALCULATE ( [Customers], SAMEPERIODLASTYEAR ( 'Calendar'[Date] ) )

Customers YoY % =
DIVIDE ( [Customers] - [Customers Last Year], [Customers Last Year] )

Orders Last Year and Orders YoY % are built the same way. Each YoY measure gets the custom format string again (it is not copied automatically).

Customers grew from 590 in 2015 to 689 in 2018.

Worked example: customer growth 2015 to 2018
Growth=689−590590=99590=0.1678\text{Growth} = \frac{689 - 590}{590} = \frac{99}{590} = 0.1678

Answer: customers grew about +16.8% over the three years (displayed with a plus sign by the custom format).

4.5.2 Frequency and Order-Size Ratios

The growth question "are customers ordering more often, or spending more per order?" needs two ratios.

dax
Orders per Customer = DIVIDE ( [Orders], [Customers] )

Average Order Value = DIVIDE ( [Total Net Sales], [Orders] )
Orders per customer and average order value
Orders per Customer=OrdersCustomers\text{Orders per Customer} = \frac{\text{Orders}}{\text{Customers}}
AOV=Total Net SalesOrders\text{AOV} = \frac{\text{Total Net Sales}}{\text{Orders}}

Where: Orders and Customers are distinct counts. Orders per Customer is formatted as a decimal number with 1 decimal; AOV as currency with 0 decimals.

Multiplying the three growth levers back together returns net sales, which is why these three measures fully answer "where is growth coming from":

ƒGrowth decomposition
Net Sales=Customers×Orders per Customer×AOV\text{Net Sales} = \text{Customers} \times \text{Orders per Customer} \times \text{AOV}
Where: customers measures reach, orders per customer measures frequency, AOV measures basket size.

In 2018 Superstore had 689 customers, 2.4 orders per customer and an AOV of 423, with net sales of about 703K.

Worked example: checking the 2018 growth levers
689×2.4×423≈699,000689 \times 2.4 \times 423 \approx 699{,}000
Orders≈703,000423≈1,662\text{Orders} \approx \frac{703{,}000}{423} \approx 1{,}662
Orders per Customer=1,662689≈2.41\text{Orders per Customer} = \frac{1{,}662}{689} \approx 2.41

Answer: the levers reconcile to the 703K net sales; the small gap comes from orders per customer being displayed rounded to 2.4.

4.5.3 Year to Date

TOTALYTD adds up a measure from 1 January to the date being looked at, giving the YTD figure. You supply which metric and which date column.

dax
Sales YTD = TOTALYTD ( [Total Net Sales], 'Calendar'[Date] )

Format as currency, 0 decimals.

Exam tip: format each measure as you create it. It saves time when building visuals and guarantees consistency across the whole report.

4.5.4 Testing the Time Measures

On a new page Test1, a table with Calendar[Year] in columns (it displays correctly now because of the earlier Don't summarize fix) plus the comparison measures: Sales vs Budget %, Sales YoY %, Profit vs Budget %, Customers YoY %, Orders YoY %.

  • 2015 shows blanks for every YoY measure. That is correct: YoY needs a previous year and 2015 is the first year of data.
  • Everything matches the Excel figures, and YoY values show their + and - signs.
  • Delete the test pages (the small cross on the page tab). Keep the old Module 3 pages for now, since some visuals will be reused, even though their date hierarchies are broken.

4.5.5 Measure and Format Reference

Measure / columnTypeFormat
Total Net Sales, Total Profit, Total DiscountMeasure (from Module 3)Currency, 0 dp
ProfitabilityMeasure (from Module 3)%, 1 dp
Customers, OrdersMeasure, DISTINCTCOUNTWhole number
Discount %Measure%, 1 dp
Line Discount %Calculated column, ROUND to 2 dp%, 1 dp (later 0 dp)
Total Budget SalesMeasure, SUMCurrency, 0 dp
Sales vs Budget %, Profit vs Budget %Measure, DIVIDE%, 1 dp
Profitability TargetStatic measure, 0.13%, 0 dp
Profit BudgetMeasureCurrency, 0 dp
Sales/Customers/Orders Last YearCALCULATE + SAMEPERIODLASTYEARAs base measure
Sales/Customers/Orders YoY %DIVIDECustom +0.0%;-0.0%;0.0%
Orders per CustomerDIVIDEDecimal, 1 dp
Average Order ValueDIVIDECurrency, 0 dp
Sales YTDTOTALYTDCurrency, 0 dp

4.6 Page 1: Performance Overview ("Are we on track?")

4.6.1 The Wireframe

The wireframe layout of the Performance Overview page

A wireframe is a simple plan of where each visual goes, sketched before building, and used as the reference during the build.

AreaContentReasoning
TopTitle "Performance Overview", date and region slicers, logo top rightCEO and managers both need to filter; branding
LeftKPI cardsThat is where the eye starts. Most important numbers at the top, less important ones lower down
MiddleNet sales vs budget (month on month)The key thing CEO and managers want
RightRegional performance tableQuick regional view for managers and CEO
Bottom leftOne trend chart whose metric the user can swapA trend per KPI would clutter the page
Bottom rightTop subcategories by sales and least profitable subcategoriesGrowth contributors and profit drains

Exam tip: "the wireframe is just a plan, it is not cast in stone." In practice exploring and building happen together: build a chart, look at what it tells you, keep it if it helps the story, change it if not.

4.6.2 Branding through the Theme

Set branding once in the theme so every page follows it.

  1. In the Customize report theme pane, go to Page settings > Canvas background.
  2. Choose More colours and enter the company's code EEF2F6 (a light bluish colour replacing the earlier light grey). Set transparency to 0.
  3. Go to View > Themes, open the theme settings and rename the theme from "Superstore course theme" to "Superstore new course theme" (keep the base theme as is).
  4. From the Themes dropdown, save (download) the current theme as a new theme file. Save the PBIX too.

Page setup:

  1. Rename the page to Performance Overview (double-click the tab).
  2. Hide (not delete) the old Module 3 pages: right-click each tab > Hide page. They are kept because some visuals will be copied from them.
  3. Title: Insert > Text box, "Performance Overview", Segoe UI Semibold, about 28 pt. Fonts are usually set by company design rules; for classwork use your judgment.
  4. Logo: Insert > Image, then Style > Image > upload, place it top right and size it down.
  5. On both the text box and image, go to General > Effects and turn Shadow off, so no border or line interferes with the other visuals. Move a box with its three dots handle so the whole box moves.

4.6.3 The Slicers

Copy the existing region and date slicers from the old report pages (Ctrl+V; on a Mac, Command+V). Power BI asks whether to Sync visuals (keep the slicer persistent across pages). Choose Don't sync here, because the old pages will be deleted before publishing.

Then rebuild their fields from the shared tables, applying the one rule:

SlicerFieldSettings
RegionRegion[Region] (replacing the old field from Customer lookup)So both budget and sales respond
YearCalendar[Year]Style Dropdown; header "Select Year"; Selection > Single select on (no Select All) so one year shows at a time; default 2018 (the latest)
MonthsCalendar[Month Number]Style Between with the slider on; header "Select Months"; set to 1 to 6

The scenario. The data covers four complete years, but in real life you are partway through a year. The course pretends it is the end of June 2018, so the report must show the year to date (the first two quarters).

Why Month Number, not Month name. With month names, a June user would have to tick six boxes. Month Number allows a Between slider, so the user drags one handle to select January through June in one move.

Aligning: Shift-click all three slicers, then Format > Align > Align top. Turn on gridlines (View) so later visuals are easy to align.

4.6.4 KPI Cards (Multi-Card)

Use the new card visual (the card icon with a small lightning symbol), which holds several cards in one visual. Its advantage: format one set of settings and every card follows.

Fields: Total Net Sales, Total Profit, Profitability, Customers, Orders. Double-click each field in the well to rename it (Total Net Sales to Net Sales, Total Profit to Profit).

Layout:

  1. Format > Multi-card layout: change arrangement from Horizontal to Vertical (the cards sit on the left), and set Rows from 3 to 5 (five metrics).

Exam tip: format all cards first, then customise individual cards. If you set Net Sales alone to 20 pt and then set all cards to 32 pt, every other card changes to 32 pt but Net Sales stays at 20, because a card-specific setting overrides later "all cards" formatting. So do common formatting with Series: All, then adjust specific cards.

Common formatting (Cards, series All):

SettingValue
Accent barOn, blue, position left, width about 8
Callout valueRaised from 21 pt to 30 pt (later reduced to 28 pt to fit)
Label14 pt
Background / shadowCheck none is showing

Reference labels (comparisons on each card). Reference labels add comparisons beneath the main value. They must be set card by card, because each card's comparisons differ.

  1. Open Reference labels, pick the Net Sales card, and Add label: Sales vs Budget %, then Sales YoY %.
  2. They stack vertically; under Reference label layout change arrangement to Horizontal and alignment to Center.
  3. For all labels: title size 12, value size 14.
  4. The "Sales vs Budget %" title is cut off. Change Title > Title source from field name to Custom and type "Versus Budget". The % sign already appears in the number, so it is dropped from the title. Likewise the YoY label is titled "Y on Y".

Conditional colours on reference values (Value > Colour > fx conditional formatting > Format style Rules). The thresholds are typically user-specified; here anything above 95% of budget is treated as acceptable, not red.

MeasureRuleColour
Sales vs Budget %Minimum to less than 0.95Red
0.95 to less than 1Amber (dark amber/brown)
1 to MaximumGreen
Sales YoY %Minimum to less than 0Red
Greater than 0 to MaximumGreen

When choosing the field for the rule, the dropdown first shows only the main card metrics. Find the actual measure (Sales vs Budget %) in the _measures table.

Reading the cards (January to June 2018): net sales of about 247K is at 99.8% of budget, so amber; sales YoY is +12.2%, so green, and the plus sign comes from the custom format string. The other cards (Profit, Profitability, Customers, Orders) follow the same pattern with their own comparison measures and rules.

Final card polish:

  • Cards > Callout > Value alignment: Center (the label follows the value).
  • Divider: off (removes the odd line inside each card).
  • Cards > Layout > Callout size: the share of the card the callout (name plus value) occupies. Increasing it pushed the reference labels out; it was settled at about 56%, with the callout font reduced to 28 pt.

Common trap: canvas magnification changes how things look while designing. Design at about 50%; the published report typically displays larger (around 73% zoom in the service versus about 51% while building), so do not over-shrink fonts.

4.6.5 Net Sales vs Budget (Clustered Column Chart)

The CEO wants this by quarter, regional managers by month. So put both levels on the X-axis: the chart opens at months and the CEO can drill up to quarters. (The plan also adds YTD net sales and budget to the tooltip so both totals are available at a glance.)

  1. Insert a Clustered column chart (to show sales and budget side by side).
  2. X-axis: Calendar[Quarter], then Calendar[Month]. Time always comes from the Calendar.
  3. Y-axis: Total Budget Sales and Total Net Sales. With months 1 to 6 selected, six months show.
  4. Columns > Layout: turn Overlap on and raise Space between series to about 54%. The net sales column sits in front of the budget column, making net sales the hero with the target behind.
  5. Colours: budget grey (a slightly darker third shade) so it does not distract; net sales the regular blue.
  6. Check drilling works (month up to quarter and back down).
  7. General > Properties > Advanced options > Responsive: off, so the font sizes you set actually show.
  8. X-axis values 12 pt, Y-axis values 12 pt, no axis titles. As a rule, keep fonts at least 12 pt to stay readable (adjust for big screens versus laptops).
  9. Title: "Net Sales vs Budget", 18 pt, left-aligned. 18 pt is the standard for every chart title in the report.
  10. Subtitle: "Gray bars show budget figures", 12 pt, italic (a note to the viewer). It could go in the help tooltip instead, but a subtitle is more visible.
  11. With the subtitle explaining the bars, the legend is redundant: turn it off.

4.6.6 Regional Performance Table

  1. Click a blank canvas spot first (otherwise the selected visual gets swapped), then add a Table.
  2. Columns: Region[Region], Net Sales, Sales vs Budget %, Sales YoY %, Profitability.
  3. Totals: off. The totals already appear on the KPI cards; repeating them clutters.
  4. Rename headers in the field well (double-click, then press Enter for the edit to take): Net Sales, Versus Budget, Year on Year, Profitability.
  5. Column headers: text colour, centre aligned. Values are 16 pt, inherited from the theme.
  6. Conditional formatting: in the Build pane, on Versus Budget choose Conditional formatting > Font colour > Rules, based on the Sales vs Budget % measure (pick the measure itself, not the renamed column): minimum to <0.95 red, 0.95 to <1 amber, 1 to maximum green. Use the same colour rules as the KPI cards. Year on Year and Profitability: below 0 red, above 0 green.
  7. Layout > Auto-size width: "Fit to content" was kept (Grow to fit stretched columns to the visual).
  8. Style preset: None condensed looked cleanest (applying it drops the header colours, which can be re-added).
  9. Tables get no title by default: add "Regional Performance", 18 pt, bold to match.

What it shows: West is underperforming, East is close to target, Central and South are doing much better.

Common trap: in conditional formatting rules, Power BI can flip a typed value into "Percent" instead of "Number", and the final rule must end at Maximum. A red error mark in the rules dialog signals a logic error (for example all losses showing green because a boundary at 0 is ambiguous). Set each boundary type to Number and the last upper bound to Maximum.

4.6.7 One Trend Chart, Five Metrics: Field Parameters

The problem. There are five KPIs. Five trend charts would clutter the page. The goal is one chart where the user chooses which KPI it shows.

Why a normal slicer cannot do it. A slicer filters by the values in a column (2015, 2016...; Central, East...). Here the user needs to choose which measure the chart plots.

The solution: a field parameter. It creates a small table listing the measures available for selection. A slicer picks from that list and the chart shows whatever is picked.

Create it:

  1. In the model view, choose New parameter, then Fields (the other option is Numeric range).
  2. Name it with a common prefix so all parameter tables group together: P_OverviewMetric (each parameter creates its own small table, and the P_ prefix keeps them together).
  3. Add the fields: Total Net Sales, Total Profit, Profitability, Customers, Orders. Click Create.
  4. Power BI generates a DAX table. Edit only the text inside the double quotes (the display labels shown in the slicer), for example "Total Net Sales" to "Net Sales" to match the KPI names. Do not touch the measure references; those are what the chart uses.
dax
P_OverviewMetric = {
    ( "Net Sales", NAMEOF ( '_measures'[Total Net Sales] ), 0 ),
    ( "Profit", NAMEOF ( '_measures'[Total Profit] ), 1 ),
    ( "Profitability", NAMEOF ( '_measures'[Profitability] ), 2 ),
    ( "Customers", NAMEOF ( '_measures'[Customers] ), 3 ),
    ( "Orders", NAMEOF ( '_measures'[Orders] ), 4 )
}

The metric slicer:

  1. Add a Slicer with the P_OverviewMetric field. It behaves exactly like a slicer.
  2. Slicer settings > Style: Tile, arranged horizontally above the chart.
  3. Selection: Single select (one trend at a time).
  4. Values 14 pt (16 too big, 12 too small). Header: "Select Metric for Trend Chart".
  5. It rendered tiny because Responsive was on: Properties > Advanced options > Responsive off. Turn the background on under General > Effects.

The trend chart:

  1. Add a Line chart, aligned with the slicer so they read as one unit.
  2. X-axis: Calendar[Month]. Y-axis: the parameter field itself, not a measure.
  3. Selecting Orders, Customers, Profitability, Profit or Net Sales in the slicer switches the line, and the title updates automatically (for example "Profit by Month").
  4. Line > Interpolation type: Linear, so it shows actual values rather than smoothing them into curves.
  5. Responsive off; axis values 12 pt.
  6. Data labels on, 12 pt, position Above. With data labels showing values, turn the Y-axis off.
  7. Title 18 pt; subtitle off.

Memory hook: slicer filters values; field parameter swaps fields. One chart does the job of five.

4.6.8 Top 6 and Bottom 6 Subcategories (Top N Filters)

Top 6 by net sales:

  1. Click blank canvas, add a Table: Product lookup[Sub-category] and Total Net Sales (renamed Net Sales).
  2. Open the Filters pane. On Sub-category, change Filter type from Basic filtering to Top N, Show items: Top 6, By value: Total Net Sales, Apply filter.
  3. The table sorts by name by default. Use the visual's three dots > Sort by > Total Net Sales, descending.
  4. Title "Top 6 Subcategories" (18 pt) with subtitle "By net sales" (moving "by net sales" to the subtitle stopped the column header wrapping and saved space). Totals off.

Bottom 6 by profitability (copy the table and place it beside the first):

  1. Replace Net Sales with Profitability.
  2. Filter on Sub-category: still filter type Top N, but Show items: Bottom, 6, By value: Profitability. ("Although it says Top N, we can use Bottom in Show items", which the professor notes is "rather strange, but it's available".)
  3. Sort by Profitability ascending, so the least profitable shows first.
  4. Title "Bottom 6 Subcategories", subtitle "By profitability". Totals off.
  5. Style preset None condensed on both tables. Apply the same profitability colour rules as elsewhere (below 0 red, above 0 green), because once a metric is formatted one way it should look the same everywhere.

What it shows: Tables, Machines and Supplies make losses (as seen in earlier charts), and Bookcases, Chairs and Storage also have very low profitability.

4.6.9 Layout, Grouping and Interactions

Layout:

  • Shift-select visuals and use Format > Align > Align top to sit them on one line.
  • Format > Group related visuals (for example the metric slicer and the trend chart) so they move as one piece.
  • Resize so edges line up; the slicer area was shrunk and the trend chart enlarged.

Edit interactions. By default in Power BI, every visual interacts with every other visual. On this page the slicers do the filtering and the visuals are purely for reading, so cross-visual interactions are switched off.

  1. Select a visual, then Format > Edit interactions.
  2. On every other visual, click the None icon to turn the interaction off.
  3. Repeat for every visual. "It's not hard, but you just have to be thorough."
  4. Keep one interaction: the metric (parameter) slicer → trend chart.
  5. Double-check by clicking: choosing Customers in the metric slicer should change only the trend chart.

Exam tip: the Performance Overview page answers the brief's first question, "Are we on track?"

4.7 Page 2: Growth Drivers ("Where is growth coming from?")

4.7.1 Duplicating the Page and Reworking the Slicers

The growth and profitability pages look at change over the years and what influenced it. Keep the design consistent: right-click the Performance Overview tab > Duplicate page, rename it Growth Drivers, edit the header text, and delete the old charts (three dots > Remove), keeping header, logo and slicers.

Slicer changes:

ChangeReason
Delete the year slicerThis page compares across years, so it needs all years
Add a text box "Years: 2015 to 2018" (background on via Effects, aligned with the slicers)So users know what period they are looking at
Add a segment slicer (copy the region slicer, change the field to Customer lookup[Segment], header "Select Segment")Lets users explore Consumer, Corporate and Home Office
Keep the month slicerIt picks month numbers within every year. Set to January–June and every year shows January–June, which is a fair comparison when it is June 2018

Sync slicers so all pages use the same months and region:

  1. View > Sync slicers opens the pane.
  2. Select Select Months and tick the sync column for Performance Overview and Growth Drivers.
  3. Do the same for Select Region.
  4. Do not sync Select Year (Growth Drivers has no year slicer). Segment exists only here for now.

Common trap: the Sync slicers pane has two columns. The sync column controls whether selections are shared; the eye (visibility) column only controls whether the slicer is visible on that page. Ticking only the eye does not sync anything, which is why the month slicer at first did not propagate.

From here on the full year is used (months 1 to 12). Moving the slicer to the full year, the profitability card dropped to 12.4%, below the 13% target, even though the January–June view looked better.

4.7.2 KPI Cards with a Visual-Level Year Filter

The growth question has three parts, so the cards become:

CardAnswers
Net SalesOverall growth
CustomersMore customers?
Orders per CustomerOrdering more often?
Average Order ValueBigger orders?

Profit and Profitability move to the profitability page. Reference labels are removed: the trend charts on this page will show the year-on-year change, so the cards show only the 2018 figures for the selected months.

The year problem. With no year slicer, the cards show all four years combined. The overview page shows 689 customers for 2018. Fix it with a visual-level filter:

  1. Select the card visual and open the Filters pane.
  2. Drag Calendar[Year] into Filters on this visual.
  3. Set Basic filtering and tick 2018. The card now shows 689, matching the overview page.
  4. Lock the filter so users cannot change it.

Label the snapshot. Add a text box reading "2018" (18 pt, bold, centred) with "Selected months" below in italics, with a background, placed above the cards. Then Insert > Shapes > Line, rotated 90 degrees, as a vertical divider separating this "2018 at a glance" panel from the trend visuals (a designer could find other ways; this is enough here).

4.7.3 Three Trend Lines

  1. Line chart: Y-axis Customers, X-axis Calendar[Year].
  2. Interpolation: Linear (shows individual data points).
  3. Responsive off; data labels on, position Above, 12 pt; X and Y values 12 pt; title 18 pt, left as "Customers by Year".
  4. Copy twice and swap the Y-axis to Orders per Customer and Average Order Value.
  5. Shift-select all three: Format > Align > Align top, then Format > Align > Distribute horizontally to even out the gaps.
  6. Since data labels show values, the Y-axis values are turned off; the Format Painter copies formatting from one chart to another.

What the three lines say:

Lever2015 → 2018Reading
Customers590 → 689Rising, except a marginal drop in 2016
Orders per customerSteady increase (2.4 in 2018)Made up for the 2016 customer drop, a real growth driver
Average order value487 → 423, falling steadilySurprisingly not a growth driver

Conclusion: growth comes mainly from customers ordering more frequently, plus incremental customers, especially in 2017 and 2018. Bigger orders are not the answer: orders are getting smaller.

Worked example: change in average order value 2015 to 2018
Change=423−487487=−64487=−0.1314\text{Change} = \frac{423 - 487}{487} = \frac{-64}{487} = -0.1314

Answer: AOV fell about -13.1%, so order size worked against growth.

4.7.4 Waterfall: Which Segments Added the Growth?

A waterfall shows how you got from last year's sales to this year's and what each component contributed. Copy the waterfall from the Module 3 page (it looks broken because the old date hierarchy is gone) and rebuild its fields:

  1. Category: Calendar[Year]. Breakdown: Customer lookup[Segment]. Y-axis: Total Net Sales (renamed Net Sales).
  2. Visual-level filter on Year: Basic filtering, tick 2017 and 2018 only, lock it.
  3. It runs 2018 to 2017, so sort by Year, ascending.
  4. Format Painter from the line chart; Y-axis values off (data labels carry the numbers); data labels Outside end; legend off (increase/decrease colours are self-explanatory).
  5. Title from the user's question: "Where the 2018 growth came from", subtitle "Contribution of each segment to net sales growth".

Exam tip: titles are written in the words of the user question so it is obvious what each chart answers.

What it shows: starting from about 581K in 2017, Home Office contributed the most to 2018 growth, followed by Consumer; Corporate grew little.

With 2018 full-year net sales of about 703K against 2017's 581K:

Worked example: total 2018 growth bridged by the waterfall
Increase=703,000−581,000=122,000\text{Increase} = 703{,}000 - 581{,}000 = 122{,}000
YoY=122,000581,000≈21.0%\text{YoY} = \frac{122{,}000}{581{,}000} \approx 21.0\%

Answer: the segment bars together bridge roughly 122K of growth, about +21.0% for the full year.

4.7.5 100% Stacked Area: Has the Customer Mix Changed?

A 100% stacked area chart shows each segment's share over time. Copy it from the old page and rebuild:

  1. X-axis: Calendar[Year] (replacing the old order date), Y-axis: Net Sales, Legend: Segment.
  2. Format Painter added unwanted data labels, so it was formatted manually: Responsive off, X and Y values 12 pt, legend kept (needed here) at 13 pt (the theme default is 16).
  3. Title "Net Sales by Segment", subtitle "Segment mix over the years".

What it shows: Consumer's share has shrunk, so it is contributing less to growth than before; Corporate and Home Office have each grown a little and taken over Consumer's share.

Exploring the alternative dimension. Why segment and not category? Swapping Category (from Product lookup) into the legend gave an almost flat picture with hardly any change, so segment is more informative and stays.

Exam tip: keep the dimension that actually carries information. If both segment and category had been changing a lot, you could add another field parameter letting the user switch the chart between segment and category, as was done for the trend chart.

4.7.6 2018 Net Sales by Category, with Drill-Down

Within 2018, users want to know how each category and subcategory contributes.

  1. Click blank canvas (to avoid swapping the selected visual), add a Bar chart.
  2. X-axis: Total Net Sales; Y-axis: the category hierarchy from Product lookup (Technology, Furniture, Office Supplies).
  3. Responsive off; data labels on, 12 pt, display units Thousands (consistent with earlier visuals, instead of millions); X-axis values off; Y-axis values 12 pt.
  4. The tooltip already offers drill up and drill down (as do the icons on the visual).
  5. Title "2018 Net Sales", subtitle "Hover over a bar and use the tooltip to drill up or down" as an instruction to users. (A help tooltip, the question mark at the top of a visual, is the alternative place for instructions.)
  6. Visual-level filter: Year = 2018 (Basic filtering), locked. Without it, the chart would show all years, which was right for the trend charts but not for a 2018 snapshot.

Finishing the page: enlarge visuals into spare space, Format > Align > Align top and Distribute horizontally. For exact sizes on a formal dashboard, set identical dimensions under General > Properties > Size; here, eyeball with the gridlines. Then turn off all visual-to-visual interactions (Format > Edit interactions), visual by visual.

4.7.7 Reading the Growth Drivers Page

ElementReading (full year 2018 unless stated)
KPI panel689 customers, net sales 703K, 2.4 orders per customer, AOV 423
Trend linesCustomers up except a marginal 2016 drop; orders per customer steadily up; AOV down from 487 to 423
WaterfallHome Office contributed most to 2018 growth, then Consumer, then Corporate
Segment mixConsumer share falling, Corporate share rising steadily
Category barTechnology contributed the most; within Technology, Phones lead, then Copiers, Accessories, Machines. Within Furniture, Chairs sold most, then Tables, then Bookcases and Furnishings

Changing the month slicer to 1–6: all charts recompute for January–June of every year. The movements look broadly similar, and orders per customer is only 1.4 for the first six months, which makes sense because only half the year is counted. Users can still filter by segment or region, and the regional view lives on the overview page.

4.8 Page 3: Profitability Drivers ("Is growth profitable?")

4.8.1 Page Setup and KPI Cards

The user question governs everything on this page: is the growth profitable, or are some products, regions or discounts eating into profit?

  1. Duplicate the Growth Drivers page, rename it Profitability Drivers, change the header word Growth to Profitability.
  2. Keep the Years label, month, region and segment slicers, and the "2018 / Selected months" panel.
  3. Remove the old charts.

KPI cards: remove all growth metrics and add Total Profit, Profitability, Total Discount, Discount %. The discount cards are there because one of the questions is whether discounting affects profitability. Because this is the copied card visual, its Year = 2018 visual filter comes with it, so the cards already show 2018.

Profit and profitability are related, and so are discount dollars and discount %. Instead of four trend charts, use two combo charts (line and clustered column).

Profit and profitability:

  1. X-axis: Calendar[Year]; Column y-axis: Total Profit; Line y-axis: Profitability.
  2. Line interpolation Linear; Responsive off; X and Y values 12 pt.
  3. A combo chart has a secondary Y-axis for the line. Turn axis titles on for both axes (14 pt).

Exam tip: in every combo chart, show which axis belongs to which measure by turning on the axis titles. That is best practice for all combo charts.

  1. Rename "Total Profit" to Profit; legend 13 pt; title 18 pt.
  2. Colours: profit in green (lighter green columns, darker green line), because profit is "what we are after".

Discount and discount % (copy the combo chart):

  1. Swap the column to Total Discount (renamed Discount) and the line to Discount %.
  2. Colours: discount in red, light red columns (red with transparency around 57% or more), solid red linear line, because discounting brings down the bottom line.

What the two charts show:

ChartReading
ProfitRose steadily from 2015 to 2018
Profitability, Jan–Jun viewWent up, dipped in 2017, then rose slightly in 2018
Profitability, full-year viewRose and then dropped in 2018; the first half of 2018 did much better, so the second half pulled profitability down
DiscountIn 2018 discounts grew much faster than sales; discount % rose to almost 20%

Side by side, rising discount % and falling profitability suggest the hypothesis that discounting is hurting profitability. The remaining visuals test it.

Common trap: the same chart can tell different stories depending on the month slicer. The January–June view hid the second-half profitability decline that the full-year view exposes.

4.8.3 Where Is Profit Thin? The Region by Category Matrix

Reuse the Module 3 matrix (2018 profitability by category and subcategory across regions):

  1. Copy it onto the page; Format > Subtotals off so it shows at subcategory level, still drillable.
  2. Style preset: Minimal (cleaner here).
  3. Visual-level filter: Year = 2018. Rule of thumb on these pages: wherever a visual is not a trend, it shows 2018.
  4. Title "2018 Profitability by Region and Category", 18 pt. Leave the hierarchy collapsed so users drill as needed. Users generally know how to drill, so no instruction subtitle is added (though one could be).
  5. Leave room: when a user expands a category the matrix needs space.

What it shows: profitability varies a lot by region.

  • Bookcases: East is highly unprofitable at -9.4%, while Central at least breaks even or does slightly better.
  • Tables: loss-making everywhere, but West does relatively better.
  • Drilling further down reaches individual product names.

4.8.4 Discount vs Profitability Scatter with a 13% Target Line

Reuse the Module 3 scatter chart and re-map it to test the discount link directly:

Field wellModule 3 versionModule 4 version
X-axisNet salesDiscount %
Y-axisProfitabilityProfitability
SizeDiscountNet sales (still shows how big each subcategory is)
LegendCategoryCategory (kept, to compare e.g. all Technology subcategories)
  1. Visual-level filter: Year = 2018.
  2. Title "2018 Impact of Discounting on Profitability", 18 pt, left-aligned; subtitle removed.
  3. Category (data) labels made smaller to stop overlap; hovering shows full detail in the tooltip anyway. Legend smaller and moved top right.
  4. Target line: the chart already has a Y-axis constant line at 0% (added in Module 3). In the same reference line options, under Y-axis constant line, add a second line at 13%, the profitability target. Optionally shade the area below it, kept extremely light so it does not overpower the loss area or bubble colours.

What it shows: as discount % rises, profitability falls. In Technology, subcategories with low discount % have much higher profitability. Subcategories such as Binders show how upping the discount moves a product relative to the 13% line. In one view you see who sits above and below target.

4.8.5 Impact of Discount Level: When Do We Start Losing Money?

The scatter works at subcategory level across all discount levels. To dig deeper, look inside one subcategory at profit at each discount level, using the Line Discount % column.

  1. Add a Column chart (click blank canvas first).
  2. X-axis: Line Discount %. It is a column, so find it in order_products, not in _measures.
  3. Y-axis: Profitability (measure).
  4. X-axis > Type: Power BI treats it as Continuous. There are only 12 discrete discount levels, so change it to Categorical; each level now shows as its own bar.
  5. Visual-level filter: Year = 2018.
  6. Sorting: the axis read 0, 10, 20, 15... because it was sorted by profitability. Use Sort by > Line Discount %, then switch to Sort ascending, so discount increases left to right.
  7. X and Y values 12 pt. The axis showed decimals, so go back to the Line Discount % column and set its format to 0 decimals.
  8. Title "2018 Impact of Discount Level", 18 pt (it had defaulted to 15).
  9. Tooltips: add Orders. Because only 2018 is shown, some discount levels may have few orders, so the count shows how much weight to put on each bar.
  10. Columns > Colour > fx > Rules on Profitability: minimum (Number) to less than 0 → red; 0 to maximum → green. Red bars instantly mark loss-making discount levels.
  11. Subcategory slicer: copy the segment slicer, header "Select Subcategory", field Sub-category (product names would be too long), Selection: Single select on so only one subcategory shows at a time and there is no "All".

Exam tip: the threshold is a design choice made with the users. Here red means loss (below 0); the alternative is red for anything below the 13% target.

Reading the chart:

Subcategory (2018)Discount levels usedProfitability pattern
AccessoriesOnly 0% and 20%Both profitable; tooltips show 150 orders and 91 orders
MachinesFrom 0% up to 70%Up to 30% still makes money (though below the 13% target); beyond 30% it is entirely red

The two charts work together: the scatter says that in general higher discount % means lower profitability; the column chart, filtered to one subcategory, shows at what discount level that subcategory starts losing money.

Interactions: the only in-page interaction kept is the subcategory slicer → discount-level chart. Turn off all other visual-to-visual interactions, so only slicers do the work.

4.9 Navigating Between Pages

Give each page room for an expanded matrix, then add a way to move between pages. Power BI has a ready-made page navigator.

  • It updates automatically when pages are renamed or added.
  • It is meant to leave out hidden pages by default; in practice it first showed them, so switch them off.

Steps (on Performance Overview first, then copy-paste):

  1. Insert > Buttons > Navigator > Page navigator.
  2. If hidden pages appear, go to Pages > Options and turn Hidden pages off.
  3. Make space at the top (move the title down, move slicers right so they clearly belong to the page).
  4. Style > Text size 13 pt, and check every state: Default (resting), Hover, Pressed and Selected. Selected had stayed at 10.5 pt, so it was also set to 13.
  5. Copy the navigator to Growth Drivers and Profitability Drivers and adjust slicer spacing.

The current page is highlighted in colour (blue) and the others are white. In Power BI Desktop, Ctrl + click a button to navigate.

Exam tip: add the navigator before duplicating pages, so it is copied automatically. It was added late here only because the concept had not been introduced yet.

The finished report: one page per question in the brief.

PageQuestion answered
Performance OverviewAre we on track against budget this year?
Growth DriversWhere is our growth coming from?
Profitability DriversIs the growth profitable?

4.10 Publishing to the Power BI Service

4.10.1 Preparing and Publishing

From Power BI Desktop to the Power BI service

Publishing sends a report to the Power BI service in the cloud, where people open it in a browser, on their phone, or in Microsoft Teams.

Tidy up first:

  • Final formatting pass: align and distribute the top elements, enlarge tables so no scroll slider shows.
  • Delete the hidden Module 3 pages (cross on each tab, confirm), so the published report has only the three pages. Save.

Publish:

  1. Home > Publish ("Publish this report online in the Power BI service").
  2. Sign in (a Power BI service account is needed; students can create one with their institute email).
  3. Choose a workspace. By default Power BI publishes to My workspace. In a company, reports live in shared workspaces so a team can work on them and colleagues get access to everything in one place. (The course uses a workspace called BBA IIMB.)
  4. When it finishes, open the report from the success message.

Publishing creates two items in the workspace:

ItemWhat it is
ReportWhat people see
Semantic modelThe back end: data, relationships and measures that fuel the report

Republishing overwrites both items. If you change the Desktop file or refresh its data, publish again and both are replaced.

Data refresh. The report shows the data as it was when published. When data changes, the report must refresh; the service can refresh on a schedule (covered in a later session).

In the service, the page tabs that sat at the bottom in Desktop appear in the left navigation, which can be closed because the page navigator already does the job.

4.10.2 Using the Report in the Service

FeatureWhat it does
View menuFull screen, Fit to page, and Show visuals as tables (for users who want the numbers behind charts)
ZoomThe report displays at about 73% in the service, against about 51% while building, so it looks neater than in Desktop
Synced slicersSelecting West on one page changes all three pages, because the region and month slicers were synced
Focus modeExpands one visual to fill the page, with full tooltips and drill-down. Useful when a crowded page makes charts tiny or confusing
Copy as image with captionCopies a visual
More options > Show as a tableShows the underlying numbers, handy for exporting
PinPins a visual to a dashboard (see 4.11)

Export and sharing options:

OptionNotes
Download this fileDownloads the .pbix for reuse
Manage permissionsControl who can access
PrintPrints the page
Embede.g. on a SharePoint website
Export to PDFStatic copy
Export to PowerPoint: as imageEach page becomes a slide
Export to PowerPoint: embed live dataLike having Power BI inside PowerPoint: viewers interact with it, and changes in the report flow into the slides. The viewer needs a Power BI licence. Ideal for recurring monthly or quarterly decks with the same format, instead of cutting and pasting each time
Teams tabAdds the report as a tab so a team can see it without entering Power BI

4.10.3 Who Edits Where

There are two ways to change a published report:

RouteWhoEffect
Download, edit in Power BI Desktop, republishThe author, or collaborators working togetherDesktop is the master copy. Republishing overwrites every version in the service
Edit directly in the Service (Edit button)A user who may have no Desktop licence, making personal or temporary changes (e.g. a different view for their boss)Almost all Desktop editing tools are available (visualisations, data pane, formatting, changing a visual type). But service edits do not flow back to the Desktop file and are lost when the author republishes

Edit rights can be controlled: withhold them, or grant them to capable users who want to explore. If you edit in the service yourself, first File > Save a copy and edit the copy.

Common trap: "I fixed it in the service" is not permanent. The next Desktop publish overwrites it.

4.11 Dashboards for Specific Users

4.11.1 Report vs Dashboard

After the report is shown to users (it becomes their quarterly review), two new requests arrive for between reviews:

  • CEO: a quick monthly snapshot, just the overview page, without going through the whole report.
  • Regional managers: a monthly view of their own region, with specific visuals from different pages (some from overview, growth and profitability) on one screen, and possibly alerts when a number moves.

Both are met by a dashboard: a single screen of tiles pinned from one or more reports. Power BI distinguishes the two:

ReportDashboard
PagesMultiple pagesAlways a single screen
Built inPower BI Desktop (or edited in service)Power BI service, by pinning
PurposeExploring: slicers, drill-down, many pagesA quick look: tiles from one or many reports
Clicking an elementInteracts within the reportClicking a tile opens the source report
EditingFullVery limited: add a tile (text box, image, etc.), move, resize, delete tiles

4.11.2 Pin a Live Page: the CEO Dashboard

Pin live page pins a whole report page. It stays interactive: the slicers work on the dashboard, and because it is the page itself, changes to that page in the report show up on the dashboard when the page refreshes.

  1. Open the Performance Overview page in the service.
  2. On the top ribbon, next to Save, click Pin to a dashboard (save any unsaved changes first).
  3. Choose New dashboard and name it Superstore CEO Dashboard (an Existing dashboard option also exists).
  4. Click Pin live, then Go to dashboard. View full screen, Fit to width.

Testing: choosing South and West in the slicer changes the dashboard; Select all restores it. The page navigator buttons do nothing on the dashboard because only one page is pinned, so ideally remove the navigator before pinning.

The dashboard is saved in the workspace alongside the report and semantic model. Dashboard options for the CEO: save a copy, print, share, chat in Teams, subscribe (for example 4 or 5 senior people subscribe so the dashboard refreshes for them too), and comment. Edit offers little beyond adding a tile: dashboards are for people who use them, not edit them.

4.11.3 Pin Visuals: the Western Region Dashboard

For a regional manager, pin selected visuals, after filtering to their region:

  1. In the report, set the Region slicer to West.
  2. On Performance Overview, on the KPI cards, click Pin visual > New dashboard > name Western Region Dashboard > Pin.
  3. Pin Top 6 Subcategories > Existing dashboard > Western Region Dashboard.
  4. On Growth Drivers, pin Orders per Customer.
  5. On Profitability Drivers, pin the profit and profitability combo chart (it did not fit well and was deleted as a tile), then pin Bottom 6 Subcategories instead.
  6. On the dashboard, move and resize tiles; Edit > Add a tile > Text box titled "West Performance Snapshot" as a header. Images can be added too.

Rules of tiles:

  • Each tile keeps the filters it was pinned with. Pinned with Region = West, the whole dashboard always shows West data.
  • Tiles update with the data at every refresh.
  • Alerts can be set on tiles (covered in a later session).
  • Clicking a tile takes the user back to the source report.

So assembling a dashboard means pulling the visuals you want from various report pages (or reports) onto one screen, adding text and images, so it fits one user's needs.

4.11.4 Pin Live Page vs Pin Visual

Two ways to build a dashboard from a published report
Pin live pagePin visual
Unit pinnedA whole report pageOne visual (tile) at a time
InteractivityAlmost all of the report's interactivity, including working slicersA static tile that opens the report when clicked
Report changesAppear on the dashboard when the page refreshesTile keeps the filters it was pinned with
Mixing pagesOne page at a time per pinVisuals from many pages or reports on one dashboard
FitsThe CEO: one interactive overviewThe regional manager: a custom mix filtered to West

4.11.5 Sharing, Subscriptions, Comments and Licences

  • Sharing reports or dashboards requires a Power BI Pro licence (or the free trial) for both the sharer and the colleague. You can control whether recipients can re-share.
  • A free account cannot share or open shared content, but can still publish to the cloud, use and edit its own content there.
  • Subscriptions: add people who get the dashboard and its updates, useful when many users look at the same dashboard.
  • Comments: users comment on the dashboard and can @mention colleagues on a shared dashboard to discuss performance.
  • Mac users: build in Power BI Desktop on a Windows machine, publish, then open and continue editing in the cloud from the Mac.

Exam tip: report or dashboard? Give a report to someone who needs to explore (multiple pages, slicers, drill-down). Give a dashboard to someone who needs a quick look (tiles from one or more reports, one click back to the detail).

4.11.6 The Whole Journey

The module started with a brief, worked out the data and measures needed, built the data model, explored while building, designed the report around the users' three questions, published it, and gave users ways to view, explore and share it.

StepKey artefact
BriefThree questions, 13% target, monthly regional budget, branding
DataBudget table, Region table, Calendar (marked as date table), star schema
Measures_measures table, distinct counts, discount %, budget, time intelligence, ratios
ReportPerformance Overview, Growth Drivers, Profitability Drivers, page navigator
ServicePublished report and semantic model in a workspace
DashboardsCEO (pinned live page), Western Region (pinned visuals)

Report-wide design standards used throughout:

ElementStandard
Page backgroundEEF2F6, set in the theme
Page titleSegoe UI Semibold, about 28 pt
Chart titles18 pt, left-aligned (bold on tables)
Subtitles12 pt italic, used for notes and instructions
Axis values and data labels12 pt minimum
Legends12–13 pt, or off when a subtitle explains the colours
ResponsiveOff on charts and slicers, so set font sizes hold
Percentages1 decimal; YoY with sign via custom format
CurrencyUSD, 0 decimals
Colour logicBudget grey, actuals blue, profit green, discount red; RAG for versus budget (below 95% red, 95–100% amber, 100%+ green); red/green for YoY and profitability around 0
InteractionsVisual-to-visual off; only slicers (and the metric or subcategory slicer for its chart) filter
Non-trend visuals on Growth and Profitability pagesLocked visual-level filter Year = 2018

Reflection questions:

  • For your own organisation, which three questions would a CEO and a regional manager each ask, and which tables and measures would the model need to answer them?
  • On the discount-level chart, would you colour bars red below 0% or below the 13% target, and why?