Sub topic 3
Preparing your semantic model
Copilot reads your semantic model to decide which fields to use. If the model is unclear, the output will be unclear too. This chapter covers the changes that most improve Copilot's results. The next chapter covers descriptions, synonyms, and AI instructions in detail.
Prerequisites
This chapter assumes you can:
- Navigate Power BI Desktop or the Power BI service.
- Read a star schema: fact tables, dimension tables, and relationships.
- Write basic DAX measures and explain filter context.
Why the model matters
Copilot does not read your data rows to learn what a column means. It reads the model's structure: table names, column names, measures, relationships, and any descriptions you added. It then matches your prompt to those objects.
A prompt such as "show sales by region" works well when the model has a clear Sales measure and a Region column. It works poorly when the model has Amt1, Amt2, and Col_17.
Name things the way people ask for them
Use business terms that match how your users talk. Replace technical or abbreviated names with plain ones.
| Before | After |
|---|---|
| `fct_slsln` | `Sales` |
| `dim_prod` | `Product` |
| `amt_net` | `Net Sales Amount` |
| `cust_rgn_cd` | `Customer Region` |
Write measures as measures, not as columns that users must sum. A base measure gives Copilot and your own later measures something reliable to reference.
Total Sales = SUM ( Sales[SalesAmount] )Once [Total Sales] exists, a prompt that mentions "total sales" has one obvious target.
Check the structure
Copilot works best on a clean star schema. Review these points before you try prompts:
- Each fact table connects to its dimension tables with a relationship.
- Relationships go from dimension (one side) to fact (many side), with a single filter direction unless you need otherwise.
- A proper date table exists and is marked as the model's date table. Time-based prompts and measures such as year-over-year depend on it.
- Summarization is set correctly. Keys such as
OrderIDorProductKeyshould be set to "Don't summarize" so they are not added up by mistake. - Data categories are set for geographic columns such as country, state, and city.
Remove clutter
Every visible field is a candidate for Copilot. Extra fields increase the chance that it picks the wrong one.
- Hide key columns, helper columns, and intermediate calculations that report authors should not use.
- Remove or hide tables that exist only for internal logic.
- Delete duplicate measures, or rename them so their purpose is distinct. Two measures called
SalesandSales Totalwill make Copilot guess.
Make formatting consistent
Set a format string on each measure: currency for money, percentage for ratios, whole numbers for counts. Copilot builds visuals from these fields, and formatted values are easier to check at a glance. Set sort orders as well, for example sorting Month Name by Month Number, so that generated charts show months in calendar order.
Test with a simple prompt
After the changes, try a prompt that depends on the model being clear:
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.Look at which fields Copilot picked. If it chose the wrong measure or a hidden helper column, the cause is usually a naming or visibility problem in the model. Fix the model and ask again, rather than correcting each result by hand.
Summary of checks
- Names match business language.
- Base measures exist and are formatted.
- Relationships form a clean star schema.
- The date table is marked.
- Keys are not summarized, and unneeded fields are hidden.
Exercise
A user asks Copilot for "sales last year versus this year." Copilot returns an error-prone result, and your model has a date column in the Sales table but no separate date table. Which preparation step do you take first, and why?
Show answer
Create a proper date table with a continuous range of dates, relate it to the Sales table, and mark it as the model's date table. Time-intelligence functions such as SAMEPERIODLASTYEAR, and time-based prompts, depend on a marked date table to calculate periods correctly.
Exercise
Your model has two measures, Sales and Sales Total, that return the same value. Why can this hurt Copilot's results, and what should you do?
Show answer
Copilot must guess which one a prompt refers to, so it may choose inconsistently. Keep one measure, or hide or rename the duplicate so that each remaining measure has a distinct purpose.