Sub topic 17
A repeatable process for choosing a visual
This chapter ties the earlier chapters into one process you can run on every new visual. It assumes you can build a basic visual on the Power BI Desktop canvas, that your data model already has tables and relationships, and that you know the basic aggregations (sum, average, count). It also assumes you have met the main built-in visuals, field types and common pitfalls.
Why you need a process
Choosing a visual from habit or from whatever looks attractive produces reports that are hard to read. A fixed sequence of questions takes less effort and gives more consistent results. It also gives you a way to explain a design choice to a colleague. You can say "the question was a trend, the field was a date, so I used a line chart" instead of "it looked good."
The process has seven steps. You can run through them in a couple of minutes for a simple visual. For a complex one, each step becomes a short check against the finished design.
- State the analytical question in one sentence.
- Identify the fields and their types.
- Define the measure that answers the question.
- Map the question to a candidate visual.
- Test the candidate against common pitfalls.
- Format for clarity and accessibility.
- Add interactivity and check the result with a reader.
Step 1: State the question
Write the question as a full sentence before you touch the canvas. A good question names a measure, a way of splitting it, and sometimes a time frame or comparison.
- Weak: "Show sales."
- Better: "Which product categories brought in the most sales last quarter?"
- Better still: "Is monthly sales growth this year ahead of last year?"
The verb in the sentence usually tells you the analytical task. "Which is biggest" is ranking. "How has it changed" is a trend. "What share" is composition. "Is there a link between" is a relationship. "Where" is location. "How are values spread" is distribution. "What is the number" is a single value.
If you cannot write the question, you are not ready to choose a visual. Ask the person who requested the report what decision the visual should support.
Step 2: Identify the field types
List the fields the question needs and classify each as categorical, numeric, date/time or geographic. The types narrow the choice quickly:
- A date field on the axis points to a line or area chart.
- A categorical field with a measure points to a bar or column chart.
- Two numeric measures point to a scatter chart.
- A geographic field points to a map or filled map.
Also note the cardinality of each categorical field, meaning how many distinct values it has. Five categories fit almost any chart. Two hundred do not fit a bar chart without a Top N filter or a scroll bar. Cardinality often decides between a chart and a table.
Step 3: Define the measure
Visuals show measures, so decide what number answers the question. Prefer an explicit DAX measure over dragging a raw column into the Values well, because a measure has a clear name, can be reused, and behaves the same way in every visual.
Total Sales = SUM ( Sales[SalesAmount] )If the question involves a comparison with an earlier period, build the comparison into measures. A prior-year measure needs a marked date table.
Sales LY =
CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )Sales YoY % =
DIVIDE ( [Total Sales] - [Sales LY], [Sales LY] )DIVIDE returns a blank instead of an error when the prior-year value is zero or blank. That matters for new products with no history.
If the question is about share, build the denominator into the measure. This version ignores any filter on category, so each category is divided by the grand total.
Sales % of Total =
DIVIDE (
[Total Sales],
CALCULATE ( [Total Sales], ALL ( Product[Category] ) )
)For a distribution question, you may need a calculated column that groups a numeric field into bands. A column chart can then count products per band.
Price Band =
SWITCH (
TRUE (),
Product[ListPrice] < 50, "Under 50",
Product[ListPrice] < 200, "50 to 199",
"200 and over"
)Putting Price Band on the axis and a count of products in Values gives a simple histogram-style view. Note that band labels sort alphabetically by default, so use Sort by column with a numeric helper column if the order matters.
Step 4: Map the question to a candidate visual
Use a lookup table as a starting point. It is a default, not a rule.
Question -> Typical visual
Compare categories -> Clustered bar or column chart
Rank categories -> Bar chart sorted by value
Change over time -> Line chart
Parts of a whole (few parts) -> Stacked bar, donut or treemap
Bridge from start to end value -> Waterfall chart
Relationship between 2 measures -> Scatter chart
One headline number -> Card or KPI
Exact values, many fields -> Table or matrix
Values by location -> Map or filled mapAdjust the default using what you learned in steps 1 to 3:
| Situation | Adjustment |
|---|---|
| Many categories with long names | Use a bar chart rather than a column chart, so labels stay horizontal |
| Few time points (for example 3 years) | A column chart can be clearer than a line |
| Readers need exact values | Add a table or matrix, or turn on data labels |
| Target exists for a single number | Use a KPI or gauge rather than a plain card |
| Two parts only | A single number or a stacked bar is enough |
Choose one candidate. Do not put two visuals on the page that answer the same question unless they serve different readers.
Step 5: Test against pitfalls
Before you format, check the candidate against the common mistakes. Each failure sends you back to step 4.
- Does a pie or donut have more than about five slices? Replace it with a sorted bar chart.
- Does a bar or column axis start above zero? Bar length encodes value, so a truncated axis exaggerates differences.
- Is a line chart used for unordered categories? A line implies order and continuity, so switch to bars.
- Does a stacked chart ask readers to compare the middle segments? Those segments do not share a baseline, so use a clustered chart or a 100% stacked chart.
- Is a map showing raw totals where regions differ greatly in size or population? Consider a rate or a per-capita measure.
- Is a dual-axis chart combining unrelated scales? Readers may infer a link that does not exist.
- Does the visual use 3D effects or decoration that adds nothing?
Step 6: Format for clarity and accessibility
Formatting turns a correct visual into a readable one.
- Sort by the value that matters. Rank charts sort by measure, and time charts sort chronologically.
- Give the visual a title that states what it shows, ideally including the measure and period.
- Use data labels only where exact values help. Turn off gridlines or labels that repeat the same information.
- Use color for meaning. Highlight one category or one series, and keep other bars a neutral shade.
- Do not rely on color alone. Add labels, patterns, or distinct markers, and check contrast.
- Add alt text to each visual and set a sensible tab order so screen reader users can follow the page.
- Format numbers with consistent units, such as thousands or millions, and show the unit in the title or axis.
Step 7: Add interactivity and review
Interactivity should serve the question, not decorate it.
- Cross-filtering lets a selection in one visual filter others. Check that every visual reacts sensibly. If one should not respond, use Edit interactions to turn it off.
- Slicers let readers filter by category or date. Place them consistently and limit them to fields readers need.
- Drill-down suits a hierarchy such as Year, Quarter, Month, or Category and Product.
- Tooltips can carry secondary measures so the main visual stays simple.
Then review. Show the page to someone who was not involved in building it and ask them to state the answer to the question from step 1. If they cannot do so within a few seconds, return to step 4 or step 6.
When a custom visual is justified
Stay with built-in visuals by default. They are supported by Microsoft, render consistently, and work with features such as export and accessibility settings. Consider a custom visual from AppSource only when all of these hold:
- No built-in visual or reasonable combination answers the question.
- The publisher is trustworthy, and ideally the visual is certified.
- Your organization's policy allows it.
- You have checked that it supports the features you rely on, such as cross-filtering, tooltips and accessibility.
A worked example
Question: "Which product categories contribute the largest share of sales this year, and how does each compare with last year?"
- The task is ranking, with a comparison and a share.
- Fields:
Product[Category](categorical, about eight values),Date[Date](date). - Measures:
Total Sales,Sales LY,Sales % of Total. - Candidate: a clustered bar chart with
Total SalesandSales LY, sorted byTotal Salesdescending. Share appears in a tooltip. - Pitfalls: eight categories suit a bar chart, the axis starts at zero, and a pie chart is avoided.
- Format: a title such as "Sales by category, this year vs last year", muted color for last year, and alt text.
- Interactivity: a year slicer, and cross-filtering to a monthly line chart.
Exercise
A manager asks, "Are support tickets rising or falling week by week, and how many are open right now?" Apply the first four steps of the process to choose visuals.
Show answer
Step 1: there are two questions, a trend and a single current value. Step 2: the week is a date field, and the ticket count is numeric. Step 3: a measure such as Ticket Count = COUNTROWS ( Tickets ) for the trend, and a measure counting open tickets for the current value. Step 4: a line chart with week on the axis for the trend, and a card for the open ticket count.
Exercise
A donut chart shows market share across 14 competitors, and the small slices are unreadable. Which step catches this, and what is a better visual?
Show answer
Step 5, the pitfall check, catches it because a donut with many slices is hard to read. Replace it with a bar chart sorted by share in descending order. Add a Top N filter or group the smallest competitors into "Other" if the list is still long.