Sub topic 6
Creating a report page from a prompt
This chapter covers the first hands-on use of Copilot in Power BI: asking it to build a report page. It assumes you can already do the following:
- Navigate Power BI Desktop or the Power BI service.
- Read a star-schema model, with fact and dimension tables and relationships.
- Write basic DAX measures.
- Build visuals and slicers by hand.
It also assumes Copilot is already available in your environment. The earlier chapters on requirements and model preparation cover that.
What happens when you ask for a page
When you submit a page-creation prompt in the Copilot pane, Copilot reads the semantic model's metadata. That metadata includes table, column, and measure names, descriptions, synonyms, and any AI instructions. It then picks fields, chooses visual types, and adds a new page to the report.
Copilot does not read your data rows to decide the layout. It works from the model's structure and your wording. This explains most good and bad results. If your prompt and your model's names line up, Copilot finds the right fields. If they don't, it guesses.
The result is a normal report page. Every visual is an ordinary Power BI visual with a normal field well and formatting pane. You can select it, change it, or delete it like any visual you built yourself.
Where to start
You can open Copilot from the ribbon in Power BI Desktop, or from the report in the Power BI service when the report is in a workspace backed by a supported capacity. The Copilot pane usually offers starter suggestions. One of them is typically a prompt to create a page. Two entry points matter:
- A suggestion chip. Copilot may offer to create a page based on the model. It chooses the topic itself, so the result is generic.
- Your own prompt. You name the subject, the breakdowns, the time range, and the visuals. This almost always gives a more useful page.
Use your own prompt whenever you know what the page is for. The suggestion chips are best for exploring an unfamiliar model.
Anatomy of a good page prompt
A page prompt works when it answers four questions:
- What is the subject? For example, sales performance.
- How should it be broken down? For example, by product category and region.
- What time range applies? For example, the last 12 months.
- Which visuals do you want? For example, a trend, a breakdown, a slicer.
Here is a prompt that answers all four:
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.Compare it with a weak prompt such as "Make a sales dashboard." That prompt names no breakdown, no period, and no visuals. Copilot has to invent all three, and your edit time goes up.
The strong prompt also names things in your model's language. "Total sales" maps cleanly to a measure called Total Sales. If the model had that measure under the name Measure 1, Copilot would have little to match on. This is why model readiness comes before prompting.
Make sure the measures exist
Copilot builds visuals from fields and measures that exist in the model. A page prompt that asks for "total sales" works best when a base measure already exists:
Total Sales = SUM ( Sales[SalesAmount] )If you leave the measure out, Copilot may fall back on summing the raw SalesAmount column inside the visual. That gives a similar number but is implicit. It makes your report harder to audit and reuse. Create base measures first, then ask for pages.
A worked example
Suppose the model has a Sales fact table, plus Product, Geography, and Date dimension tables. The Date table is marked as the model's date table. The measure Total Sales exists.
- Open the report and select Copilot from the ribbon.
- Paste the page prompt shown above.
- Wait for Copilot to finish. It adds a new page at the end of the report.
- Inspect what it produced.
A typical result has these parts:
- A card showing total sales.
- A line chart with a date hierarchy or month on the axis and total sales as the value.
- A bar or column chart with category on the axis.
- A slicer based on a region field.
Treat this as a draft. Your next checks are the ones in the table below.
| Check | What to look for |
|---|---|
| Fields | Each visual uses the field you meant, such as `Product[Category]` and not a similarly named column. |
| Measure | Values come from `[Total Sales]`, not an implicit sum of a column. |
| Time range | The "last 12 months" request is applied as a filter, and you can see where it is set. |
| Slicer | The region slicer uses the field from the dimension table, not a duplicate in the fact table. |
| Totals | Page-level numbers match a figure you already trust. |
Select each visual and open the Filters pane and the Visualizations pane. This shows exactly what Copilot built.
How Copilot interprets the time range
Time phrases need attention. "Last 12 months" can mean a rolling 12 months ending today, the last 12 complete months, or the most recent 12 months that contain data. Copilot picks one reading, and that reading may not match your business definition.
Check the filter on the visual or page. If the model's data ends in a past month, a rolling window ending today may show fewer than 12 months of values. State the definition in your prompt when it matters. For example: "the last 12 complete months before the latest date in the data."
Time-based visuals also depend on the date table. If the model has no proper date table, or the relationship to the fact table is on the wrong column, trend visuals can look wrong even when the prompt was perfect.
Words that steer the layout
Copilot reads the visual types you name. These phrasings tend to be understood:
- "a line chart of monthly sales" gives a line chart with a time axis.
- "a bar chart of sales by category" gives a bar chart with category on the axis.
- "a slicer for region" gives a slicer.
- "a table of the top 10 products by sales" gives a table, with a top N filter you should verify.
- "KPI cards for total sales and order count" gives cards.
You can also describe the intent without naming a visual, such as "compare regions." Copilot then chooses the visual, and the choice can vary between attempts. If you care about the visual type, name it.
Ask for fewer things per page. A page with four to six visuals is easier for Copilot to build and for you to check than a prompt asking for twelve. Build several focused pages instead of one crowded one.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Copilot builds a page unrelated to your request | The prompt used terms that do not match names in the model | Use the model's own names, or add synonyms and descriptions |
| Visuals use a column when you expected a measure | The measure does not exist, or its name is unclear | Create and name the base measure, then repeat the prompt |
| Two similar fields, and Copilot uses the wrong one | Duplicate or ambiguous column names across tables | Rename, hide unused fields, or name the table in the prompt |
| Trend visual shows gaps or odd months | Date table missing, not marked, or wrong relationship | Fix the date table before prompting again |
| A generic page appears | The prompt was too short to constrain the result | Add the subject, breakdowns, time range, and visuals |
| The slicer filters nothing | The slicer field has no active relationship to the fact table | Check relationships in model view |
Repeating and adjusting
Each prompt produces a new page. If the result is close but not right, you have two options:
- Edit the page by hand when only a few visuals are wrong. This is quickest for a wrong field or a formatting change.
- Submit a revised prompt when the whole shape is wrong, such as a missing breakdown or the wrong subject. Delete the failed page afterward, so the report does not accumulate drafts.
The next chapter covers follow-up prompts that adjust an existing page. For now, remember that regenerating costs little, and a sharper prompt usually beats a long series of manual fixes.
Summary of the workflow
- Confirm that base measures, names, and the date table are in place.
- Write a prompt with subject, breakdowns, time range, and visuals.
- Run it in the Copilot pane and let it create the page.
- Inspect each visual's fields, filters, and measures.
- Compare headline numbers against a figure you trust.
- Keep, edit, or discard the page.
Exercise
You ask Copilot, "Make a sales dashboard." It returns a page with a card, a pie chart, and a table, and none of them break sales down the way your team needs. Rewrite the prompt so it is more likely to give a usable page, and name two things to check on the result before you keep it.
Show answer
A better prompt names the subject, breakdowns, time range, and visuals, for example: "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." Two checks: (1) confirm each visual uses the intended field and the [Total Sales] measure, and not a different column or an implicit sum; (2) confirm the "last 12 months" filter matches your business definition and that headline totals match a trusted figure. Other valid checks include the slicer's field and relationships, and the date table.
Exercise
A page Copilot created shows a monthly trend with only 9 months of values, although you asked for the last 12 months. Give two possible causes.
Show answer
The time window may have been interpreted as a rolling 12 months ending today, while the data ends earlier, so some months have no data. Alternatively, the date table may be missing, not marked as the model's date table, or related on the wrong column, which distorts the time axis. Check the visual's filter and the model's date table.