Test Copilot on your Power BI semantic model before your users do: golden questions with SQL answers A developer published a method for testing Microsoft Copilot on Power BI semantic models before rollout, centered on a "golden question set" of business-written questions whose expected answers are computed independently in SQL, plus deliberately ambiguous questions and a scoring rubric that fails answers that are right for the wrong reason. The approach targets text-to-SQL and text-to-DAX failures that return plausible but incorrect numbers rather than errors, and points to Power BI's Prep data for AI settings for fixes. The author notes Copilot for Power BI semantic models reached general availability at Ignite 2026 while Microsoft's evaluation SDK for data agents remains in preview. Picture the first week after a company switches on Copilot for its Power BI semantic model. A sales director types "What was revenue in October?" and gets $21,100. The finance controller asks the same thing in her own words and gets $14,720. Both screenshots land in the same Teams channel on Friday afternoon. Nobody did anything wrong in the usual sense. The model answered two defensible questions. It just didn't say which one it answered. That scenario is fictional the client is Northstar Systems, my made-up test company , but the numbers in it are real output from a SQLite fixture you can run in two minutes, and the situation is now available to a lot of companies at once. At Microsoft Ignite 2026 17 to 20 November , Power BI semantic models in Copilot were listed as generally available, and Fabric IQ connectors for ChatGPT and Claude went into preview Collectiv's Ignite roundup https://gocollectiv.com/blog/microsoft-ignite-2026-announcements/ , Microsoft's Book of News https://news.microsoft.com/events/ignite/2026/book-of-news/ . Your semantic model is turning into a chat interface whether or not anyone wrote acceptance criteria for it. So here's the method I'd use before anyone outside the build team gets to type a question: a golden question set. Questions written by the business, expected answers computed independently in SQL, a few questions that are ambiguous on purpose, and a scoring rubric that fails "right number, wrong reason." Then the fixes, which mostly live in Power BI's Prep data for AI settings. It's tempting to judge a Copilot pilot the way demos get judged. Someone asks five questions, the numbers look plausible, a couple match the dashboard, and the pilot gets a thumbs up. That test can't catch the failure that matters, because the failure that matters looks plausible. Text-to-SQL and text-to-DAX tools rarely fail by throwing an error. They fail by running a perfectly valid query for a different reading of your question. AI Explore put this well in a Dev.to post I keep coming back to: a dashboard is a reviewed question, and a chat answer is an unreviewed one AI Explore, "Text-to-SQL Agents Answer Questions Nobody Reviewed. Add Receipts" https://dev.to/aiexplore369zoho/text-to-sql-agents-answer-questions-nobody-reviewed-add-receipts-123h . I built a whole spec around that idea last month in Text-to-SQL answer receipts https://dev.to/prachitparikh/text-to-sql-answer-receipts-the-spec-id-write-before-an-ai-agent-answers-one-data-question-1jm2 . This post is the testing half: how you find out, before rollout, which questions your model answers safely and which ones it answers confidently and wrong. Microsoft's own documentation is honest about this. The Fabric data agent guidance says plainly that "LLMs can produce incorrect results without proper context" and tells you to review the generated DAX for every test response Microsoft Learn, Semantic model best practices for data agent https://learn.microsoft.com/en-us/fabric/data-science/semantic-model-best-practices . The same page explains that the DAX generation tool builds its query from the model's schema, metadata such as synonyms and the min and max values of numeric columns, report visual metadata, the Prep for AI configuration and the conversation history. Every one of those is something a BA can inspect and something that can be wrong. There's also a timing problem. Office Watch went through the Ignite Book of News and counted 215 separate features across 59 announcements, of which 76 were generally available on day one, 35% of the total Office Watch, 18 Nov 2026 https://office-watch.com/2026/microsoft-ignite-2026-ready-today/ . The semantic-model-in-Copilot piece is in the GA column. A lot of the surrounding tooling isn't: Microsoft's evaluation SDK for data agents is labelled preview Microsoft Learn, Evaluate your data agent https://learn.microsoft.com/en-us/fabric/data-science/evaluate-data-agent , and so is the advanced DAX generation tool that does multi-step reasoning to "resolve ambiguity." Users get the GA thing on Monday. Your test harness may be built from preview parts. That's fine, as long as the test itself doesn't depend on any one tool. A CSV of questions and a SQL file of expected answers will outlive every preview label. Here's where I expect pushback. In my rubric, an answer that gets the number right but doesn't say which definition it used scores as a fail, not a partial pass. The argument against is obvious: users want the number, not a paragraph of caveats, and if the number matches finance, who cares how it got there? I care because the next question will use the same unstated choice, and next time it won't match. If Copilot answers "revenue in October" with $14,720 and says nothing, you can't tell whether it picked net revenue by ship date on purpose or happened to land there. A lucky hit and a correct hit look identical until the question changes slightly. In testing, you want to tell them apart. So the rubric makes the interpretation part of the expected answer. Microsoft's evaluation SDK, for comparison, takes a DataFrame with two columns, question and expected answer , and its examples use bare values such as "46,117.30" Microsoft Learn, Evaluate your data agent https://learn.microsoft.com/en-us/fabric/data-science/evaluate-data-agent . That's a reasonable start and the SDK sorts responses into correct, incorrect and unclear. But a bare number can't separate "right for the right reason" from "right by accident." Add a column for the reading you expect, and grade it. You don't need Fabric to design the test. You need a small model of the business with known answers. Here's the Northstar fixture: seven customers in four regions, four products, 22 order lines, three statuses. One row equals one order line. Every number in this post comes from running it with Python's built-in sqlite3 module SQLite 3.53.1 . -- Northstar Systems fictional sales star schema, small enough to check by hand CREATE TABLE dim customer customer id INTEGER PRIMARY KEY, customer name TEXT, region TEXT ; CREATE TABLE dim product product id INTEGER PRIMARY KEY, product name TEXT, category TEXT ; CREATE TABLE fact sales line id INTEGER PRIMARY KEY, order id INTEGER, customer id INTEGER, product id INTEGER, order date TEXT, ship date TEXT, qty INTEGER, list price REAL, discount pct REAL, status TEXT -- Completed, Cancelled, Returned ; INSERT INTO dim customer VALUES 1,'Alder Clinic','East' , 2,'Birch Logistics','East' , 3,'Cedar Foods','West' , 4,'Dogwood Labs','West' , 5,'Elm Retail','Central' , 6,'Fir Hotels','Central' , 7,'Maple North Ltd','Canada' ; INSERT INTO dim product VALUES 10,'Scanner Pro','Hardware' , 11,'Scanner Lite','Hardware' , 20,'Support Plan','Services' , 21,'Onboarding Day','Services' ; INSERT INTO fact sales VALUES 1,1001,1,10,'2026-09-08','2026-09-10',2,1200,0.00,'Completed' , 2,1002,3,20,'2026-09-15','2026-09-15',1, 900,0.00,'Completed' , 3,1003,5,11,'2026-09-22','2026-09-24',4, 400,0.10,'Completed' , 4,1004,7,10,'2026-09-28','2026-09-30',1,1200,0.00,'Completed' , 5,1005,2,10,'2026-09-30','2026-10-02',3,1200,0.05,'Completed' , 6,1005,2,21,'2026-09-30','2026-10-02',1, 800,0.00,'Completed' , 7,1006,1,20,'2026-10-05','2026-10-05',1, 900,0.00,'Completed' , 8,1007,3,10,'2026-10-07','2026-10-09',2,1200,0.15,'Completed' , 9,1007,3,21,'2026-10-07','2026-10-09',2, 800,0.15,'Completed' , 10,1008,4,11,'2026-10-12','2026-10-14',5, 400,0.00,'Returned' , 11,1009,5,10,'2026-10-14',NULL, 4,1200,0.10,'Cancelled' , 12,1010,6,20,'2026-10-19','2026-10-19',2, 900,0.00,'Completed' , 13,1011,2,11,'2026-10-21','2026-10-23',8, 400,0.00,'Completed' , 14,1012,4,10,'2026-10-26','2026-10-28',1,1200,0.00,'Completed' , 15,1013,6,21,'2026-10-30','2026-11-02',1, 800,0.00,'Completed' , 16,1014,1,11,'2026-10-31','2026-11-03',6, 400,0.20,'Completed' , 17,1015,3,20,'2026-11-04','2026-11-04',1, 900,0.00,'Completed' , 18,1016,5,10,'2026-11-09','2026-11-11',2,1200,0.00,'Completed' , 19,1017,7,21,'2026-11-16','2026-11-17',1, 800,0.00,'Completed' , 20,1018,2,10,'2026-11-23','2026-11-25',1,1200,0.05,'Completed' , 21,901,4,20,'2026-03-10','2026-03-10',2, 900,0.00,'Completed' , 22,902,6,10,'2026-06-18','2026-06-22',3,1200,0.10,'Completed' ; CREATE VIEW v lines AS SELECT f. , c.region, c.customer name, p.product name, p.category, qty list price AS gross amount, ROUND qty list price 1-discount pct ,2 AS net amount FROM fact sales f JOIN dim customer c USING customer id JOIN dim product p USING product id ; The fixture has traps on purpose, the same way your real model has them by accident. An order placed on 30 September ships on 2 October. One October order is cancelled and one is returned. Discounts vary by line. Canada is a real region with no October sales. And Northstar's fiscal year starts on 1 July, so "year to date" means two different things depending on who's asking. Before any golden question, I run the grain check, because nothing else means anything if the grain is off a lesson from ontomato's comments on my 7 SQL checks post https://dev.to/prachitparikh/7-sql-checks-i-run-before-uat-sign-off-with-queries-you-can-copy-38h5 : SELECT COUNT AS rows , COUNT DISTINCT line id AS lines, COUNT DISTINCT order id AS orders FROM v lines; rows | lines | orders 22 | 22 | 20 Twenty-two rows, twenty-two lines, twenty orders. The view didn't fan out. The golden set only works if someone owns the "right" reading. At Northstar, finance has signed off on one definition, and it goes at the top of the test file in plain words: Revenue means net revenue: list price times quantity, less line discount, for Completed lines only, recognised by ship date. Fiscal year starts 1 July. "Last month" means the previous calendar month. This is the most valuable sentence in the whole exercise, and it usually doesn't exist anywhere in writing. If you can't get finance to sign one, stop here. You've found your first defect, and it isn't in Copilot. Each question below is phrased the way a person would type it, followed by the competing readings and the number SQL returns for each. The expected answer is always the finance reading, plus whatever the model should say or ask. Three readings, three numbers: -- A: gross, every status, by order date SELECT SUM gross amount FROM v lines WHERE order date BETWEEN '2026-10-01' AND '2026-10-31'; -- B: finance definition net, Completed, by ship date SELECT SUM net amount FROM v lines WHERE status='Completed' AND ship date BETWEEN '2026-10-01' AND '2026-10-31'; -- C: net, Completed, by order date SELECT SUM net amount FROM v lines WHERE status='Completed' AND order date BETWEEN '2026-10-01' AND '2026-10-31'; A: 21100.0 B: 14720.0 C: 13220.0 Reading A is 43% higher than the finance number. It includes the cancelled $4,800 order, the returned $2,000 line, and list prices before discount. Reading C is 10% lower, because it moves the 30 September order out of October and pulls in two October orders that didn't ship until November. A user who sees $21,100 and forwards it to the board isn't careless. The tool just answered a question nobody owns. Expected: $14,720, and the answer names net revenue and ship date. aov per order | avg per line | orders | lines 2453.33 | 1840.0 | 6 | 8 Per order it's $2,453.33. Averaged over lines it's $1,840. The phrase says "order," so the per-order number is right, but an implicit average on a line-grain table produces the other one. Microsoft's guidance lists implicit measures as a common pitfall and recommends explicit measures with the right default summarization Microsoft Learn https://learn.microsoft.com/en-us/fabric/data-science/semantic-model-best-practices . This question tests whether you followed that advice. calendar ytd | fiscal ytd 33660.0 | 28620.0 $5,040 of difference comes from the two lines shipped in March and June, which are in calendar 2026 but in the previous Northstar fiscal year. Expected: $28,620 with "fiscal year to date, from 1 July" in the answer. An answer of $33,660 that says "calendar year to date" is a wrong number with a stated interpretation. It still fails, but it fails honestly, and the fix is one instruction. region | revenue | lines Canada | 0 | 0 A real zero. The region exists, and its only customer bought in September and November. Expected: $0, ideally with "no completed lines shipped to Canada in October." customers in gulf 0 There is no Gulf region. The honest answer isn't $0. It's "I can't find a Gulf region; the regions are Canada, Central, East and West." Varun Poojari wrote a sharp post about a dashboard that showed $0.00 when the real answer was "we don't know," and how COALESCE SUM x , 0 turns unknown into free Varun Poojari on Dev.to https://dev.to/varun poojari/my-security-dashboard-said-000-the-real-answer-was-we-dont-know-34bi . G4 and G5 are the pair that tests that difference. If both come back as $0, the model can't tell an empty set from a missing thing, and you need to know that before a manager asks about a region that was renamed last year. product name | revenue | units Scanner Pro | 6660.0 | 6 Scanner Lite | 3200.0 | 8 Support Plan | 2700.0 | 3 Onboarding Day | 2160.0 | 3 By revenue it's Scanner Pro. By units it's Scanner Lite. Both are reasonable. This is the kind of question where I'd accept either answer as long as the measure is named, and I'd mark it down if it picks units silently, because Northstar's sales team means revenue nine times out of ten. Write that preference down; it becomes an AI instruction later. returned | shipped | return rate pct 1 | 9 | 11.1 One returned line out of nine shipped lines that were ordered in October, 11.1%. Returns are where definitions really diverge in real companies: lines or units or value, by order date or return date, with or without exchanges. My fixture only has one definition worth testing, so I'll be upfront that this question is mostly a placeholder for the version your returns team cares about. Still include it. Return rates are exactly the metric people ask a chat box about because no dashboard shows it the way they want. region | sep | oct | change | change pct Canada | 1200.0 | 0 | -1200.0 | -100.0 Central | 1440.0 | 1800.0 | 360.0 | 25.0 East | 2400.0 | 8320.0 | 5920.0 | 246.7 West | 900.0 | 4600.0 | 3700.0 | 411.1 East grew the most in dollars. West grew the most in percent. "Grew the most" doesn't say which. This is a question where I want the model to either ask or give both, and the rubric gives full marks for either. If it answers "West" with no mention of percent, that's the dangerous kind of right: a regional manager in East reads it as a ranking. buying customers oct | customers on file 5 | 7 Two questions that sound alike. A model that answers both with 7, or both with 5, has a synonym problem. In a real model this is where "customer" gets mapped to the wrong table. previous month | trailing 30 days 14720.0 | 7960.0 October by ship date is $14,720. The trailing 30 days 31 October to 29 November is $7,960. Northstar's written definition says previous calendar month, so the expected answer is $14,720. This question also checks whether the model knows what "today" is, which gets interesting when the semantic model's date table ends in September because someone stopped extending it. Run each question three times, in fresh chats, because the same model can give different answers to identical input. Yoseph Eikelman showed an LLM reading the same page four times and getting 18, 18, 18 and then 1 Yoseph Eikelman on Dev.to https://dev.to/yussieik/an-llm-read-the-same-page-four-times-18-departures-18-18-then-1-507d . Three runs won't measure that noise, but they'll show you whether it exists for a given question. Then score each answer: | Result | What happened | Counts as | |---|---|---| | Pass | Expected number, and the answer states the measure, date basis and status filter or they're visible in the DAX the user can see | Pass | | Pass, asked | The question is flagged ambiguous G6, G8 and the model asked which reading, or gave both, labelled | Pass | | Lucky | Expected number, no stated interpretation, and the DAX shows it got there by a different path for example, order date that happens to match | Fail | | Honest miss | Wrong number, but the stated interpretation is clear and explains the gap G3 as calendar YTD | Fail, low severity: one instruction or a verified answer fixes it | | Confident wrong | Wrong number, no stated interpretation | Fail, high severity | | Invented zero | Returns $0 for something that doesn't exist G5 | Fail, high severity | | Over-asked | Asks for clarification on a question that has one written definition G1 after Prep for AI is set | Fail, low severity: users stop asking | | Unstable | Different results across the three runs | Fail, whatever the individual answers were | Two rules on top of the table. First, any high-severity fail on a money question blocks rollout to that audience, whatever the overall percentage. A 90% score with one confident wrong revenue number isn't a 90% product for a finance team. Second, write the pass bar before the first run and date it, so nobody can move it after seeing the results. That second rule comes from a commenter on Mikhail's benchmark post on Dev.to, who suggested committing the decision rule before running anything, and it's the cheapest integrity check I know. I'd also log, for every answer, the DAX query Copilot generated. Microsoft's guidance says to review it for each test response, and it's the only way to tell a "Lucky" from a "Pass." When a golden question fails, the fix is almost never "tell users to phrase it better." Power BI's Prep data for AI has three parts, and Microsoft's data agent guide describes what each one does to DAX generation Microsoft Learn, Semantic model best practices for data agent https://learn.microsoft.com/en-us/fabric/data-science/semantic-model-best-practices : AI data schema. You pick which tables, columns and measures the AI should use. Microsoft's own example is close to G1: a model with Total Revenue, Gross Sales, Net Sales and Sales After Returns, where the AI returns Gross Sales but the team reports Net Sales. Exclude the measures you don't want in answers, and include their dependent objects so the measures still work. For Northstar, that means one revenue measure in the schema, not four. Verified answers. A visual you've approved, triggered by specific questions. The guidance suggests five to seven trigger questions per verified answer, both formal and casual phrasings, and up to three filters. Two details matter for testing. Verified answers are stored at the semantic model level, so they apply to any data agent built on the model. And when a data agent uses one, it doesn't return the visual; it uses the visual's columns, measures and filters to steer the DAX it generates. That means a verified answer for "revenue in October" can still produce a wrong answer for "revenue for the East region in October" if the steering doesn't carry. Your golden set should include a near-neighbour of every verified answer, a phrasing that isn't in the trigger list, to see whether the fix generalizes. AI instructions. Free text on the semantic model: terminology, defaults, which date to use. Microsoft is direct that "there's no guarantee it follows them exactly." That's why G3 and G10 stay in the golden set after you add "fiscal year starts 1 July" and "last month means the previous calendar month." The instruction is a hypothesis. The rerun is the test. There's one detail on that page that I think every BA running a Fabric data agent pilot needs to know: the DAX generation tool ignores instructions written at the data agent level when it queries a semantic model. It only reads the Prep for AI configuration on the model. If your team wrote "revenue means net revenue" in the agent's instructions box, the semantic model never saw it. Put model-specific definitions in Prep for AI, and keep agent-level instructions for formatting and routing. Two more points from Microsoft's docs that change how I'd plan the test: Here's the shape I use. It's plain CSV so the business can edit it in Excel, and the expected-reading column is the part most teams skip. id,question,expected answer,expected reading,ambiguous,must ask or label,severity if wrong,sql ref G1,What was revenue in October?,14720,"net, Completed, ship date",yes,no,high,G1b G2,What was our average order value in October?,2453.33,"per order, finance revenue",no,no,high,G2 G3,What's revenue year to date?,28620,"fiscal YTD from 1 July",yes,no,high,G3 G4,Revenue in Canada in October?,0,"real zero, region exists",no,no,medium,G4 G5,Revenue in the Gulf region in October?,no such region,"say region not found",no,yes,high,G5 G6,What was our top product in October?,Scanner Pro,"by revenue; units gives Scanner Lite",yes,yes,medium,G6 G7,What was the return rate in October?,11.1%,"returned lines / shipped lines, order date",yes,no,medium,G7 G8,Which region grew the most from September to October?,East $ or West % ,"must label $ vs %",yes,yes,medium,G8 G9,How many customers bought in October?,5,"distinct buying customers, ship date",no,no,medium,G9 G10,What was revenue last month?,14720,"previous calendar month",yes,no,high,G10 If you want the full kit, I put a reusable version in this week's BA Toolkit item: Copilot semantic model golden questions https://github.com/prachitparikh/ba-toolkit/blob/main/sql/copilot-semantic-model-golden-questions.md , with the sample schema, the SQL for each expected answer, the scoring sheet and the Prep for AI fix log. There's a PDF version https://prachitparikh.github.io/downloads/prachit-parikh-copilot-semantic-model-golden-questions.pdf if you'd rather print it for the workshop where finance signs the definitions. Ten is a demo. For a real rollout I'd want 30 to 60, and the mix matters more than the count. A rough split I'd start with: The business writes the questions. The BA writes the expected readings with the business owner in the room. Someone who didn't build the model writes the SQL for the expected answers, because the person who built the measure will reproduce its mistakes in the SQL. That last rule is the same reason panditshivam's post about defining revenue for an SQL agent built a fixture where two orders share an amount: you want test data that makes a wrong definition visible panditshivam on Dev.to https://dev.to/panditshivam/defining-revenue-for-an-sql-agent-one-row-at-a-time-a4h . I haven't run this golden set against Copilot in a live tenant for this post. The fixture shows what the expected answers are and how far apart the defensible readings sit; it doesn't show how often Copilot picks each one. That depends on your model, your Prep for AI settings, the runtime, and which Copilot surface the user is in, and it will change as Microsoft ships updates. Treat every number above as a property of the test data, not a claim about Copilot. It also doesn't cover row-level security. Microsoft's page on Copilot consumption says users only see results based on their own access, with row-level and column-level security respected. That means two people can get two different correct answers to G1. If your model uses RLS, run the golden set as at least two test users with different roles, and write expected answers per role. And it doesn't replace reviewing the DAX. The rubric tells you that something failed. The generated query tells you why. For the "why," my checklist for reviewing AI-generated SQL https://dev.to/prachitparikh/review-ai-generated-sql-before-you-trust-the-number-a-checklist-with-a-runnable-fixture-2j45 translates to DAX better than you'd think: grain first, then filters, then joins, then the empty set. If you've done the work on metric definitions before, this goes fast. My post on metric view relationships https://prachitparikh.github.io/blog/metric-view-relationships.html covers the same problem from the Databricks side, and the Power BI dashboard checklist https://prachitparikh-ba.blogspot.com/2026/11/power-bi-dashboard-checklist-7-checks.html on my Blogger has the pre-sharing checks I'd run on the model before any of this. A star schema, the shape Microsoft's guidance recommends for semantic models that AI will query. Image: "Star-schema.png" by SqlPac, CC BY-SA 3.0, via Wikimedia Commons https://commons.wikimedia.org/wiki/File:Star-schema.png . Every step between the raw data and the person reading the answer is a place where a definition can change. Copilot adds one more step. Image: "Data visualization process v1.png" by Farcaster at English Wikipedia, CC BY-SA 3.0, via Wikimedia Commons https://commons.wikimedia.org/wiki/File:Data visualization process v1.png . If you run the Northstar fixture and get different numbers, or you think my rubric is too strict on "Lucky," tell me in the comments. I'd rather fix the test than defend it. I'm Prachit Parikh, a business analyst. I turn what stakeholders ask for into requirements a team can test, check the data with SQL, and see changes through UAT. I keep free templates, including the golden question pack from this post, in my BA Toolkit https://github.com/prachitparikh/ba-toolkit on GitHub https://github.com/prachitparikh , and I make short animated explainers on YouTube https://www.youtube.com/@PrachitParikh1 . Besides Dev.to, I write on Substack https://prachitparikh.substack.com , Medium https://medium.com/@prachit.parikh , Hashnode https://prachitparikh.hashnode.dev , Blogger https://prachitparikh-ba.blogspot.com and WordPress https://prachitparikhblog.wordpress.com , and I answer questions on Quora https://www.quora.com/profile/Prachit-Parikh-2 . You can also find me on LinkedIn https://www.linkedin.com/in/prachitp , Bluesky https://bsky.app/profile/prachitparikh.bsky.social , Kaggle https://www.kaggle.com/prachitparikh , Credly https://www.credly.com/users/prachit-parikh , Crunchbase https://www.crunchbase.com/person/prachit-parikh-ct and Gravatar https://gravatar.com/prachitparikhba . Everything is collected on my website https://prachitparikh.github.io/ , my portfolio page https://prachitparikh.github.io/portfolio.html and my profile hub https://sites.google.com/view/prachit-parikh .