Sub topic 3
Start with the question, not the chart
This chapter assumes you can work on the Power BI Desktop report canvas and that your data model already has tables and relationships. It also assumes you know basic aggregations such as sum, average and count. You should be able to classify fields as categorical, numeric, date/time or geographic, and to create a simple measure. The earlier chapters on field types and measures cover these skills.
Why the question comes first
Most weak reports start from the wrong end. The author picks a visual they like, drops fields into it, and hopes a message appears. The result often looks fine and answers nothing.
Reverse the order. Write down the question the reader needs answered, name the analytical task that question describes, and only then pick a visual. The task is the link between your data and the chart.
The same fields can answer very different questions. Take Sales[SalesAmount], Product[Category] and 'Date'[Date]:
- "Which category sold the most?" is a ranking.
- "Are sales growing?" is a trend.
- "How much of our revenue depends on one category?" is a composition.
Each question calls for a different visual, even though the fields are identical.
From question to analytical task
Almost every business question maps onto one of a small set of tasks. Learn to spot the verbs and phrases that signal each one.
| Task | Typical wording | What you need in the data |
|---|---|---|
| Comparison | "Which is bigger?", "How do A and B differ?" | One categorical field, one measure |
| Ranking | "Top 10", "worst performers" | One categorical field with many values, one measure |
| Trend | "Over time", "growing", "seasonal" | A date/time field, one or more measures |
| Composition | "Share of", "breakdown", "what makes up" | A categorical field, a measure that adds up |
| Distribution | "How spread out", "typical value", "outliers" | A numeric field grouped into bins |
| Relationship | "Does X affect Y?", "correlation" | Two numeric measures, often a category for the points |
| Single value | "What is the number right now?", "are we on target?" | One measure, optionally a target |
| Location | "Where?", "by region", "by country" | A geographic field and a measure |
| Detail lookup | "Show me the exact figures" | Many fields, few assumptions about shape |
Notice that the table's last column is about data. A task is only possible when the data supports it. You cannot show a trend without a date/time field, and you cannot show a map without a geographic one.
A worked decomposition
Suppose a sales director asks: "How are we doing this year?"
That question is too vague to chart. Break it into sharper questions by asking what "doing" means and compared with what.
- What is total sales so far this year? (single value)
- How does that compare with the same period last year? (single value with a comparison)
- Which months drove the result? (trend)
- Which product categories contributed most? (ranking or composition)
- Which regions are behind? (comparison or location)
Each sharper question gets its own visual. A single report page often holds four or five visuals because it answers four or five questions. If you cannot state the question a visual answers in one sentence, remove it or rethink it.
The supporting measures
Questions 1 and 2 need measures. Start with a base measure and build on it.
Total Sales = SUM ( Sales[SalesAmount] )The comparison measure needs a marked date table, because time intelligence functions rely on one.
Sales LY =
CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )The percentage change divides the difference by last year's value. DIVIDE returns a blank instead of an error when the prior-year value is zero or blank.
Sales YoY % =
DIVIDE ( [Total Sales] - [Sales LY], [Sales LY] )Writing the measures forces you to define the question exactly. "Compared with last year" turns into a specific calculation with a specific period, and you may discover that the business means fiscal year, not calendar year.
The starter lookup table
A lookup table speeds up the first choice. Use it as a starting point, 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 mapLater chapters explain each row in detail, including when the default is wrong.
The decision flow
The flow below shows the order of thinking. Data types constrain the options, and the question selects among what remains.
Common errors at this stage
Choosing by appearance
A donut chart looks tidy, so it gets used for twelve categories. Readers cannot compare the slices, and the question "which is biggest?" goes unanswered. Match the visual to the task, not to the look you want.
Answering two questions with one visual
A chart that tries to show a trend, a ranking and a composition at once usually shows none of them well. Split it. Two simple visuals read faster than one crowded one.
Starting from the data you have
Authors sometimes look at the fields and ask "what can I chart?" This produces visuals that are easy to build, not ones that are useful. Begin with the decision the reader must make, then check whether the model has what it needs.
Ignoring the audience
An analyst may want a table with exact values. An executive may want one card and one line. The same task can justify different visuals for different readers, so note who will read the page.
Treating a vague question as final
"Show me sales" is not a question. Ask a follow-up until you can finish the sentence "The reader should be able to see whether...".
A quick test before you build
Run through these checks for each visual:
- Can I write the question in one sentence?
- Which task does it describe?
- Do my fields have the types that task needs?
- Which measure supplies the values?
- What would the reader do after seeing the answer?
If question 5 has no answer, the visual may be decoration. This test takes less than a minute and removes many visuals before you build them.
Summary of the habit
Question first, task second, data check third, visual fourth, formatting last. The following chapters take each task in turn and cover the built-in visuals that suit it.
Exercise
A manager asks, "Which of our 25 product categories sold the most last quarter, and which sold the least?" Name the analytical task, the fields you need, and a suitable visual.
Show answer
The task is ranking. You need one categorical field (Product[Category]) and one numeric measure, such as [Total Sales], filtered to last quarter. A bar chart sorted by value suits it, because the horizontal bars leave room for 25 category names and the sort order shows the top and bottom at once. A pie or donut chart would be a poor choice with 25 slices.
Exercise
A director asks, "Are we ahead of last year?" Which measures would you write, and which visual types would you consider for the answer?
Show answer
Write [Total Sales], [Sales LY] using CALCULATE with SAMEPERIODLASTYEAR on a marked date table, and [Sales YoY %] using DIVIDE. For a single headline answer, use a KPI or card showing [Sales YoY %]. To show how the gap developed, use a line chart with [Total Sales] and [Sales LY] over the date field.
Exercise
A colleague has built a stacked column chart of sales by month, split into 14 product categories, and says it shows the trend, the category ranking and the share of each category. What is wrong, and what would you do?
Show answer
The chart answers three questions at once, so none is clear. Segments in the middle of the stack have no common baseline, which makes ranking and share hard to read, and 14 colors are hard to tell apart. Split it into separate visuals: a line chart of total sales by month for the trend, a sorted bar chart for the category ranking, and, if share matters, a bar chart of [Sales % of Total] or a treemap.