Sub topic 7
Refining the generated page
Copilot's first draft of a report page is a starting point. It picks fields, chooses visuals, and lays them out, but it rarely matches what you had in mind on the first try. This chapter covers how to improve a generated page with follow-up prompts, how to switch to manual edits at the right moment, and how to avoid the common mistakes that make a page worse instead of better.
Prerequisites assumed
This chapter assumes you have read the previous chapter on creating a report page from a prompt. You should also be comfortable with these skills:
- Adding and formatting visuals manually in Power BI Desktop or the Power BI service.
- Using the Data, Visualizations, and Format panes.
- Basic DAX: what a measure is and how filter context affects it.
- The idea of a star-schema semantic model, with fact and dimension tables joined by relationships.
What refinement means
Refinement is the loop of reviewing a generated page, deciding what is wrong or missing, and fixing it. You can fix things in two ways:
- Follow-up prompts. You type another request in the Copilot pane, and Copilot changes the page.
- Manual edits. You change visuals, fields, and formatting yourself, using the same tools you use for any report.
Neither approach is better in every case. Follow-up prompts are fast for structural changes. Manual edits are precise for details. Most good pages use both.
Review the draft before changing anything
Start by reading the page critically. Do not prompt again until you know what is wrong. A vague follow-up such as "make it better" gives Copilot nothing to act on.
Check these items in order:
- Fields. Click each visual and look at its field wells. Confirm that Copilot used the measures and columns you expected. For example, it may have summed a column implicitly when you wanted your
Total Salesmeasure. - Visual types. Check that each chart suits its data. A pie chart with 30 categories, or a line chart over a non-date axis, is a sign the choice needs changing.
- Filters and slicers. Open the Filters pane and look at page-level and visual-level filters. Copilot may have added a filter you did not ask for, such as a time range.
- Titles and labels. Generated titles can be generic or can misdescribe the visual.
- Numbers. Compare at least one total with a figure you already trust.
Write down your findings as a short list. Each item becomes either a follow-up prompt or a manual edit.
Writing effective follow-up prompts
A follow-up prompt works best when it names the target and the change. Compare these:
| Weak follow-up | Stronger follow-up |
|---|---|
| Make it clearer | Change the sales by category chart to a horizontal bar chart sorted by total sales, highest first |
| Add more detail | Add a table below the trend chart showing the top 10 products by total sales |
| Fix the filter | Remove the last 12 months filter from the page and show all dates |
| Change the colors | Use one color for the sales trend line and keep the category bars gray |
A few rules make follow-ups more reliable:
- Make one change at a time, or a small related group. A long list of unrelated edits makes it harder to see which change caused a problem.
- Name the visual. Say "the monthly sales trend" or "the region slicer" instead of "the chart".
- Use field names exactly as they appear in the model. If your measure is called
Total Sales, write that, not "revenue". - State what to keep. If you like part of the page, say so: "Keep the KPI cards as they are."
Common follow-up requests
These are requests that Copilot typically handles well:
- Change a visual type, such as from a column chart to a line chart.
- Add a visual, such as a card, a table, or a slicer for a named field.
- Remove a visual from the page.
- Change the measure or field shown in a visual.
- Reorder or resize sections at a high level.
- Add or adjust a slicer for a field.
Detailed formatting is a different matter. Exact font sizes, precise pixel alignment, custom number formats, and conditional formatting rules are usually faster to do by hand, and Copilot may not support them at all.
Example: refining a sales page
Suppose you started with this prompt from the previous chapter:
Create a page that shows sales performance by product category and region for the last 12 months. Include total sales, a monthly sales trend, sales by category, and a slicer for region.Copilot returns a page with a card, a line chart, a column chart, and a slicer. On review you notice three problems:
- The category chart is a column chart with long category names that overlap on the axis.
- The line chart ends in a sharp drop at the last point, because the current month is incomplete.
- There is no comparison with the same period last year.
You could handle them like this.
Problem 1: overlapping labels. A visual-type change fixes this. Prompt:
Change the sales by category visual to a horizontal bar chart sorted by total sales in descending order.Problem 2: partial last month. This is a data question, not a layout question. A prompt can add a filter, but you must decide the right rule. A common approach is to exclude the current month. If your date table has a column that flags complete months, you could ask for that. If it does not, apply a visual-level filter manually in the Filters pane.
Problem 3: no prior-year comparison. This needs a measure. If your model already has Sales LY, ask for it by name:
Add Sales LY as a second line on the monthly sales trend chart.If the measure does not exist, create it first. This is where the DAX chapters apply. The standard pattern relies on a date table marked as the model's date table:
Sales LY =
CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
Sales YoY % =
DIVIDE ( [Total Sales] - [Sales LY], [Sales LY] )After adding the measures, you can prompt Copilot to use them in the page, or drag them into the field wells yourself.
When to switch to manual edits
Keep prompting while each prompt gets you closer. Switch to manual editing when any of these happen:
- Copilot repeats the same wrong result after two attempts with clearer wording. A third try with the same idea rarely works.
- The change is about formatting detail, such as axis ranges, data labels, or tooltips.
- The change touches the model, such as a new relationship, a hidden column, or a changed data type. Copilot builds on the model. It does not repair it.
- You need exact control, such as aligning visuals on a grid, or setting a specific color from your brand palette.
Manual edits and prompts can be mixed freely. One caution applies: a later prompt can restructure a page you have already hand-formatted. If you have invested time in manual formatting, save a copy of the report first, or make remaining structural prompts before you start fine formatting.
Common errors during refinement
Intermediate users run into the same problems repeatedly. These are the ones to watch for.
Copilot changes more than you asked
A prompt about one visual sometimes alters others, for example by changing a shared filter or slicer. After each follow-up, scan the whole page, not just the visual you targeted. Using undo in Desktop is a quick way to step back if something unexpected changed.
Implicit aggregations replace measures
Copilot may place a numeric column in a visual with a default aggregation, such as Sum, instead of using your measure. The numbers can look right but behave differently under filters. Check the field well: a measure shows a calculator icon, while an aggregated column shows a sigma symbol. Replace the column with the measure where needed.
Slicers that do not affect every visual
A new slicer filters only the visuals connected through the model's relationships. If a visual still shows unfiltered numbers, the cause is usually a missing or inactive relationship, or a measure that removes filters with ALL or REMOVEFILTERS. Use Edit interactions to confirm the slicer is not turned off for that visual, then inspect the model.
Filters left over from the original prompt
If your first prompt said "last 12 months", Copilot may have applied a relative or fixed date filter. If you later ask for "all years", confirm the old filter is gone from the Filters pane. Two conflicting filters produce an empty or misleading visual.
Treating a plausible page as a correct page
A page that looks professional can still show wrong numbers. Refinement improves layout and usefulness, but it does not prove accuracy. Compare totals with a source you trust before you share the page. The chapter on validating Copilot output covers this in detail.
A repeatable refinement checklist
Use this list each time you refine a page:
- Read the page and note problems before prompting.
- Fix model-level issues first: missing measures, wrong relationships, no marked date table.
- Send one focused follow-up prompt per structural problem.
- After each prompt, scan the whole page and the Filters pane.
- Switch to manual edits after two failed attempts, or for formatting detail.
- Rename visual titles and add alt text so the page is usable by others.
- Compare key totals with a trusted source.
Exercise
A Copilot-generated page has a column chart with overlapping category labels, a slicer that does not change one of the cards, and a title that says "Sales Overview" for a visual that shows order counts. For each problem, say whether a follow-up prompt or a manual edit is the better first move, and give one reason.
Show answer
Overlapping labels: a follow-up prompt, because changing the visual type to a horizontal bar chart is a structural change Copilot handles well. The slicer that does not change one card: neither first. Inspect it manually through Edit interactions and the model relationships, because the cause is likely an interaction setting, a missing relationship, or a measure using ALL or REMOVEFILTERS, and Copilot cannot repair the model. The wrong title: a manual edit, because retitling a single visual takes seconds in the Format pane and a prompt adds no precision.
Exercise
You prompted Copilot to "make the trend chart show last year too", and it added a second line, but the line is identical to the current year. What are two likely causes and how do you check each one?
Show answer
First, Copilot may have placed the same measure or a sum of the same column in the chart twice. Check the field wells and confirm the second series is your Sales LY measure. Second, the Sales LY measure may be wrong or the date table may not be marked as the model's date table, so SAMEPERIODLASTYEAR does not shift the dates. Check that the Date table is marked as a date table, that the relationship from the fact table to Date is active, and that the chart axis uses the Date table's date column rather than a date column from the fact table.