{"slug": "an-ai-agent-builds-excel-pivottables-on-your-semantic-model", "title": "An AI agent builds Excel PivotTables on your semantic model", "summary": "EMondrian added a make_excel_pivot tool to its MCP server that lets an AI agent generate an .xlsx workbook containing a live OLAP PivotTable connected to a semantic model, with no data or credentials embedded in the file. The agent uses list_catalogs and describe_cube to find business-named hierarchies and measures, then builds the PivotTable under the caller's roles. In a test against a public demo of 182 million US flights in ClickHouse, the 5 KB workbook refreshed in Excel for Microsoft 365 to 182,315,946 flights, a 1.90% cancellation rate and a 12.58-minute average arrival delay, matching MDX and Power BI queries.", "body_md": "Many reports still end up in Excel. Someone asks for \"flights by year, as a PivotTable\", and an analyst opens Excel, connects to the cube, drags fields and saves the file. With eMondrian, an AI agent does this in one step. You describe the report in plain words, and the agent returns an `.xlsx` file with a **live PivotTable** connected to your semantic model.\n\nThe file is an ordinary Excel workbook with an OLAP PivotTable, the same kind Excel creates when you connect to Analysis Services yourself:\n\n`#,##0`, Standard, Fixed, Percent and others) come across as Excel number formats.\nThe file carries no data and no credentials. The numbers come from the server on refresh, so the same file stays current, and you can send it to anyone who has access to the server.\n\neMondrian's MCP server has a tool for this, `make_excel_pivot`. The agent works the way an analyst would:\n\n`list_catalogs` and `describe_cube` to see the cubes, hierarchies and measures by their business names.`make_excel_pivot` with the catalog, the cube, the hierarchies for rows and columns, the filters and the measures.\nThe tool reads the model under the caller's roles, so the agent can only place hierarchies, measures and members that the user may see.\n\nConnect your agent to the public demo, 182 million US flights in ClickHouse (connection steps: [https://emondrian.com/demo](https://emondrian.com/demo)), and ask:\n\nMake an Excel file with a PivotTable on the OnTime catalog, cube OnTime (attributes): years on rows, with Flights, Cancellation Rate and Avg Arr Delay.\n\nThe agent reads the cube with `describe_cube` and calls `make_excel_pivot`:\n\n```\n{\n  \"catalog\": \"OnTime\",\n  \"cube\": \"OnTime (attributes)\",\n  \"rows\": [\"[Time.Year]\"],\n  \"measures\": [\"[Measures].[Flights]\", \"[Measures].[Cancellation Rate]\", \"[Measures].[Avg Arr Delay]\"]\n}\n```\n\nThe file, `OnTime OnTime (attributes).xlsx`, is about 5 KB: a PivotTable connected to the demo's XMLA endpoint.\n\nOpen the file in Excel and press *Refresh All*. In our test with Excel for Microsoft 365, the PivotTable showed 182,315,946 flights in total, a 1.90% cancellation rate and an average arrival delay of 12.58 minutes, with a row for every year: 1987 had 1,311,826 flights, 2024 had 7,079,061. The percent format of the cancellation rate came from the model.\n\nOther workbooks from the same test:\n\nEvery workbook opened in Excel as it was, and after refresh the numbers matched the same queries in MDX and in Power BI.\n\neMondrian Community includes sign-in through an authentication gateway with Keycloak. With sign-in switched on, Excel asks for a user name and password on the first refresh; users of an OIDC or SAML provider enter a personal access token as the password. The server runs Excel's queries as that user, and the roles in the model decide which rows and objects they see. One workbook can go to the whole team: each person gets their own numbers.\n\n`make_excel_pivot` is part of the free eMondrian Community edition, with no license key.\n\nRead more: [A semantic layer with an MCP server](https://docs.emondrian.com/articles/semantic-layer-with-an-mcp-server) · [AI agents (MCP)](https://docs.emondrian.com/clients/mcp) · [Excel](https://docs.emondrian.com/clients/excel) · [Security](https://docs.emondrian.com/ops/security)", "url": "https://wpnews.pro/news/an-ai-agent-builds-excel-pivottables-on-your-semantic-model", "canonical_source": "https://dev.to/sergeisemenkov/an-ai-agent-builds-excel-pivottables-on-your-semantic-model-3lmm", "published_at": "2026-11-24 15:32:58+00:00", "updated_at": "2026-11-24 15:47:48.662564+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "large-language-models", "developer-tools"], "entities": ["eMondrian", "Excel", "Microsoft 365", "ClickHouse", "Keycloak", "Power BI", "MCP", "OnTime"], "also_reported_by": [], "takeaway": "eMondrian's make_excel_pivot MCP tool returns a roughly 5 KB .xlsx with a live OLAP PivotTable that carries no data or credentials and refreshes under the caller's model roles, so one workbook can serve a whole team with per-user numbers.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/an-ai-agent-builds-excel-pivottables-on-your-semantic-model", "markdown": "https://wpnews.pro/news/an-ai-agent-builds-excel-pivottables-on-your-semantic-model.md", "text": "https://wpnews.pro/news/an-ai-agent-builds-excel-pivottables-on-your-semantic-model.txt", "jsonld": "https://wpnews.pro/news/an-ai-agent-builds-excel-pivottables-on-your-semantic-model.jsonld"}}