Sub topic 6
Creating a report page from a prompt
This chapter walks through asking Copilot to build a report page, reading what it produces, and spotting the first problems. It assumes you can already build visuals and slicers by hand, understand a star-schema model, and have Copilot enabled for your workspace and semantic model. Refining the page afterward is covered in a later chapter.
How page creation works
When you ask Copilot to create a page, it reads the semantic model's table names, column names, measures, descriptions, and synonyms. It then picks fields and visual types and lays out a new page. It does not read your data rows to decide what to build. Your model metadata largely decides the quality of the page.
Copilot can only use fields that exist in the model. If you ask for "profit margin" and no such measure or columns exist, it may substitute a different field or leave the visual out.
Write the prompt
A usable prompt names four things: the subject, the breakdowns, the time range, and the visuals you want. Compare these two prompts.
| Prompt | Likely result |
|---|---|
| Make a sales report | Copilot guesses the fields and the layout. |
| The prompt below | Copilot has enough detail to choose fields and visuals. |
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.This prompt names the subject (sales performance), the breakdowns (category and region), the time range (last 12 months), and the visuals (total sales, a trend, a category breakdown, and a slicer). Each detail removes a choice Copilot would otherwise make for you.
Run it
- Open the report in Power BI Desktop or the Power BI service, in edit mode.
- Open the Copilot pane.
- Choose the option to create a page, or type your request in the pane.
- Paste your prompt and send it.
- Wait for Copilot to add a new page to the report.
Copilot creates a new page. It does not change the pages you already have.
Read what you got
Check the page in this order.
- Fields. Click each visual and look at its field wells. Confirm it uses the measure you expect, such as
Total Sales, and not a raw column summed implicitly. - Time range. Confirm a "last 12 months" request produced a filter. Check whether it is a relative date filter or a fixed range.
- Visual types. A trend should be a line or column chart over a date field. A category breakdown should be a bar or column chart.
- Interactivity. Select a slicer value and confirm the other visuals respond.
A base measure makes this check easy. If the model has the measure below, Copilot and you can both reference it.
Total Sales = SUM ( Sales[SalesAmount] )If Copilot instead dragged SalesAmount onto a visual with an implicit sum, the number may match, but the visual will not reuse your business definition if that definition changes.
Common problems
- Missing visuals. The prompt asked for something the model cannot supply, for example a region slicer when no region column exists. Check the model.
- Wrong date field. The model has several date columns, and Copilot chose one you did not intend. Name the date field in the prompt or mark a default in the model.
- Generic titles. Visual titles may be accurate but vague. Rename them by hand.
- Too much on one page. A broad prompt yields a crowded page. Ask for one purpose per page.
Keep or discard
Treat the generated page as a first draft. Keep it if the fields, filters, and visual types match your intent. Otherwise, discard it and prompt again with the missing detail. Either way, the page needs checking against known totals before you publish, which a later chapter covers.
Exercise
Copilot created your sales page, and the monthly trend line looks reasonable. What two things should you check in the trend visual before accepting it, and why?
Show answer
Check which date field is on the axis, because the model may have several date columns such as Order Date and Ship Date and Copilot may pick one you did not intend. Also check which measure is in the values well, to confirm it is your Total Sales measure and not an implicit sum of a raw column. A trend can have the right shape and still be built on the wrong field.
Exercise
Rewrite the weak prompt "Make a sales report" so it names a subject, breakdowns, a time range, and visuals.
Show answer
One valid answer: "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." Any answer that states all four elements is correct.