MSBA-132 · Lesson 5 of 12 · 21 min
Building visuals
▶ Video coming soon A video version of this lesson is on the way.
With the data loaded, Kwabena opened Report view and faced the blank canvas that every Power BI author knows. The Visualizations pane offered dozens of chart types, and Maribeth's first instinct was to try them all. Kwabena stopped her with the advice his first manager had given him: start from the question, not the chart. Every visual on a report page should answer a question someone actually asks. This lesson covers how visuals are built, how to choose them, and the measures that feed them.
How a visual is built
Building a visual takes three moves. First, choose a visual type in the Visualizations pane, or simply select fields in the Data pane and let Power BI pick a type for you. Second, drag fields into the visual's field wells, such as X-axis, Y-axis, Legend, Values or Tooltips; the wells change with the visual type. Third, open the Format pane, shown as a paintbrush, to set titles, labels, colors, axes and other properties.
When a numeric column such as Minutes goes into a Values well, Power BI summarizes it automatically, usually with Sum. This is an implicit measure. It is convenient for quick exploration, but it hides the calculation and can produce nonsense: summing a column of student ID numbers is a classic beginner mistake, and Power BI will happily do it if the column is stored as a number. Columns that are numbers but should never be added up, such as IDs and years, can be set to Don't summarize in the column properties.
Measures
The better practice is to write explicit measures: named calculations written in DAX (Data Analysis Expressions), Power BI's formula language. A measure is calculated at the moment a visual needs it, in the context of whatever filters apply, so the same Total Hours measure shows the overall figure on a card, figures per campus in a bar chart and figures per week in a line chart, without any change to the formula. Kwabena created a separate table called _Measures to hold them, a common convention that keeps measures easy to find.
Total Minutes = SUM ( 'Tutoring Session'[Minutes] )
Total Hours = DIVIDE ( [Total Minutes], 60 )
Sessions Booked = COUNTROWS ( 'Tutoring Session' )
No-shows =
CALCULATE (
COUNTROWS ( 'Tutoring Session' ),
'Tutoring Session'[Status] = "No-show"
)
No-show Rate = DIVIDE ( [No-shows], [Sessions Booked] )Three patterns in those measures are worth noticing. Measures can refer to other measures, so Total Hours reuses Total Minutes rather than repeating the SUM. DIVIDE is safer than the / operator, because it handles division by zero gracefully. CALCULATE changes the filters a calculation uses, here counting only no-show sessions; it is the most important function in DAX, and MSBA-261 covers it in depth. For this course it is enough to read a measure and know that it responds to the filters on the page.
Measures and calculated columns are often confused. A calculated column is computed once per row when the data refreshes and stored in the model, like a column that labels each session as morning or afternoon. A measure is computed on demand from the current filters and stores nothing. Use a calculated column when you need to slice or filter by the result; use a measure when you need a number that adds up differently depending on the view. Where possible, create row-level columns in Power Query instead, which keeps the model lean.
Each measure should be formatted once in the model: Total Hours with one decimal place, No-show Rate as a percentage with one decimal. Formatting in the model, rather than in each visual, means every report that uses the measure displays it the same way.
Choosing a visual
Choosing a visual is about matching its strengths to the question.
| Visual | Best for | Watch out for |
|---|---|---|
| Bar and column charts | Comparing values across categories | Sort bars by value unless the categories have a natural order |
| Line chart | Trends over time | Use a continuous date axis; avoid more than a handful of lines |
| Card and KPI | One headline number; a KPI adds a target and trend | Give the number context, such as a comparison with last term |
| Table and matrix | Looking up exact values; a matrix adds row and column groups | Large tables are hard to scan; add conditional formatting |
| Scatter chart | The relationship between two measures | Label or highlight the points that matter |
| Map and filled map | Data with a geographic dimension | Location names must be unambiguous; maps can need admin settings |
| Pie and donut | A few parts of one whole | Hard to compare more than three or four slices |
| Slicer | Letting readers filter the page | Too many slicers make a page confusing |
| Gauge | Progress toward a single target | Uses a lot of space for one number |
Kwabena's first page answered the dean's first question, tutoring hours by campus and subject, with a card showing Total Hours, a bar chart of hours by campus sorted from highest to lowest, and a matrix of hours by subject area and campus. A slicer for term let her compare fall with winter.
Worked problem
Which visual?
Choose a visual for each request: (a) how the no-show rate changed week by week this term; (b) the exact number of sessions each tutor ran, so coordinators can check pay claims; (c) whether course sections with larger enrollments book more tutoring hours.
Show solution
- (a) A measure over time: a line chart with Week on the axis and No-show Rate as the value.
- (b) Exact values to look up for many people: a table with Tutor and Sessions Booked, sorted by tutor name.
- (c) The relationship between two measures across many sections: a scatter chart with enrollment on one axis and Total Hours on the other, one point per section.
Answer: A line chart, a table and a scatter chart.
Formatting with purpose
The Format pane has hundreds of settings, and the temptation is to use them all. Good formatting removes rather than adds. Kwabena's checklist for every visual was short: a title that states what the visual shows, such as "Tutoring hours by campus, current term"; axis labels only where they help; data labels where readers need exact values; one highlight color for the thing that matters and neutral gray for the rest; and no 3D effects, shadows or decorative backgrounds. Report-wide colors and fonts come from a theme, chosen on the View tab, so that every page and visual matches without setting colors one at a time. Lumenvale's communications office supplied a theme file with the college colors, which Kwabena imported once.
Conditional formatting draws attention to values that matter. In a table or matrix, background colors, font colors, data bars or icons can follow rules or a color scale. Kwabena added data bars to the hours column in the subject matrix, so the biggest subjects stood out at a glance, and set the No-show Rate value to turn red above a threshold the Student Success office chose. Conditional formatting can also be driven by a measure that returns a color, which keeps the rule in one place.
Accessibility
Reports should work for everyone who needs them, including people who use screen readers, navigate by keyboard or see color differently. Power BI supports this, but the author has to do the work:
- Give every visual a clear title and alt text, set in the Format pane under General. A screen reader reads the alt text; a short description of what the visual shows and its main message is enough.
- Do not rely on color alone. Pair red and green with labels, icons or position, because red and green look alike to many readers.
- Keep contrast high between text and background, and avoid small fonts.
- Set the tab order in the Selection pane so keyboard users move through visuals in a sensible sequence, and hide decorative shapes from the tab order.
- Check the page in high-contrast mode and with the keyboard before publishing.
Lesson 11 returns to quality more broadly, and MSBA-262 covers report accessibility in depth.
Custom visuals and the end of Q&A
Beyond the built-in visuals, AppSource offers many additional visuals made by Microsoft and partners. Some are certified, meaning Microsoft has checked that they do not send data outside the report. Organizations often restrict which custom visuals authors may use, through an admin setting or an approved list, because an uncertified visual can access the data it displays. Rupert's policy at Lumenvale allowed only certified visuals.
One familiar visual is on its way out. The Q&A visual, which let readers type questions such as "hours by campus last term" and see an answer as a chart, was deprecated in December 2025 and is due to be fully retired from Power BI in December 2026, along with Q&A on dashboards and the Q&A setup tools. Microsoft's replacement is Copilot, covered in lesson 8. Existing reports that contain Q&A visuals will show them as no longer working after retirement, so authors should remove them and point readers to Copilot instead.
Building a page that reads well
A report page is read like a page of text: top left first, then across and down. Kwabena put the headline card at the top left, the campus bar chart beside it and the detailed matrix below. He aligned visuals to a grid using the Format tab's align and distribute options, kept consistent spacing and limited the page to five visuals plus a slicer. Before showing it to anyone, he did a simple test: could Maribeth, who had not seen the page before, say in ten seconds what it was about? She could, which meant the page was ready for the next step, interactions and drill-through, in lesson 6.
Sorting, top N and totals
Small choices about order make a large difference to how quickly a reader understands a chart. By default, Power BI sorts a bar chart by its value in descending order, which is usually right. When categories have a natural order, such as days of the week, terms or month names, sort by that order instead. Month names sort alphabetically unless told otherwise, putting April first and September last; the fix is to give the month column a sort by column, such as a month number, in the column tools.
Long category lists overwhelm a page. A Top N filter in the Filters pane keeps only the top or bottom items by a measure, such as the ten subjects with the most tutoring hours. Kwabena used a top 10 filter on the subject chart and added a note in the title, "Top 10 subjects by tutoring hours", so readers knew the chart was not the whole list.
Tables and matrices show totals and subtotals by default. Totals of measures are calculated, not simply added up, which matters for ratios: the No-show Rate total in a matrix is the rate across all sessions, not the sum of the campus rates. That is almost always what readers want, but it surprises people who check the total with a calculator.
Worked problem
Building the campus card and chart
Kwabena wants a card showing total tutoring hours this term and a bar chart of hours by campus, highest first, that both respond to a term slicer. Which fields and settings does he need?
Show solution
- Card: put the Total Hours measure in the Fields well; format the measure with one decimal place in the model.
- Bar chart: Campus on the Y-axis, Total Hours on the X-axis; sort by Total Hours, descending.
- Slicer: Term from the Date table, with single select on.
- Check interactions: the slicer filters both visuals; selecting a campus bar cross-filters the card.
- Add titles and alt text, such as "Tutoring hours by campus, current term".
Answer: A card with Total Hours, a sorted bar chart of Total Hours by Campus and a Term slicer. Because Total Hours is a measure, both visuals respond to the slicer automatically.
Common mistakes
MistakeRelying on implicit measures and letting Power BI sum every number.
InsteadWrite explicit, formatted measures in DAX, and set ID and year columns to Don't summarize.
MistakeUsing / to divide and getting errors when there were no sessions.
InsteadUse DIVIDE, which returns a blank when the denominator is zero.
MistakeChoosing a pie chart to compare twelve subjects.
InsteadUse a sorted bar chart; pie charts only work for a few parts of one whole.
MistakeLeaving alt text blank and using color as the only signal.
InsteadAdd alt text to every visual and pair color with labels or icons.
Summary and key terms
- Visuals are built by choosing a type, filling field wells and formatting.
- Explicit DAX measures are reusable, formatted once and respond to page filters; implicit measures hide the calculation.
- DIVIDE handles division by zero; CALCULATE changes the filters a calculation uses.
- Choose visuals from the question: bars to compare, lines for trends, cards for headlines, tables for exact values, scatter for relationships.
- Themes, conditional formatting and restraint make visuals clearer; alt text, contrast and tab order make them accessible.
- The Q&A visual is being retired in December 2026 in favor of Copilot.
- Field well
- A slot in a visual, such as Axis or Values, that receives fields.
- Implicit measure
- An automatic summary, such as Sum, created when a numeric column is added to a visual.
- Explicit measure
- A named DAX calculation stored in the model and reused by visuals.
- DAX
- Data Analysis Expressions, the formula language for measures and calculated columns.
- Calculated column
- A column computed per row during refresh and stored in the model.
- Conditional formatting
- Formatting that changes with a value, such as colors or data bars.
- Alt text
- A text description of a visual that screen readers announce.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why is DIVIDE preferred over the / operator in measures?
Show answer
DIVIDE returns a blank (or an alternate result) when the denominator is zero instead of an error.
When should you use a calculated column rather than a measure?
Show answer
When you need to slice, filter or group by the result for each row.
Name two steps that make a report page more accessible.
Show answer
Any two of: alt text, not relying on color alone, high contrast, a sensible tab order, testing with keyboard and high-contrast mode.
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.