THR986 · Theater
From Data to Agentic AI with Fabric
Speakers: Eduardo Castro
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Eduardo Castro explains why agents give wrong answers: dirty data, mixed currencies and rows that already contain totals, column names with unclear meaning, and data leaking to users who should not see it. He proposes a four-layer pattern: trusted data in the bronze/silver/gold medallion architecture with quality gates, business meaning in a semantic model, role-based security, and only then the agent. A demo of a multi-country financial company shows a quality gate notebook (entity map, removal of consolidated rows, cross-source checks with a 1% threshold), semantic model descriptions and a Fabric ontology. The session ends with a Fabric data agent grounded on the ontology and semantic model, reusable from Microsoft Foundry and connected to Copilot Studio for publishing to Teams. The session announces nothing; it shows practical patterns built on existing capabilities.
Best for: Data engineers and Copilot Studio makers who are building Fabric data agents over multi-source financial data and need concrete quality-gate and semantic-annotation patterns.
New material: no clear start of new material was found in this session.
Where to skip: Skip to 10:37. The quality gate notebook (10:37), the semantic model descriptions (14:00) and the ontology (17:41) are the core. The data agent and Foundry reuse at 19:46 and the Copilot Studio/Teams link at 22:40 are short. The first 10 minutes cover the familiar medallion architecture and failure causes.
Chapters (9)
- 00:00 Recap Depth 100 · Novelty 0/3
Why agents give wrong answers: bad numbers, wrong meaning, data leakage
Eduardo Castro opens by asking who got an agent right the first time, then lists the typical failure causes. Wrong numbers come from dirty data, mixed currencies and source rows that already contain totals, which the agent counts twice. A Fabric data agent pointed directly at a data lake guesses meaning from column names (e.g. which 'revenue'). Agents can also expose data such as a salary table to users who have access to the agent but not to the table, which he calls an exfiltration problem.
- 03:27 Deep dive Depth 200 · Novelty 1/3
Four-layer pattern: trusted data, quality gates, business meaning, security, then agent
The speaker presents four layers for building reliable agents: trusted data ingested from many sources through the bronze/silver/gold medallion architecture, with quality gates before gold that check numbers, currencies, totals and conflicting sources of truth (SAP ERP vs. Tableau). The second layer is business meaning captured from interviews with business users and encoded in a semantic model. The third is security, so each role sees only data it is entitled to. Only then is the agent built; pointing an agent directly at raw tables usually makes the project fail.
- 07:04 Demo Depth 200 · Novelty 1/3
Customer case and Fabric workspace: medallion layers, pipeline with quality gates
The scenario is a financial company with offices in several countries, currencies and sources (Tableau, SAP, SQL Server, Oracle, Excel, CSV) that need consolidating. In Fabric the speaker shows the bronze/silver/gold layers, then a semantic model and an ontology built on the gold layer, and finally the agent. He warns against pointing a data agent at the bronze layer. He then shows the pipeline: a data-loading phase followed by quality gates, which hold business rules on cross-validation, the authoritative source and which data is excluded, plus a log of discrepancies.
- 10:37 Demo Depth 300 · Novelty 1/3
Quality gate notebook: entity map, consolidation removal, cross-source checks, 1% rule
The speaker walks through a quality gate notebook, available on GitHub along with the models so viewers can recreate the demo. An entity map unifies country and office identifiers across systems in different languages (Brazil, Costa Rica, US, Japan). Consolidated rows such as 'Brazil consolidated' are removed to avoid double counting. A cross-tab export compares Tableau, CSVs and other sources, checking office counts, duplicate rows and mismatches. If sources differ by more than 1%, the data is blocked from the agent and logged for business review, leaving a clean fact table.
- 14:00 Demo Depth 300 · Novelty 1/3
Encoding business meaning in semantic model descriptions for agents
Clean data alone is not enough, because without descriptions the agent guesses meaning from column names. In the semantic model the speaker shows table, column and measure descriptions, e.g. net revenue in USD must come from the source system of record and equals total revenue minus pass-through costs, and revenue is additive across offices and periods. A full-time-employee count is recorded monthly, so the description tells the agent to take the most recent value rather than sum the months. Comparison logic can be annotated in the same way.
- 17:41 Demo Depth 300 · Novelty 1/3
Fabric ontology: defining entity relationships and context for the agent
The speaker builds an ontology over the same annotated tables to tell the agent how the data is related: a fiscal period consists of months, monthly reports belong to an office, and an office has fiscal periods and monthly reports. Entity properties, such as those of the office, get descriptions and relationship context. He recaps the three steps (load and clean data with quality gates, annotate the semantic model, create the ontology) and warns that without them the agent guesses the relationships, usually wrongly.
- 19:46 Demo Depth 300 · Novelty 1/3
Fabric data agent over ontology and semantic model; reuse from Microsoft Foundry
Because the semantic model and ontology live in the platform, any tool can build an agent on them; for example, a Microsoft Foundry agent connected to the semantic model and ontology gets the full context. The speaker shows a Fabric data agent with the ontology and the semantic model as sources. A question is resolved first via the ontology (meaning and relationships), then via the semantic model descriptions, and finally queried against the lakehouse. Changing a definition in the semantic model updates the context for all connected agents.
- 22:40 Demo Depth 200 · Novelty 1/3
Connecting the data agent to Copilot Studio, publishing to Teams, DAX execution
The Fabric data agent can be connected to Copilot Studio, which points directly at the data agent and its lakehouse context. The regional agent can then be published to Teams, Microsoft Office or a web application, or called from Copilot. When the agent answers sample questions, it goes through the ontology, then the semantic model, and executes DAX against a semantic model or T-SQL against a database.
- 24:37 Closing Depth 100 · Novelty 0/3
Takeaways: quality gates, explicit measures and schemas, document everything
The speaker closes with patterns to take home: create quality gates between layers, define explicit measures and schemas, and document everything even though it takes time, before building the agent.
Announcements (0)
No specific announcement was made in this session.
Demos (6)
-
Overview of a Fabric workspace for a multi-country financial company, showing how raw data flows through medallion layers and quality gates before a semantic model, ontology and agent are built.
Steps (6)
- Open the Fabric workspace with bronze, silver and gold layers.
- Identify the gold layer containing clean data.
- Create a semantic model on top of the gold layer.
- Create an ontology based on the clean data.
- Create the agent on top of these items instead of on the bronze layer.
- Open the pipeline and review the data-loading phase followed by the quality gates step and its log.
Prerequisites: Microsoft Fabric workspace with lakehouse data loaded from the source systems.
-
Data engineers validate multi-source financial data in a notebook so that only consistent, non-duplicated data reaches the agent.
Steps (8)
- Download the notebooks and models from the speaker's GitHub repository.
- Open the quality gate notebook in Fabric.
- Build an entity map that unifies country and office names and codes across source systems.
- Remove consolidated rows (e.g. 'Brazil consolidated') so they are not counted twice with detail rows.
- Run the cross-tab export to compare sources (Tableau, CSVs and others) and choose the authoritative one.
- Check office and country counts per source, duplicate rows and mismatched amounts.
- Block data whose cross-source difference exceeds 1% and log it for business-user review.
- Use the resulting clean fact table as the input for the next layer.
Prerequisites: Fabric workspace with source data loaded; notebooks from the speaker's GitHub repository.
-
Annotate a semantic model so agents interpret revenue and headcount measures correctly.
Steps (6)
- Open the semantic model built on the clean gold data.
- Select a table and fill in its business description.
- Select the net revenue measure and describe its system of record and formula (total revenue minus pass-through cost).
- Describe revenue as additive across offices and periods.
- Select the full-time employees measure and state that the most recent monthly value is used, not the sum.
- Add descriptions for comparison logic where needed.
Prerequisites: Semantic model in Fabric based on clean data.
-
Model the relationships between offices, fiscal periods and monthly reports so the agent understands how the tables connect.
Steps (4)
- Create an ontology based on the annotated tables.
- Define the fiscal period concept as composed of months.
- Relate monthly reports and fiscal periods to the office entity.
- Open the office entity, go to Properties and add descriptions and relationship context.
Prerequisites: Clean data and an annotated semantic model in Fabric.
-
Build a Fabric data agent grounded on the ontology and semantic model so it answers financial questions with business context.
Steps (5)
- Create a Fabric data agent.
- Add the ontology as a data source.
- Add the annotated semantic model as a data source.
- Ask a question and observe that the agent consults the ontology, then the semantic model, then queries the lakehouse.
- Update descriptions in the semantic model when a definition changes so all connected agents pick up the change.
Prerequisites: Ontology and annotated semantic model in Fabric; lakehouse with clean data.
-
Expose the context-aware Fabric data agent to end users through Copilot Studio and Teams.
Steps (4)
- In Copilot Studio, create an agent and connect it directly to the Fabric data agent.
- Publish the regional agent to Teams, Microsoft Office or a web application, or call it from Copilot.
- Ask typical business questions.
- Inspect the run: ontology lookup, semantic model lookup, then the generated DAX query.
Prerequisites: A configured Fabric data agent; access to Copilot Studio.