<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sergei Semenkov</title>
    <description>The latest articles on DEV Community by Sergei Semenkov (@sergeisemenkov).</description>
    <link>https://dev.to/sergeisemenkov</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F563580%2F53802125-95ee-4bc2-81c7-c45a8eb7fedb.jpg</url>
      <title>DEV Community: Sergei Semenkov</title>
      <link>https://dev.to/sergeisemenkov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sergeisemenkov"/>
    <language>en</language>
    <item>
      <title>Keep company data and passwords out of your AI agent's chat</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:55:07 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/keep-company-data-and-passwords-out-of-your-ai-agents-chat-m8e</link>
      <guid>https://dev.to/sergeisemenkov/keep-company-data-and-passwords-out-of-your-ai-agents-chat-m8e</guid>
      <description>&lt;p&gt;&lt;strong&gt;An AI agent that connects to eMondrian acts on behalf of the user who signed in, with exactly that user's permissions.&lt;/strong&gt; eMondrian is an open-source semantic layer with an MCP server. The agent signs in as a person, through OAuth or a personal access token, and gets that person's roles: the same row-level and object-level security as in Excel and Power BI. The agent does not expand data access, it needs no database credentials of its own, and every call is written to an audit log with the user's name. You can also set the server up so that neither real data nor secrets reach the agent's chat: it works on a synthetic twin of your data, and the MCP audit log lets you check every call.&lt;/p&gt;

&lt;p&gt;All of this is part of the free, open-source Community edition.&lt;/p&gt;

&lt;h2&gt;
  
  
  What data can the agent see?
&lt;/h2&gt;

&lt;p&gt;The same data as its user.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The agent signs in as a person.&lt;/strong&gt; An MCP client signs in with OAuth (the client opens the login page in the browser) or with the user's personal access token. Users and groups come from Keycloak, Active Directory, LDAP, or an identity provider over OIDC or SAML, such as Microsoft Entra ID, Google, Okta or ADFS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One set of roles for every client.&lt;/strong&gt; Roles in the semantic model decide which cubes, measures and members a user sees, and which rows. Excel, Power BI Desktop, the REST API and the MCP server apply the same roles. A regional manager and the manager's agent see the same region.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delegated authorization.&lt;/strong&gt; The gateway passes the user name and groups to the eMondrian server; the server never receives the password.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The database stays behind the server.&lt;/strong&gt; The server connects to the database with credentials from its own configuration. The agent never receives them, and data-source passwords are masked in every MCP answer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A role in the model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;Role&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales EMEA"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;SchemaGrant&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;CubeGrant&lt;/span&gt; &lt;span class="na"&gt;cube&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"all"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/SchemaGrant&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;RoleMember&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/Sales/EMEA"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/Role&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Members of the group &lt;code&gt;/Sales/EMEA&lt;/code&gt; see the Sales cube, and so do their agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can the agent change?
&lt;/h2&gt;

&lt;p&gt;What its user may change. Querying data needs no server right. Every action that changes something, or reads more than data, needs a server right, the same for MCP, XML/A and the REST API:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Right&lt;/th&gt;
&lt;th&gt;What it allows&lt;/th&gt;
&lt;th&gt;MCP tools, for example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;schema.read&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Read a schema's XML and measure formulas&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;get_schema&lt;/code&gt;, formulas in &lt;code&gt;describe_cube&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;schema.write&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Save a schema or a role&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;save_schema&lt;/code&gt;, &lt;code&gt;save_role&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;database.read&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;See data-source details (with &lt;code&gt;schema.read&lt;/code&gt; on the catalog)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;describe_source&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;database.manage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Register or delete catalogs, install drivers&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;save_catalog&lt;/code&gt;, &lt;code&gt;delete_catalog&lt;/code&gt;, &lt;code&gt;install_driver&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;logs.read&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Read server logs&lt;/td&gt;
&lt;td&gt;&lt;code&gt;read_logs&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;dashboard.manage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Administer all dashboards&lt;/td&gt;
&lt;td&gt;dashboard tools&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Rights are granted to groups or users in &lt;code&gt;auth/security/security.properties&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="na"&gt;mondrian.security.schema.write&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;emondrian&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;editors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;emondrian&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;admins&lt;/span&gt;
&lt;span class="na"&gt;mondrian.security.database.manage&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;emondrian&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;admins&lt;/span&gt;
&lt;span class="na"&gt;mondrian.security.logs.read&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;emondrian&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;admins&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file lives on the server host and is mounted read-only into the server, so rights are changed only by an administrator on the host, never by a client or an agent. A change applies from the next request, with no restart. A higher right includes the lower one: &lt;code&gt;schema.write&lt;/code&gt; includes &lt;code&gt;schema.read&lt;/code&gt;, and &lt;code&gt;database.manage&lt;/code&gt; includes &lt;code&gt;database.read&lt;/code&gt;. &lt;code&gt;schema.read&lt;/code&gt; and &lt;code&gt;schema.write&lt;/code&gt; can also be granted per catalog. Tools that manage users, groups and tokens also check the caller's Keycloak administrator role on every call.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Least privilege for agents.&lt;/strong&gt; Give analysts and their agents data roles only, and keep &lt;code&gt;schema.write&lt;/code&gt; and &lt;code&gt;database.manage&lt;/code&gt; for the groups that build the model. The server validates every schema before it saves it. Schemas are files: keep them in Git and review each change as a diff.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can I limit what agents do on top of the user's rights?
&lt;/h2&gt;

&lt;p&gt;Yes, with two settings that apply to agents only. Excel and Power BI keep working as before.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A read-only MCP server.&lt;/strong&gt; Start the server with &lt;code&gt;-Demondrian.mcp.readOnly=true&lt;/code&gt;, and the MCP server offers agents only tools that read: list catalogs, describe cubes, run queries, build Excel PivotTables. The public demo runs this way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent access per catalog.&lt;/strong&gt; In &lt;code&gt;datasources.xml&lt;/code&gt;, set &lt;code&gt;agentAccess&lt;/code&gt; on a catalog:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;real&lt;/code&gt;: agents work with the catalog's data, under the user's roles;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;synthetic-only&lt;/code&gt;: agents see a generated twin of the catalog, with the same model and synthetic numbers (with the Synthetic data module);&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;none&lt;/code&gt;: the catalog is for Excel, Power BI and the REST API.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Can I keep both data and passwords away from the agent?
&lt;/h2&gt;

&lt;p&gt;Yes. eMondrian can be set up so that the agent builds and explains the model, while no password and no real number reaches it or its model provider.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Passwords.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Database passwords stay on the server.&lt;/strong&gt; The server connects to the database itself, with credentials from its own configuration. Data-source passwords are masked in every MCP answer and error message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The user's password stays in the browser.&lt;/strong&gt; With OAuth, the user types the password on the login page, and the agent's client program receives a token. The token is held by the client program, such as Claude Code; the model sees only the tools' answers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The audit log redacts secrets&lt;/strong&gt; — passwords, tokens and keys — in every mode.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data.&lt;/strong&gt; Set three things together:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;JAVA_TOOL_OPTIONS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;-Demondrian.mcp.agentAccess=synthetic-only -Demondrian.mcp.readOnly=true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Synthetic data for every catalog.&lt;/strong&gt; With &lt;code&gt;agentAccess=synthetic-only&lt;/code&gt; set for the whole server, every tool that returns data answers from a generated twin of the catalog: the same cubes, dimensions, measures and roles, with generated values and generated members such as "Store City 017". This covers MDX and DAX queries, cube descriptions, Power BI reports, dashboards and Excel PivotTables. Catalogs registered later get the same setting, and where a catalog and the server differ, the stricter value applies. Members that the model's own formulas name, such as a year in a role grant, keep their names, so the formulas keep working. (With the Synthetic data module.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A read-only MCP server.&lt;/strong&gt; With &lt;code&gt;mcp.readOnly=true&lt;/code&gt;, agents get only the tools that read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A separate account for the agent, and closed real catalogs.&lt;/strong&gt; Give the agent its own user in its own group, for example &lt;code&gt;/agents&lt;/code&gt;. Give every real catalog a &lt;code&gt;defaultRole&lt;/code&gt; with no access, and grant its data roles to people's groups only. On the synthetic twin, add a role for the agents' group:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;   &lt;span class="nt"&gt;&amp;lt;Role&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Agents"&lt;/span&gt; &lt;span class="na"&gt;schemaAccess&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"read"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
     &lt;span class="nt"&gt;&amp;lt;SchemaGrant&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"all"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
     &lt;span class="nt"&gt;&amp;lt;RoleMember&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/agents"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
   &lt;span class="nt"&gt;&amp;lt;/Role&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent's account then gets generated data from the twin, over MCP, XML/A and the REST API alike, and nothing from the real catalogs. &lt;code&gt;schemaAccess="read"&lt;/code&gt; lets the agent build Power BI reports on the twin.&lt;/p&gt;

&lt;p&gt;A read-only database user for eMondrian adds one more layer: grant it &lt;code&gt;SELECT&lt;/code&gt; on the tables the cubes are built on.&lt;/p&gt;

&lt;p&gt;The agent still sees the &lt;strong&gt;structure&lt;/strong&gt; on the twin: catalog, cube, dimension and measure names, and measure formulas. That is what it needs to write queries, explain the model and build reports. The schema files and data-source details of the real catalogs stay with the groups that have &lt;code&gt;schema.read&lt;/code&gt; and &lt;code&gt;database.read&lt;/code&gt;. Excel and Power BI users keep working on the real data under their own roles.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check it in the MCP audit log.&lt;/strong&gt; Every call the agent makes is in &lt;code&gt;logs/mcp-audit.log&lt;/code&gt;: the user, the tool, the catalog, the query and the number of rows. In &lt;code&gt;full&lt;/code&gt; mode the log also keeps the result text of each call, so you see exactly what reached the agent's chat.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who controls access, and where is it recorded?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your identity provider.&lt;/strong&gt; Groups come from Keycloak, Active Directory, LDAP, OIDC or SAML, named by their full path, for example &lt;code&gt;/Sales/Analysts&lt;/code&gt;. Move a person to another group, and the person's agent moves with them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The audit log.&lt;/strong&gt; Every MCP call is written to &lt;code&gt;logs/mcp-audit.log&lt;/code&gt;, one JSON line per message, in both directions. Each line has:

&lt;ul&gt;
&lt;li&gt;the time and the signed-in user (&lt;code&gt;principal&lt;/code&gt;);&lt;/li&gt;
&lt;li&gt;the tool, catalog and cube;&lt;/li&gt;
&lt;li&gt;the MDX or DAX query;&lt;/li&gt;
&lt;li&gt;the status, any error, the duration and the number of rows;&lt;/li&gt;
&lt;li&gt;the session, the client name and version (for example &lt;code&gt;claude-code&lt;/code&gt;), and the client IP.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Passwords, tokens and keys are always redacted. The format is JSON, so you can ship the log to your own Loki or ELK. In &lt;code&gt;full&lt;/code&gt; mode, the log also keeps the arguments and the result text of each call.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Checking what a user sees.&lt;/strong&gt; An administrator can run a read tool &lt;code&gt;as_user&lt;/code&gt; to see the data as another user sees it. The call is logged under the administrator's name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Personal access tokens.&lt;/strong&gt; Each user creates a token at &lt;code&gt;PUBLIC_URL/account/tokens&lt;/code&gt; and can revoke it there; an administrator can revoke any token. Issuing a new token revokes the old one. A revoked token, or a disabled user, is refused within about 30 seconds.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to switch it on
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install eMondrian Community with Docker.&lt;/li&gt;
&lt;li&gt;Switch sign-in on with one command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   ./auth/scripts/authentication.sh on       &lt;span class="c"&gt;# Linux&lt;/span&gt;
   .\auth\scripts\authentication.ps1 on      &lt;span class="c"&gt;# Windows&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Set &lt;code&gt;PUBLIC_URL&lt;/code&gt; and turn on &lt;a href="https://docs.emondrian.com/ops/https" rel="noopener noreferrer"&gt;HTTPS&lt;/a&gt;. MCP clients on other machines sign in with OAuth over HTTPS.&lt;/li&gt;
&lt;li&gt;Connect your identity provider and grant rights to its groups — see &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Give every schema a restrictive &lt;code&gt;defaultRole&lt;/code&gt;, and add roles for your groups.&lt;/li&gt;
&lt;li&gt;Connect the agent and sign in — see &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;AI agents (MCP)&lt;/a&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   claude mcp add --transport http emondrian https://bi.example.com/emondrian/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Is it safe to use AI with company data?
&lt;/h2&gt;

&lt;p&gt;It depends on what the AI can reach. With eMondrian:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the data stays in your database, and the semantic layer runs on your own server;&lt;/li&gt;
&lt;li&gt;the agent gets only what its user may see;&lt;/li&gt;
&lt;li&gt;every call is logged with the user's name;&lt;/li&gt;
&lt;li&gt;for sensitive catalogs, agents can work on a synthetic twin, with the same model and generated numbers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Query results go to the agent and to the model provider the agent uses, so choose that provider under your company's data policy.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can an AI agent see data the user is not allowed to see?&lt;/strong&gt;&lt;br&gt;
The agent sees only what its user may see. It signs in as the user and gets that user's roles: the same row-level and object-level security as in Excel and Power BI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I set up role-based access control for AI agents?&lt;/strong&gt;&lt;br&gt;
Define data roles in the semantic model and grant server rights in &lt;code&gt;security.properties&lt;/code&gt;, both to groups from your identity provider. An agent gets the roles and rights of the user it signs in as.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does an MCP server support row-level security?&lt;/strong&gt;&lt;br&gt;
The eMondrian MCP server applies the row-level and object-level security of the semantic model to every query the agent runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the agent need its own database credentials?&lt;/strong&gt;&lt;br&gt;
The database credentials stay on the eMondrian server. The agent signs in as a person, with OAuth or a personal access token.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does company data end up in the AI agent's chat?&lt;/strong&gt;&lt;br&gt;
Set up as in Can I keep both data and passwords away from the agent?, the agent's chat, its history and its model provider get only generated numbers and names, and never a password, token or database credential. You control this in the eMondrian MCP audit log: every agent call is recorded with the user, tool, catalog and query, and in &lt;code&gt;full&lt;/code&gt; mode with the result text the agent received. Passwords, tokens and keys are redacted in every mode.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it safe to use AI with company data?&lt;/strong&gt;&lt;br&gt;
With eMondrian the data stays in your database, the agent sees only what its user may see, and every call is logged with the user's name.&lt;/p&gt;

&lt;p&gt;Read more: &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;AI agents (MCP)&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/https" rel="noopener noreferrer"&gt;HTTPS&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/articles/semantic-layer-with-an-mcp-server" rel="noopener noreferrer"&gt;A semantic layer with an MCP server&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>security</category>
      <category>opensource</category>
    </item>
    <item>
      <title>An AI agent builds Excel PivotTables on your semantic model</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Tue, 24 Nov 2026 15:32:58 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/an-ai-agent-builds-excel-pivottables-on-your-semantic-model-3lmm</link>
      <guid>https://dev.to/sergeisemenkov/an-ai-agent-builds-excel-pivottables-on-your-semantic-model-3lmm</guid>
      <description>&lt;p&gt;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 &lt;code&gt;.xlsx&lt;/code&gt; file with a &lt;strong&gt;live PivotTable&lt;/strong&gt; connected to your semantic model.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;p&gt;The file is an ordinary Excel workbook with an OLAP PivotTable, the same kind Excel creates when you connect to Analysis Services yourself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A live connection.&lt;/strong&gt; The workbook holds a connection to the eMondrian XMLA endpoint and the catalog. Press &lt;em&gt;Data → Refresh All&lt;/em&gt;, and Excel queries the server for the current numbers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your layout.&lt;/strong&gt; Hierarchies on rows and columns, filters with one or several members, and the measures you asked for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your formats.&lt;/strong&gt; Number formats from the model (&lt;code&gt;#,##0&lt;/code&gt;, Standard, Fixed, Percent and others) come across as Excel number formats.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A normal PivotTable afterwards.&lt;/strong&gt; Users expand hierarchies, add fields and change filters in Excel, as with any PivotTable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;eMondrian's MCP server has a tool for this, &lt;code&gt;make_excel_pivot&lt;/code&gt;. The agent works the way an analyst would:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Finds the model.&lt;/strong&gt; It calls &lt;code&gt;list_catalogs&lt;/code&gt; and &lt;code&gt;describe_cube&lt;/code&gt; to see the cubes, hierarchies and measures by their business names.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Builds the PivotTable.&lt;/strong&gt; It calls &lt;code&gt;make_excel_pivot&lt;/code&gt; with the catalog, the cube, the hierarchies for rows and columns, the filters and the measures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saves the file.&lt;/strong&gt; The server returns the workbook, and the agent saves it to your disk. Nothing is written on the server.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The tool reads the model under the caller's roles, so the agent can only place hierarchies, measures and members that the user may see.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Connect your agent to the public demo, 182 million US flights in ClickHouse (connection steps: &lt;a href="https://emondrian.com/demo" rel="noopener noreferrer"&gt;https://emondrian.com/demo&lt;/a&gt;), and ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Make an Excel file with a PivotTable on the OnTime catalog, cube OnTime (attributes): years on rows, with Flights, Cancellation Rate and Avg Arr Delay.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent reads the cube with &lt;code&gt;describe_cube&lt;/code&gt; and calls &lt;code&gt;make_excel_pivot&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"catalog"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"OnTime"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cube"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"OnTime (attributes)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"[Time.Year]"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"measures"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"[Measures].[Flights]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"[Measures].[Cancellation Rate]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"[Measures].[Avg Arr Delay]"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file, &lt;code&gt;OnTime OnTime (attributes).xlsx&lt;/code&gt;, is about 5 KB: a PivotTable connected to the demo's XMLA endpoint.&lt;/p&gt;

&lt;p&gt;Open the file in Excel and press &lt;em&gt;Refresh All&lt;/em&gt;. 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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3sfwqdfgiltwso52js2l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3sfwqdfgiltwso52js2l.png" alt="The PivotTable made by the agent, after Refresh All in Excel: flights, cancellation rate and average arrival delay by year" width="560" height="650"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Other workbooks from the same test:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Airlines by year:&lt;/strong&gt; 33 airlines on rows, 30 years on columns, Flights.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FoodMart, a filter with several members:&lt;/strong&gt; Store State = CA and WA (Multiple Items), Unit Sales and Profit: 199,114 and 254,106.33.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A parent-child hierarchy:&lt;/strong&gt; FoodMart HR, Employees with Org Salary and Number of Employees; expanding Sheri Nowmer shows her five direct reports.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every workbook opened in Excel as it was, and after refresh the numbers matched the same queries in MDX and in Power BI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who sees what
&lt;/h2&gt;

&lt;p&gt;eMondrian 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it fits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Monthly and ad-hoc reports&lt;/strong&gt; that people still want in Excel, built from a sentence instead of by hand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A starting point for analysts:&lt;/strong&gt; the agent sets up the PivotTable, the analyst continues in Excel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One definition of each measure:&lt;/strong&gt; the PivotTable uses the same &lt;em&gt;Unit Sales&lt;/em&gt; and &lt;em&gt;Profit&lt;/em&gt; as Power BI, eMondrian dashboards and the AI agent's own answers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;make_excel_pivot&lt;/code&gt; is part of the free eMondrian Community edition, with no license key.&lt;/p&gt;

&lt;p&gt;Read more: &lt;a href="https://docs.emondrian.com/articles/semantic-layer-with-an-mcp-server" rel="noopener noreferrer"&gt;A semantic layer with an MCP server&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;AI agents (MCP)&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/excel" rel="noopener noreferrer"&gt;Excel&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt;&lt;/p&gt;

</description>
      <category>excel</category>
      <category>ai</category>
      <category>mcp</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Modernise old OLAP cubes without retraining your Excel users</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:49:33 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/modernise-old-olap-cubes-without-retraining-your-excel-users-3lp2</link>
      <guid>https://dev.to/sergeisemenkov/modernise-old-olap-cubes-without-retraining-your-excel-users-3lp2</guid>
      <description>&lt;p&gt;Your reporting runs on old OLAP cubes, and nobody wants to maintain the server under them. eMondrian replaces it with an open-source semantic layer that speaks the same language as the cubes: an &lt;strong&gt;MDX/XMLA endpoint&lt;/strong&gt;. Excel connects to it the way it connects to Analysis Services, so your users keep their PivotTables, their hierarchies and their measures, and work the way they always have. The data moves to ClickHouse or another SQL database that you already know how to run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What stays the same for Excel users
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The same connection.&lt;/strong&gt; Excel uses its built-in &lt;em&gt;From Analysis Services&lt;/em&gt; connection. Nothing is installed on users' machines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same PivotTables.&lt;/strong&gt; Users drag measures and dimensions, expand Year to Quarter to Month, and filter, as before. Every change sends an MDX query, as it did to the old cubes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same definitions.&lt;/strong&gt; Measures, their formats and calculated measures live in the model, so every workbook shows the same &lt;em&gt;Revenue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same rules on who sees what.&lt;/strong&gt; With authentication switched on, users sign in with their company account: Active Directory or LDAP, or an OIDC or SAML provider such as Entra ID or Okta. Roles in the model, assigned from the user's groups, limit the rows and objects each user sees.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Excel connectivity is part of the free, open-source Community edition, with no license key.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes behind the cubes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No cube processing.&lt;/strong&gt; eMondrian doesn't copy the data into storage of its own. Every question becomes SQL against your database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own SQL database.&lt;/strong&gt; ClickHouse and PostgreSQL drivers are included; other databases work with their JDBC driver. A column-store database such as ClickHouse does the heavy aggregation over hundreds of millions of rows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The model is a readable file.&lt;/strong&gt; Each cube is described in an XML schema: dimensions, hierarchies, measures, calculated members, roles. Review it and keep it in Git.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More clients on the same model.&lt;/strong&gt; Power BI connects to the same cubes with a live connection (with the DAX module; a 30-day evaluation key is free), AI agents through the built-in MCP server, and services through a REST API with JSON.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How the move goes
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install Community&lt;/strong&gt; with Docker on a server of your own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the data into the SQL database&lt;/strong&gt; that will hold it, for example ClickHouse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Describe the cubes in an eMondrian schema.&lt;/strong&gt; An AI agent connected to the &lt;a href="https://docs.emondrian.com/articles/semantic-layer-with-an-mcp-server" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt; speeds this up: it reads the database tables, writes the cube, validates it and runs test queries. You review its work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare the numbers&lt;/strong&gt; with the old cubes on the reports that matter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Point the workbooks to the new server.&lt;/strong&gt; Keep the catalog, cube and hierarchy names the same as in the old cubes. Then in Excel, &lt;em&gt;Data → Queries &amp;amp; Connections&lt;/em&gt;, open the connection's &lt;em&gt;Properties → Definition&lt;/em&gt; and change &lt;em&gt;Data Source&lt;/em&gt; in the connection string to the eMondrian XMLA address. Test one workbook first.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try it first on the public demo, 182 million US flights in ClickHouse: in Excel, &lt;strong&gt;Data → Get Data → From Database → From Analysis Services&lt;/strong&gt;, server &lt;code&gt;https://demo.emondrian.com/xmla&lt;/code&gt;, database &lt;strong&gt;OnTime&lt;/strong&gt;, cube &lt;strong&gt;OnTime (attributes)&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  For the technical team: what moves and what changes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In Excel&lt;/strong&gt;, parent-child hierarchies, named sets, default members and calculated measures work as in the old cubes.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;In Power BI&lt;/strong&gt;, parent-child hierarchies are shown as columns Level 01…NN, and calculated measures as measures; time intelligence is built with them too.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The model.&lt;/strong&gt; Dimensions, hierarchies, measures, calculated members, named sets and roles are elements of the eMondrian schema. See &lt;a href="https://docs.emondrian.com/modeling/schema" rel="noopener noreferrer"&gt;Schema&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;SCOPE assignments.&lt;/strong&gt; Write them as calculated measures (MDX, with &lt;code&gt;IIF&lt;/code&gt; over the members the SCOPE covered) or as measures calculated in SQL.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Mondrian and Pentaho schemas.&lt;/strong&gt; Mondrian 3.x schemas work in Excel without changes; for Power BI, converting them to the attribute model is recommended: it gives Power BI a column for each attribute.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Connection.&lt;/strong&gt; Excel connects to &lt;code&gt;http://&amp;lt;server&amp;gt;/xmla&lt;/code&gt;; with authentication on, to &lt;code&gt;https://&amp;lt;server&amp;gt;/xmla&lt;/code&gt;. Users enter their company (Active Directory or LDAP) user name and password; users of an OIDC or SAML provider use a personal access token as the password. See &lt;a href="https://docs.emondrian.com/clients/excel" rel="noopener noreferrer"&gt;Excel&lt;/a&gt; and &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read more: &lt;a href="https://docs.emondrian.com/getting-started/what-is-emondrian" rel="noopener noreferrer"&gt;What is eMondrian&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/excel" rel="noopener noreferrer"&gt;Excel&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/power-bi" rel="noopener noreferrer"&gt;Power BI&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/install/docker" rel="noopener noreferrer"&gt;Install with Docker&lt;/a&gt;&lt;/p&gt;

</description>
      <category>excel</category>
      <category>dataengineering</category>
      <category>opensource</category>
      <category>sql</category>
    </item>
    <item>
      <title>A semantic layer with an MCP server: eMondrian gives AI agents your business metrics</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Mon, 23 Nov 2026 09:38:56 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/a-semantic-layer-with-an-mcp-server-emondrian-gives-ai-agents-your-business-metrics-37di</link>
      <guid>https://dev.to/sergeisemenkov/a-semantic-layer-with-an-mcp-server-emondrian-gives-ai-agents-your-business-metrics-37di</guid>
      <description>&lt;p&gt;eMondrian is an open-source semantic layer and OLAP server with a built-in &lt;strong&gt;MCP server&lt;/strong&gt;, part of the free Community edition, with no license key. With it, an AI agent becomes the main development tool for your semantic layer: it installs the database driver and registers the database, writes and checks the cubes, sets the roles, adds users, and builds dashboards and Power BI reports, many times faster than by hand. You review its work. On our test server an agent built a dashboard in 29 seconds, and set up a client with a role, an account and access in under two minutes.&lt;/p&gt;

&lt;p&gt;Through the same MCP server the agent queries the model: it lists your catalogs, cubes and measures, runs MDX queries, and gets numbers calculated by the definitions in your model, instead of guessing joins and formulas from raw tables. With the DAX module (a 30-day evaluation key is free), it also runs DAX and builds Power BI reports.&lt;/p&gt;

&lt;p&gt;Excel PivotTables and Power BI connect to the same model live. The agent, Excel and Power BI read one definition of &lt;em&gt;Revenue&lt;/em&gt;, and get one number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why agents need a semantic layer
&lt;/h2&gt;

&lt;p&gt;Give an agent access to the database, and it writes SQL against tables it doesn't know. It decides on its own how &lt;em&gt;revenue&lt;/em&gt; is calculated, whether returns count, and which join is right. Ask twice and you may get two numbers, neither of them the one in the board report.&lt;/p&gt;

&lt;p&gt;A semantic layer defines the numbers once: measures, dimensions, hierarchies, and which rows each person may see. An agent connected to the semantic layer asks for &lt;em&gt;Store Sales by Region&lt;/em&gt;, and the server calculates it the way the model says.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect an agent in one line
&lt;/h2&gt;

&lt;p&gt;The public demo is open without sign-in, with read-only schemas, on 182 million US flights in ClickHouse:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http emondrian-demo https://demo.emondrian.com/emondrian/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In claude.ai: &lt;strong&gt;Customize → Connectors&lt;/strong&gt;, add a custom connector with the URL &lt;code&gt;https://demo.emondrian.com/emondrian/mcp&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On your own server the address is &lt;code&gt;https://&amp;lt;your server&amp;gt;/emondrian/mcp&lt;/code&gt; (Streamable HTTP; &lt;code&gt;/emondrian/mcp/sse&lt;/code&gt; for clients that only speak SSE). Claude Desktop connects through &lt;code&gt;mcp-remote&lt;/code&gt;; any MCP client works. See &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;AI agents (MCP)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask in plain English, get the model's numbers
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Which five airlines flew the most flights in 2024, and what was their average arrival delay?"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent reads the cube with &lt;code&gt;describe_cube&lt;/code&gt;, writes the query with the model's names and runs it with &lt;code&gt;execute_query&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Measures&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Flights&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Measures&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;Avg&lt;/span&gt; &lt;span class="nc"&gt;Arr&lt;/span&gt; &lt;span class="nc"&gt;Delay&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nc"&gt;TopCount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Airline&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Airline&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Members&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Measures&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Flights&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;OnTime&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attributes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;Time&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2024&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Airline&lt;/th&gt;
&lt;th&gt;Flights&lt;/th&gt;
&lt;th&gt;Avg arrival delay, min&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;WN&lt;/td&gt;
&lt;td&gt;1,419,419&lt;/td&gt;
&lt;td&gt;12.13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DL&lt;/td&gt;
&lt;td&gt;1,009,174&lt;/td&gt;
&lt;td&gt;13.19&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AA&lt;/td&gt;
&lt;td&gt;984,306&lt;/td&gt;
&lt;td&gt;23.01&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;UA&lt;/td&gt;
&lt;td&gt;760,451&lt;/td&gt;
&lt;td&gt;15.07&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OO&lt;/td&gt;
&lt;td&gt;744,658&lt;/td&gt;
&lt;td&gt;15.96&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Flights&lt;/em&gt; and &lt;em&gt;Avg Arr Delay&lt;/em&gt; are measures of the model. Excel and Power BI on the same cube show the same values.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent builds every part
&lt;/h2&gt;

&lt;p&gt;Each step of the work has its MCP tools:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;MCP tools&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Connect a database&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;install_driver&lt;/code&gt;, &lt;code&gt;list_drivers&lt;/code&gt;, &lt;code&gt;save_catalog&lt;/code&gt;, &lt;code&gt;list_source_credentials&lt;/code&gt; (you put the database password into &lt;code&gt;.env&lt;/code&gt;; the agent sees only its name)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read the database&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;describe_source&lt;/code&gt;, &lt;code&gt;validate_source_sql&lt;/code&gt; (structure only, no rows)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write and check a cube&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;get_cube_authoring_guide&lt;/code&gt;, &lt;code&gt;validate_schema&lt;/code&gt;, &lt;code&gt;save_schema&lt;/code&gt;, &lt;code&gt;get_schema&lt;/code&gt;, &lt;code&gt;add_time_measures&lt;/code&gt; (YTD, previous year, YoY)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test the numbers&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;describe_cube&lt;/code&gt;, &lt;code&gt;execute_query&lt;/code&gt; (MDX; DAX with the DAX module)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decide who sees what&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;list_roles&lt;/code&gt;, &lt;code&gt;get_role&lt;/code&gt;, &lt;code&gt;save_role&lt;/code&gt;, &lt;code&gt;delete_role&lt;/code&gt;, &lt;code&gt;set_default_role&lt;/code&gt;; &lt;code&gt;execute_query&lt;/code&gt; with &lt;code&gt;as_user&lt;/code&gt; to see it as that user (administrators)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add users and groups (with authentication on)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;create_user&lt;/code&gt; (it can e-mail the user a link to set a password), &lt;code&gt;create_group&lt;/code&gt;, &lt;code&gt;set_user_groups&lt;/code&gt; (users who may manage users)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build dashboards&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;create_dashboard&lt;/code&gt;, &lt;code&gt;update_dashboard&lt;/code&gt;, &lt;code&gt;set_dashboard_access&lt;/code&gt; (with a key that includes dashboards)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build Power BI reports with a live connection&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;make_project&lt;/code&gt;, &lt;code&gt;make_page&lt;/code&gt;, &lt;code&gt;make_visual&lt;/code&gt;, &lt;code&gt;arrange_page&lt;/code&gt;, &lt;code&gt;validate_report&lt;/code&gt; (with the DAX module)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Find a problem&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;read_logs&lt;/code&gt;, &lt;code&gt;get_properties&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Ask, for example, with a catalog MySales registered and its password in &lt;code&gt;.env&lt;/code&gt;: &lt;em&gt;"In catalog MySales, create a cube Sales on the ClickHouse table sales: a Time dimension from sale_date, Region and Product, measures Amount and Quantity, and Avg Price = Amount / Quantity. Validate it, save it, and show total Amount by Region."&lt;/em&gt; The agent reads the columns, writes the schema, checks it against the database, saves it and runs the query. The schema is a plain XML file: review it and keep it in Git. With authentication on, changing schemas, roles and drivers and reading logs need administrator rights on the server; the public demo has read-only schemas, so build your first cube on your own Community.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent sees what its user may see
&lt;/h2&gt;

&lt;p&gt;Switch authentication on (one command), and every MCP call runs as the user who signed in: through OAuth in the browser, with a password, or with the user's personal token.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The same roles everywhere.&lt;/strong&gt; Row-level and object-level rules are part of the model. Excel, Power BI Desktop, eMondrian dashboards, the REST API and the agent apply the same roles to the same user. A manager limited to the West region gets West-region numbers from the agent, too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your directory.&lt;/strong&gt; Users and groups come from Active Directory or LDAP, or from an OIDC or SAML provider, through Keycloak. A user who signs in through OIDC or SAML needs an account in Keycloak as well.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same rights for changes.&lt;/strong&gt; An agent may change a schema only if its user may.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every call is logged&lt;/strong&gt; with the user's name.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The MCP server, sign-in, roles and the call log are part of the free Community edition. DAX, Power BI reports and dashboards need a key that includes them.&lt;/p&gt;

&lt;h2&gt;
  
  
  One model for the agent, Excel and Power BI
&lt;/h2&gt;

&lt;p&gt;The agent, Excel PivotTables and Power BI read the same model on your own server. Services and scripts get it too, over a &lt;a href="https://docs.emondrian.com/articles/emondrian-now-speaks-json" rel="noopener noreferrer"&gt;REST API with JSON&lt;/a&gt; (&lt;code&gt;/api/v1&lt;/code&gt;), free in Community. Change a measure once: the agent uses the new definition from its next query, Excel and Power BI from their next connection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Connect your agent to the demo with the command above and ask about the flights.&lt;/li&gt;
&lt;li&gt;Install Community on your own machine (Docker), connect it to your database, and ask the agent to draft the first cube.&lt;/li&gt;
&lt;li&gt;Switch authentication on before other people connect.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Read more: &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;AI agents (MCP)&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/rest" rel="noopener noreferrer"&gt;REST API (JSON)&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/install/docker" rel="noopener noreferrer"&gt;Install with Docker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://docs.emondrian.com/articles/semantic-layer-with-an-mcp-server" rel="noopener noreferrer"&gt;docs.emondrian.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>opensource</category>
      <category>datascience</category>
    </item>
    <item>
      <title>eMondrian now speaks JSON: a REST API on your semantic model</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Fri, 20 Nov 2026 19:41:19 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/emondrian-now-speaks-json-a-rest-api-on-your-semantic-model-3pc9</link>
      <guid>https://dev.to/sergeisemenkov/emondrian-now-speaks-json-a-rest-api-on-your-semantic-model-3pc9</guid>
      <description>&lt;p&gt;Until now, a program that wanted numbers from eMondrian had to speak XMLA: SOAP envelopes, XML answers, a client library that exists for few languages. Excel and Power BI do this for you. A Python script, a Node backend or an n8n workflow don't.&lt;/p&gt;

&lt;p&gt;From Community &lt;code&gt;2026.11.20&lt;/code&gt; eMondrian also answers over &lt;strong&gt;REST with JSON&lt;/strong&gt;. Send an MDX or DAX query in a POST request and get rows back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; https://demo.emondrian.com/api/v1/query -d &lt;span class="s1"&gt;'{
  "catalog": "OnTime",
  "query": "SELECT {[Measures].[Flights], [Measures].[Avg Arr Delay]} ON 0, TopCount([Airline].[Airline].Members, 5, [Measures].[Flights]) ON 1 FROM [OnTime (attributes)] WHERE [Time].[2024]"
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"columns"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Airline"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"member"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Flights"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"measure"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"number"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Avg Arr Delay"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"measure"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"number"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Airline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"WN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Flights"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1419419&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Avg Arr Delay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;12.13&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Airline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Flights"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1009174&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Avg Arr Delay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;13.19&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Airline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AA"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Flights"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;984306&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Avg Arr Delay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;23.01&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Airline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"UA"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Flights"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;760451&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Avg Arr Delay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;15.07&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Airline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"OO"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Flights"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;744658&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Avg Arr Delay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;15.96&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rowCount"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"truncated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"elapsedMs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;168&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can run this request yourself: it goes to our public demo, 182 million US flights in ClickHouse, open without sign-in. The answer took 168 ms.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the API does
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GET /api/v1/catalogs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The catalogs, each with the cubes you may see&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GET /api/v1/catalogs/{catalog}/cubes/{cube}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Dimensions, hierarchies, levels and measures&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POST /api/v1/query&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The result of an MDX or DAX query, as a table&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GET /api/v1/openapi.json&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The OpenAPI 3 description&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read-only.&lt;/strong&gt; It runs queries. It doesn't change models or write data back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MDX and DAX.&lt;/strong&gt; A DAX query comes back as the table it defines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No licence key&lt;/strong&gt; for the API itself. DAX queries need the DAX module, as everywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same security as XMLA.&lt;/strong&gt; The same users, passwords and tokens, sent in the header, and every query runs with the caller's roles.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full reference: &lt;a href="https://docs.emondrian.com/clients/rest" rel="noopener noreferrer"&gt;REST API (JSON)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it matters: the model is now for every system
&lt;/h2&gt;

&lt;p&gt;A semantic model defines your numbers once: what &lt;em&gt;Revenue&lt;/em&gt; is, how &lt;em&gt;Margin&lt;/em&gt; is calculated, which rows each customer may see. Excel, Power BI and AI agents already use it. Now everything else can, too, and gets the same numbers.&lt;/p&gt;

&lt;p&gt;Here is what that opens up.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Your own HTML dashboard on governed data
&lt;/h3&gt;

&lt;p&gt;With an AI agent anyone can build a dashboard page in their own design in minutes. The hard part is the data behind it: the agent writes the numbers into the file, or the page gets a database password.&lt;/p&gt;

&lt;p&gt;With the REST API, the page's backend asks eMondrian for the data at each view:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// server side: the token stays on your server&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://bi.example.com/api/v1/query"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.EMONDRIAN_TOKEN}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;catalog&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"FoodMart"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SELECT {[Measures].[Unit Sales]} ON 0, NON EMPTY [Store].[Store State].Members ON 1 FROM [Sales]"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The data is live, the file holds no numbers, and the database password stays in eMondrian. The measures are the model's: &lt;em&gt;Unit Sales&lt;/em&gt; on the page is the same number as in Excel.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A customer portal where each customer sees only their rows
&lt;/h3&gt;

&lt;p&gt;Give each customer an eMondrian user and a role. An administrator issues that user's personal token, on the page &lt;code&gt;/account/tokens?user=acme-portal&lt;/code&gt; or from a script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -u admin -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; https://bi.example.com/account/api/tokens \
     -d &lt;span class="s1"&gt;'{"user": "acme-portal", "name": "Acme portal backend", "days": 90}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The answer shows the token once. Your backend keeps it and calls the API with it, and the server filters the rows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"rows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Store State"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"OR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"Unit Sales"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;67659&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same query, same code. With an administrator's token the answer has three states; with Acme's token, only Oregon. With &lt;code&gt;rollupPolicy="partial"&lt;/code&gt; on the role's grant, totals count only the rows the role allows. The filter is not in your JavaScript, so nobody can remove it in the browser.&lt;/p&gt;

&lt;p&gt;A user has one personal token, so give the portal a user of its own: revoking its token stops nothing else. To take access away, revoke the token or disable the user: the token stops working within 30 seconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Scripts and notebooks
&lt;/h3&gt;

&lt;p&gt;A data scientist doesn't need an XMLA library to get the official numbers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://bi.example.com/api/v1/query"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {os.environ['EMONDRIAN_TOKEN']}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"catalog"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"FoodMart"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cube"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Sales"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="s2"&gt;"query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'EVALUATE SUMMARIZECOLUMNS(Store[Store State], "Unit Sales", [Unit Sales])'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rows"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A DAX query names the cube, and its columns are named as in the query: &lt;code&gt;Store[Store State]&lt;/code&gt; and &lt;code&gt;[Unit Sales]&lt;/code&gt;. The forecast in the notebook starts from the same &lt;em&gt;Unit Sales&lt;/em&gt; as the board report.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Low-code tools and automations
&lt;/h3&gt;

&lt;p&gt;n8n, Make, Retool, Zapier, a Power Automate flow: any tool that can send an HTTP request and read JSON can now query the model. A few ideas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A morning KPI message&lt;/strong&gt; in Slack or Teams: yesterday's sales against the same day last year.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An alert&lt;/strong&gt; when a measure crosses a threshold: late deliveries above 5%, stock below a minimum.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An internal tool&lt;/strong&gt; in Retool on the same measures as Power BI.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Exports to other systems
&lt;/h3&gt;

&lt;p&gt;A scheduled job reads aggregates from the model and writes them where they are needed: a CRM field with each account's revenue, a planning sheet, a partner's file. The numbers in the export are the model's, not another SQL query that someone wrote once and nobody checks.&lt;/p&gt;

&lt;p&gt;By default a request returns up to 10,000 rows; it can ask for up to 100,000 with &lt;code&gt;maxRows&lt;/code&gt;. Both limits are server settings, and &lt;code&gt;truncated&lt;/code&gt; says when rows were left out.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Services that AI agents write for you
&lt;/h3&gt;

&lt;p&gt;An agent that writes code reads &lt;code&gt;/api/v1/openapi.json&lt;/code&gt;, signed in with the service's credentials, and knows the whole API. It reads the cube's model from &lt;code&gt;/api/v1/catalogs/{catalog}/cubes/{cube}&lt;/code&gt; and writes queries in business names: &lt;em&gt;Unit Sales&lt;/em&gt;, &lt;em&gt;Store State&lt;/em&gt;, not tables and joins. The service it writes runs as a user with a role, so it sees only what that user may see.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security: the same as XMLA
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sign-in&lt;/th&gt;
&lt;th&gt;How&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;User name and password&lt;/td&gt;
&lt;td&gt;HTTP Basic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Personal token (&lt;code&gt;emk_…&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Authorization: Bearer emk_…&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OAuth access token&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Authorization: Bearer &amp;lt;token&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;A token goes in the header, where proxies and browser histories don't keep it. A token in the address is refused.&lt;/li&gt;
&lt;li&gt;Every query runs with the caller's &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;roles&lt;/a&gt;: row-level security, hidden measures, hidden cubes.&lt;/li&gt;
&lt;li&gt;Every request through the gateway is a line in its access log, with the user and the sign-in method.&lt;/li&gt;
&lt;li&gt;Pages on other sites can't call the API from a browser unless you list them in &lt;code&gt;auth/identity.yml&lt;/code&gt;. A token in a web page can be read by anyone who opens it, so call eMondrian from your server where you can.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run the &lt;code&gt;curl&lt;/code&gt; request above against the demo, or open &lt;code&gt;https://demo.emondrian.com/api/v1/catalogs&lt;/code&gt; in a browser.&lt;/li&gt;
&lt;li&gt;On your own server: update to Community &lt;code&gt;2026.11.20.2&lt;/code&gt; or later. The API is on at &lt;code&gt;https://&amp;lt;your server&amp;gt;/api/v1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Create a personal token at &lt;code&gt;/account/tokens&lt;/code&gt;, or have an administrator issue one for a program's own user, and call the API with it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Read more: &lt;a href="https://docs.emondrian.com/clients/rest" rel="noopener noreferrer"&gt;REST API (JSON)&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;AI agents (MCP)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://docs.emondrian.com/articles/emondrian-now-speaks-json" rel="noopener noreferrer"&gt;docs.emondrian.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>python</category>
      <category>dataengineering</category>
      <category>security</category>
    </item>
    <item>
      <title>Ad-hoc dashboards: ask an agent, send a link</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Fri, 20 Nov 2026 09:26:07 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/ad-hoc-dashboards-ask-an-agent-send-a-link-4694</link>
      <guid>https://dev.to/sergeisemenkov/ad-hoc-dashboards-ask-an-agent-send-a-link-4694</guid>
      <description>&lt;p&gt;A question comes in at ten to three: &lt;em&gt;"How did sales go this year, by state and by product family? Can you send something before the call?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It's not a BI project. It's an ad-hoc dashboard: needed now, for one person or one meeting, maybe thrown away next week. With eMondrian an AI agent builds it on your semantic model in under a minute, and you send a link.&lt;/p&gt;

&lt;p&gt;The link is protected: it shows each person only the data their role allows.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;p&gt;An eMondrian dashboard is a web page on your eMondrian server: filters shared by all widgets, KPIs, pivot tables you can expand, and bar, line and pie charts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live data.&lt;/strong&gt; A dashboard stores queries, not numbers. Each time someone opens it, every widget asks the cube again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your definitions.&lt;/strong&gt; The agent uses the measures of your model, such as &lt;em&gt;Store Sales&lt;/em&gt; and &lt;em&gt;Unit Sales&lt;/em&gt;, the same ones Excel and Power BI use. No new SQL, no second version of revenue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rights per dashboard.&lt;/strong&gt; A new dashboard is open only to the person who created it and to the dashboard administrators. They decide who else may view or edit it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;See one on the public demo: &lt;a href="https://demo.emondrian.com/dashboard/d/gx4nr3jwep" rel="noopener noreferrer"&gt;US flights at a glance&lt;/a&gt;, built by an AI agent on 182 million US flights. Pick a year or an airline, and every widget asks the cube again. The demo has no sign-in, so it shows the dashboard itself, not the sharing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build it
&lt;/h2&gt;

&lt;p&gt;Connect your agent (Claude Code, Claude Desktop or another MCP client) to eMondrian over &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;MCP&lt;/a&gt; and ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Read the dashboard authoring guide, then build a dashboard **Sales 1997&lt;/em&gt;* on FoodMart / Sales: a Year filter, KPIs for Store Sales and Unit Sales, a line chart by month, a bar chart by state, and a pivot by product family. Test every query first, then create it and give me the link."*&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent checks every query before it saves the dashboard and returns the link.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3htvnqspsa8pa1ph8x1x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3htvnqspsa8pa1ph8x1x.png" alt="The agent's answer: the dashboard Sales 1997 is created, with its link and what is on it" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To change it, ask the same way: &lt;em&gt;"Add a bar chart of the top 10 products."&lt;/em&gt; Each change is a new revision; earlier ones stay under &lt;strong&gt;History&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Send the link: three ways
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. To a colleague: just the link
&lt;/h3&gt;

&lt;p&gt;Your colleague already has an account: from your Active Directory or LDAP, or a user in eMondrian's Keycloak. Give the right and send the link:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Give the group /Sales/Managers the right to view Sales 1997."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent can give the right to one user, to a group, or to everyone signed in. You can do the same in the dashboard menu: &lt;strong&gt;Share…&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Your colleague opens the link, signs in as usual, and sees the dashboard. The numbers follow the colleague's own roles: a manager who may see only the West region sees only the West region on the same dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. To a client: an account, and a link
&lt;/h3&gt;

&lt;p&gt;The client has no account yet. In one request the agent creates the client's role, the account and the access:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Our client Acme should see the dashboard Sales 1997. Acme may see only Oregon's sales, with totals for Oregon only, and must not see our costs or margins. Create an account anna.smith for Anna Smith (&lt;a href="mailto:anna.smith@acme.example"&gt;anna.smith@acme.example&lt;/a&gt;) from Acme, give her access to the dashboard, and send her an email to set her own password. Then write me a short note to Anna with the dashboard link."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent turns this into a role for Acme in your semantic model, a group and a user. The role does two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Row-level security (RLS)&lt;/strong&gt; limits the rows: Anna sees Oregon only, and the totals add up to Oregon alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Object-level security (OLS)&lt;/strong&gt; limits the model: Store Cost doesn't exist for Anna. Calculated measures built on it, such as Profit, are hidden too, so the margin can't be worked out from what remains.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5q13dot9gxxes8w90vt2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5q13dot9gxxes8w90vt2.png" alt="The email: a link to choose a password, valid for one day" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fakswlbhcjj11m7ky6o8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fakswlbhcjj11m7ky6o8y.png" alt="The page where Anna chooses her password" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anna gets an email and chooses her own password. Nobody else learns it: not you, not the agent. The email link works for 24 hours; if she misses it, ask the agent to send it again. Then you send her the note with the dashboard link; she signs in and sees the dashboard.&lt;/p&gt;

&lt;p&gt;Two things to set once:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mail.&lt;/strong&gt; The email goes out through your mail server: an &lt;code&gt;smtp&lt;/code&gt; section in &lt;code&gt;auth/identity.yml&lt;/code&gt;. See &lt;a href="https://docs.emondrian.com/ops/security#e-mail-and-first-passwords" rel="noopener noreferrer"&gt;E-mail and first passwords&lt;/a&gt;. Without mail, use a link instead: see the third way below.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every schema closed by default.&lt;/strong&gt; Give every schema a restrictive &lt;code&gt;defaultRole&lt;/code&gt;, so that a new user sees nothing until given a role. See &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On our test server the agent built the dashboard in 29 seconds, and set up the client, role, account and email included, in under two minutes. Before finishing, it checked the numbers as Anna would see them. Anna saw only Oregon, 67,659 units, and no cost or margin measures. An administrator opening the same dashboard sees every state: 266,773 units. Same dashboard, same link: the role decides.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1vff0uvh4b281nypc1vp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1vff0uvh4b281nypc1vp.png" alt="Sales 1997 as the administrator sees it: Washington, California and Oregon, 266,773 units" width="800" height="829"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2lkwosn9vkq1hmgv2a5f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2lkwosn9vkq1hmgv2a5f.png" alt="The same dashboard as Anna sees it: Oregon only, 67,659 units" width="800" height="829"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The simplest: a link without a password
&lt;/h3&gt;

&lt;p&gt;No password, no letter with credentials. The link itself signs the client in. The agent prepares everything, and you issue the link with one click:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Our client Acme should see the dashboard Sales 1997, only Oregon's sales and none of our costs or margins. Create a user acme-oregon for Acme's links, with read rights only, give it access to this dashboard only, and give me the page where I issue its link."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent creates the role, the group and the user, and answers with a page on your server: &lt;code&gt;/account/tokens?user=acme-oregon&amp;amp;dashboard=&amp;lt;id&amp;gt;&lt;/code&gt;. You open it, change &lt;strong&gt;Valid for (days)&lt;/strong&gt; from 90 to 14 and press &lt;strong&gt;Issue&lt;/strong&gt;. The page shows the dashboard link once, ready to copy.&lt;/p&gt;

&lt;p&gt;The agent never sees the link. Your agent can read web pages and mail; a link it never had can't leak from it.&lt;/p&gt;

&lt;p&gt;You send the link. The client opens it and sees the dashboard with the data their role allows, without signing in.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The link belongs to a user.&lt;/strong&gt; It is the dashboard's address with that user's personal token. It opens the dashboards that user may view, with that user's role: Acme sees only Oregon, and no costs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One user per purpose, read only.&lt;/strong&gt; The token in the link is the user's key, so a user whose token goes into a link may only read. If Acme also gets a portal or a script, give it a user of its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The token leaves the address.&lt;/strong&gt; On the first open the link becomes a session in the browser, and the address bar no longer shows the token.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It ends.&lt;/strong&gt; A token works for 90 days unless you set fewer, as here. A user has one token: issuing a new one revokes the old link, and the page warns you first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take it back in seconds.&lt;/strong&gt; &lt;em&gt;"Revoke acme-oregon's token."&lt;/em&gt; A browser tab that is still open loses access within about 30 seconds. Disabling the user ends it too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every use is logged.&lt;/strong&gt; Each request made with the link is a line in the gateway's access log with the user's name; the token itself is masked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A link works like a password: whoever has it sees what the client's user sees, until it ends or you revoke it. Send it only to the person it is for, and keep it short-lived. See &lt;a href="https://docs.emondrian.com/ops/dashboard-access#open-a-dashboard-with-a-link" rel="noopener noreferrer"&gt;Open a dashboard with a link&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Take it back
&lt;/h2&gt;

&lt;p&gt;The dashboard was for one call. When it's over:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Remove anna.smith's right on Sales 1997."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffifyp2iwcn44iqwx5zs8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffifyp2iwcn44iqwx5zs8.png" alt="After the right is removed: Dashboard not found" width="799" height="571"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The dashboard now opens for Anna as "not found", even in a browser tab she still has open. To close the account too, disable the user afterwards: an open sign-in ends within about 5 minutes.&lt;/p&gt;

&lt;p&gt;Or delete the dashboard: it was ad hoc.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;eMondrian Community 2026.11.20.2 or later, with authentication on, over HTTPS. See &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A key that includes the DASHBOARD module. Evaluation keys include it.&lt;/li&gt;
&lt;li&gt;An AI agent connected over MCP. To create users and groups, the agent signs in as a member of &lt;code&gt;/emondrian-admins&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read more: &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;Build a dashboard with an agent&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/dashboard-access" rel="noopener noreferrer"&gt;Dashboard access&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/dashboard-access#open-a-dashboard-with-a-link" rel="noopener noreferrer"&gt;Open a dashboard with a link&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://docs.emondrian.com/articles/ad-hoc-dashboards" rel="noopener noreferrer"&gt;docs.emondrian.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dashboards</category>
      <category>mcp</category>
      <category>security</category>
      <category>html</category>
    </item>
    <item>
      <title>One semantic model, four tools: the same numbers and the same permissions</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Wed, 18 Nov 2026 07:45:16 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/one-semantic-model-four-tools-the-same-numbers-and-the-same-permissions-o5k</link>
      <guid>https://dev.to/sergeisemenkov/one-semantic-model-four-tools-the-same-numbers-and-the-same-permissions-o5k</guid>
      <description>&lt;p&gt;&lt;em&gt;Applies to eMondrian Community release 2026.11.16.1 and later.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Different people may see different parts of the same data. A regional manager may see their region only; finance may see costs and margins, sales may not. Without access rules in the model, there are two options: a separate copy of the report or model for each audience, or everyone sees everything.&lt;/p&gt;

&lt;p&gt;Row-level and object-level security give a third option: one model and one report, and each user sees only what they are allowed to see.&lt;/p&gt;

&lt;p&gt;In eMondrian the rules live in one place: the semantic model. Excel, Power BI, eMondrian Dashboard and AI agents over MCP all query the same model, and the model decides what each user sees.&lt;/p&gt;

&lt;h2&gt;
  
  
  Row-level and object-level security
&lt;/h2&gt;

&lt;p&gt;A semantic model answers two questions about every user: which data may they see, and which parts of the model may they see.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Row-level security (RLS)&lt;/strong&gt; limits the data. Two users open the same report and see different rows: a regional manager sees their region, a store manager sees their store. The report, the measures and the dimensions are the same for both; the rows and the totals are different.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Object-level security (OLS)&lt;/strong&gt; limits the model itself. A measure, a hierarchy or a whole dimension can be hidden from a user. For that user the object doesn't exist: it isn't in the field list, and a query that names it gets an error. Typical cases are costs and margins, salaries, or customer details.&lt;/p&gt;

&lt;p&gt;In eMondrian both are set with &lt;strong&gt;roles&lt;/strong&gt; in the schema. A role lists what its users may see: cubes, dimensions, hierarchies, members and measures. Users get roles through their groups. The server applies the role to every query, whichever tool sent it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The model
&lt;/h2&gt;

&lt;p&gt;The example uses the FoodMart sample, cube &lt;strong&gt;Sales&lt;/strong&gt;, year 1997. Three states have sales:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Store State&lt;/th&gt;
&lt;th&gt;Unit Sales&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CA&lt;/td&gt;
&lt;td&gt;74,748&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OR&lt;/td&gt;
&lt;td&gt;67,659&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WA&lt;/td&gt;
&lt;td&gt;124,366&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;266,773&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The schema has two roles and a default role:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sales-A&lt;/strong&gt; sees California only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sales-B&lt;/strong&gt; sees Washington only. Store Cost, the Weekly hierarchy of Time and the Promotions dimension are hidden from it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No Access&lt;/strong&gt; is the default role: a user with neither role sees no cubes.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;Role&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"No Access"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;SchemaGrant&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/Role&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;Role&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales-A"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;SchemaGrant&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;CubeGrant&lt;/span&gt; &lt;span class="na"&gt;cube&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"all"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;HierarchyGrant&lt;/span&gt; &lt;span class="na"&gt;hierarchy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Store]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"custom"&lt;/span&gt; &lt;span class="na"&gt;rollupPolicy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"partial"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;MemberGrant&lt;/span&gt; &lt;span class="na"&gt;member&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Store].[USA].[CA]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"all"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/HierarchyGrant&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/CubeGrant&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/SchemaGrant&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;RoleMember&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/Sales-A"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/Role&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;Role&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales-B"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;SchemaGrant&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;CubeGrant&lt;/span&gt; &lt;span class="na"&gt;cube&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"all"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;HierarchyGrant&lt;/span&gt; &lt;span class="na"&gt;hierarchy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Store]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"custom"&lt;/span&gt; &lt;span class="na"&gt;rollupPolicy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"partial"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;MemberGrant&lt;/span&gt; &lt;span class="na"&gt;member&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Store].[USA].[WA]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"all"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/HierarchyGrant&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;HierarchyGrant&lt;/span&gt; &lt;span class="na"&gt;hierarchy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Measures]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"custom"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;MemberGrant&lt;/span&gt; &lt;span class="na"&gt;member&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Measures].[Store Cost]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/HierarchyGrant&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;HierarchyGrant&lt;/span&gt; &lt;span class="na"&gt;hierarchy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Time.Weekly]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;DimensionGrant&lt;/span&gt; &lt;span class="na"&gt;dimension&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"[Promotions]"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/CubeGrant&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/SchemaGrant&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;RoleMember&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/Sales-B"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/Role&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;RoleMember&lt;/code&gt; names a group by its full path. With authentication on, eMondrian takes the user's groups at every request and applies the matching roles. The schema sets &lt;code&gt;defaultRole="No Access"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Three users:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;User&lt;/th&gt;
&lt;th&gt;Group&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;user-a&lt;/td&gt;
&lt;td&gt;/Sales-A&lt;/td&gt;
&lt;td&gt;Sales-A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;user-b&lt;/td&gt;
&lt;td&gt;/Sales-B&lt;/td&gt;
&lt;td&gt;Sales-B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;user-c&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;No Access&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Four tools, three users
&lt;/h2&gt;

&lt;p&gt;Each user asked the same question in each tool: Unit Sales by Store State, 1997.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;user-a&lt;/th&gt;
&lt;th&gt;user-b&lt;/th&gt;
&lt;th&gt;user-c&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Excel (PivotTable)&lt;/td&gt;
&lt;td&gt;CA 74,748&lt;/td&gt;
&lt;td&gt;WA 124,366&lt;/td&gt;
&lt;td&gt;Cube not found&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Power BI (live connection)&lt;/td&gt;
&lt;td&gt;CA 74,748&lt;/td&gt;
&lt;td&gt;WA 124,366&lt;/td&gt;
&lt;td&gt;Cube not found&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;eMondrian Dashboard&lt;/td&gt;
&lt;td&gt;CA 74,748&lt;/td&gt;
&lt;td&gt;WA 124,366&lt;/td&gt;
&lt;td&gt;Dashboard not found&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI agent over MCP&lt;/td&gt;
&lt;td&gt;CA 74,748&lt;/td&gt;
&lt;td&gt;WA 124,366&lt;/td&gt;
&lt;td&gt;No cubes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The numbers match in every tool, because every tool asks the same model. Excel sends MDX, Power BI sends DAX, the dashboard and the agent send queries through the same server. The role is applied inside the server, before any query reaches the database.&lt;/p&gt;

&lt;p&gt;The dashboard was built by the administrator and shared with the groups /Sales-A and /Sales-B with &lt;strong&gt;Can view&lt;/strong&gt;. Each viewer sees the same dashboard with their own data: the visuals read their data with the viewer's roles. user-c has no right on the dashboard, so it opens as not found. See &lt;a href="https://docs.emondrian.com/ops/dashboard-access" rel="noopener noreferrer"&gt;Dashboard access&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rows: each user sees their own states
&lt;/h2&gt;

&lt;p&gt;The role lists the members a user may see. Everything else is filtered out in every query: on rows, in filters and in totals.&lt;/p&gt;

&lt;p&gt;The totals depend on &lt;code&gt;rollupPolicy&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;rollupPolicy&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Total for user-a&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;partial&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;74,748, the sum of the visible states&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;full&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;266,773, the total of all states&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;With &lt;code&gt;full&lt;/code&gt;, the total row shows the company's full figure to a user who sees one state. For row-level security, use &lt;code&gt;partial&lt;/code&gt;: the total is the sum of what the user may see, in all four tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Objects: measures, hierarchies and dimensions
&lt;/h2&gt;

&lt;p&gt;Object-level security hides parts of the model itself. For user-b, three objects are hidden.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A measure.&lt;/strong&gt; Store Cost isn't in the field list of Excel or Power BI, isn't returned by the agent's &lt;code&gt;describe_cube&lt;/code&gt;, and isn't offered in the dashboard. A query that names it gets an error, in MDX and in DAX:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MDX object '[Measures].[Store Cost]' not found
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Calculated measures built on a hidden measure are hidden too. Profit is Store Sales minus Store Cost, so user-b doesn't see Profit or Profit Growth either. The margin can't be worked out from what remains.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A hierarchy.&lt;/strong&gt; The Time dimension has two hierarchies: Time (Year, Quarter, Month) and Weekly (Year, Week, Day). user-b sees Time; Weekly is hidden. It isn't in the field list, in &lt;code&gt;describe_cube&lt;/code&gt; or in the dashboard, and a query that names it gets an error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A dimension.&lt;/strong&gt; The whole Promotions dimension, with all its hierarchies, is hidden from user-b.&lt;/p&gt;

&lt;p&gt;For the user, a hidden object doesn't exist: there is nothing to click and nothing to ask about.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent acts as the user
&lt;/h2&gt;

&lt;p&gt;An AI agent connected over MCP signs in as a user and gets that user's roles. When user-b asks the agent for store costs, the agent's tools don't know the measure: the model it sees has no Store Cost.&lt;/p&gt;

&lt;p&gt;Every MCP call is written to &lt;code&gt;logs/mcp-audit.log&lt;/code&gt; with the name of the user.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One model, one set of rules: roles in the schema.&lt;/li&gt;
&lt;li&gt;Excel, Power BI, eMondrian Dashboard and AI agents get the same numbers for the same user.&lt;/li&gt;
&lt;li&gt;Rows: members per role, with &lt;code&gt;rollupPolicy="partial"&lt;/code&gt; for honest totals.&lt;/li&gt;
&lt;li&gt;Objects: measures, calculated measures built on them, hierarchies and dimensions.&lt;/li&gt;
&lt;li&gt;Groups come from Keycloak, Active Directory or LDAP; see &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt; and &lt;a href="https://docs.emondrian.com/modeling/schema#role" rel="noopener noreferrer"&gt;Roles in the schema&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;eMondrian:&lt;/strong&gt; &lt;a href="https://emondrian.com/demo?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=rls-ols" rel="noopener noreferrer"&gt;Demo&lt;/a&gt; · &lt;a href="https://github.com/eMondrian/emondrian-community" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://docs.emondrian.com" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More: &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/modeling/schema#role" rel="noopener noreferrer"&gt;Roles in the schema&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/ops/dashboard-access" rel="noopener noreferrer"&gt;Dashboard access&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>powerbi</category>
      <category>excel</category>
      <category>mcp</category>
    </item>
    <item>
      <title>eMondrian Community now has authentication: Keycloak sign-in, rights per group, and AI agents that act as the user</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Sun, 15 Nov 2026 20:21:44 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/emondrian-community-now-has-authentication-keycloak-sign-in-rights-per-group-and-ai-agents-that-1kp0</link>
      <guid>https://dev.to/sergeisemenkov/emondrian-community-now-has-authentication-keycloak-sign-in-rights-per-group-and-ai-agents-that-1kp0</guid>
      <description>&lt;p&gt;&lt;em&gt;As of 16 November 2026. Applies to eMondrian Community release 2026.11.16 and later: server 10.0.92, modules 0.0.0.109. Authentication arrived in release 2026.11.15; since 2026.11.16 the MCP module is free.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;eMondrian Community has authentication.&lt;/strong&gt; Since release 2026.11.15, every eMondrian Community installation runs behind an authentication gateway with Keycloak. Users sign in with an account kept in Keycloak, in Active Directory or in another LDAP directory. Sign-in through an external identity provider over OIDC or SAML, such as Microsoft Entra ID, Google, Okta or ADFS, can be added to the login page. Rights are set per group. An AI agent connected over MCP acts as the user who signed in and sees only the data that user may see.&lt;/p&gt;

&lt;p&gt;Authentication is free and open source, part of eMondrian Community. It is switched off after setup and is switched on with one command.&lt;/p&gt;

&lt;h2&gt;
  
  
  What eMondrian Community 2026.11.15 includes
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Capability&lt;/th&gt;
&lt;th&gt;In eMondrian Community 2026.11.15&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Authentication gateway with Keycloak in front of every service&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Users kept in Keycloak&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Users of Active Directory or another LDAP directory&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server rights per group: edit schemas, read logs, manage licenses&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data access per user or group through roles in the schema&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP agents act as the signed-in user&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OAuth login for MCP agents&lt;/td&gt;
&lt;td&gt;Yes; needs HTTPS for clients on other machines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Personal access tokens for Excel, Power BI and scripts&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP traffic log that names the user&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTPS&lt;/td&gt;
&lt;td&gt;Yes, with a certificate you provide&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of this needs a license key: the authentication gateway, Keycloak, server rights, schema roles and the MCP module are free.&lt;/p&gt;

&lt;h2&gt;
  
  
  How sign-in works
&lt;/h2&gt;

&lt;p&gt;The authentication gateway is the only published port of an eMondrian Community installation. Every request from a browser, Excel, Power BI, a script or an AI agent passes through it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The client signs in. A browser uses the Keycloak login page. Excel, Power BI and scripts send a user name and password, or a personal access token as the password. An AI agent signs in with OAuth, with a user name and password, or with a personal access token.&lt;/li&gt;
&lt;li&gt;Keycloak checks the user. The user is kept in Keycloak, or Keycloak checks the password in Active Directory or LDAP.&lt;/li&gt;
&lt;li&gt;The gateway passes the user name and the user's groups to the eMondrian server. The eMondrian server never receives the password.&lt;/li&gt;
&lt;li&gt;The eMondrian server decides what the user may see and do: server rights per group, and roles in the schema for data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The eMondrian server accepts a user name and groups only from its own gateway. The gateway sends a secret that is generated for each installation, and the eMondrian server refuses a request that names a user without that secret.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an AI agent sees
&lt;/h2&gt;

&lt;p&gt;With authentication on, every MCP tool call runs as the user who signed in.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data.&lt;/strong&gt; The roles in the schema decide which cubes and members the agent sees. The agent sees the same data as the same user sees in Excel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changes.&lt;/strong&gt; The server rights of the user's groups decide what the agent may change. An agent of a user without the right to write schemas cannot save a schema. An agent of a user without the right to read logs cannot read logs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Formulas.&lt;/strong&gt; The &lt;code&gt;describe_cube&lt;/code&gt; tool shows the formulas of calculated measures only to users who may read the schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Log.&lt;/strong&gt; Every MCP call is written to &lt;code&gt;logs/mcp-audit.log&lt;/code&gt; with the user's name.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The agent gets the same access as its user, not less. Query results go to the agent and to the agent's model provider.&lt;/p&gt;

&lt;p&gt;The OAuth login of eMondrian was tested with Claude Code over HTTPS on both MCP transports: streamable HTTP at &lt;code&gt;/emondrian/mcp&lt;/code&gt; and HTTP + SSE at &lt;code&gt;/emondrian/mcp/sse&lt;/code&gt;. In that test, a user restricted by a schema role saw only the data of one US state, and a user without the right to read logs was refused by the &lt;code&gt;read_logs&lt;/code&gt; tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Groups and rights
&lt;/h2&gt;

&lt;p&gt;eMondrian names groups by their full path, for example &lt;code&gt;/emondrian-admins&lt;/code&gt; or &lt;code&gt;/Sales/EMEA&lt;/code&gt;. A plain name such as &lt;code&gt;emondrian-admins&lt;/code&gt; matches no group. Membership is not inherited: a right for &lt;code&gt;/Sales&lt;/code&gt; does not reach the members of &lt;code&gt;/Sales/EMEA&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;eMondrian Community setup creates three groups:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Group&lt;/th&gt;
&lt;th&gt;May&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/emondrian-admins&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Everything: edit schemas and catalogs, read logs, install license keys, administer users in Keycloak&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/emondrian-editors&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Edit schemas, read the catalog list&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/emondrian-viewers&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Read schemas and the catalog list&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Querying data needs no server right. Which data a user sees is set by roles in the schema:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;Role&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales EMEA"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;SchemaGrant&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;CubeGrant&lt;/span&gt; &lt;span class="na"&gt;cube&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Sales"&lt;/span&gt; &lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"all"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/SchemaGrant&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;RoleMember&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/Sales/EMEA"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/Role&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A signed-in user who matches no role gets the schema's &lt;code&gt;defaultRole&lt;/code&gt;. &lt;strong&gt;A schema without a &lt;code&gt;defaultRole&lt;/code&gt; gives full access to every signed-in user.&lt;/strong&gt; Give every schema a restrictive &lt;code&gt;defaultRole&lt;/code&gt; before you rely on roles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Switch authentication on
&lt;/h2&gt;

&lt;p&gt;After setup, authentication is off: everyone who can reach the server is the user &lt;code&gt;guest&lt;/code&gt; with all rights. This open mode is for a trusted network only.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./auth/scripts/authentication.sh on       &lt;span class="c"&gt;# Linux&lt;/span&gt;
.\auth\scripts\authentication.ps1 on      &lt;span class="c"&gt;# Windows&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then sign in as &lt;code&gt;admin&lt;/code&gt; with the initial password from the documentation and choose a new one. Before other people connect, set &lt;code&gt;PUBLIC_URL&lt;/code&gt; in &lt;code&gt;.env&lt;/code&gt; and turn on HTTPS. The steps are on the &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions and answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does eMondrian have authentication?&lt;/strong&gt;&lt;br&gt;
Yes. eMondrian Community has authentication since release 2026.11.15, with sign-in through Keycloak, Active Directory or LDAP.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the eMondrian MCP server have authentication?&lt;/strong&gt;&lt;br&gt;
Yes. Since eMondrian Community 2026.11.15, the eMondrian MCP server accepts OAuth, a user name and password, or a personal access token, once authentication is switched on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do AI agents see all data in eMondrian?&lt;/strong&gt;&lt;br&gt;
No, not with authentication on. An AI agent connected to eMondrian sees only the data its signed-in user may see under the roles in the schema.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is authentication only in eMondrian Enterprise?&lt;/strong&gt;&lt;br&gt;
No. Authentication, rights per group and per-user access for AI agents are part of eMondrian Community. None of it needs a license key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is authentication on by default in eMondrian Community?&lt;/strong&gt;&lt;br&gt;
No. Authentication is off after setup and is switched on with &lt;code&gt;./auth/scripts/authentication.sh on&lt;/code&gt;. With authentication off, everyone who can reach the server has all rights.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;eMondrian Community runs with Docker in a few minutes. Install it, switch authentication on, and connect Excel, Power BI or an AI agent as a user from your own directory.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;eMondrian:&lt;/strong&gt; &lt;a href="https://emondrian.com/demo?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=auth" rel="noopener noreferrer"&gt;Demo&lt;/a&gt; · &lt;a href="https://github.com/eMondrian/emondrian-community" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://docs.emondrian.com" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More: &lt;a href="https://docs.emondrian.com/ops/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;AI agents (MCP)&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/reference/releases" rel="noopener noreferrer"&gt;Release notes&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>mcp</category>
      <category>ai</category>
      <category>powerbi</category>
    </item>
    <item>
      <title>Your semantic model as an Apache Ossie file, written by an agent and checked by the server</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Thu, 12 Nov 2026 06:02:20 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/your-semantic-model-as-an-apache-ossie-file-written-by-an-agent-and-checked-by-the-server-2elj</link>
      <guid>https://dev.to/sergeisemenkov/your-semantic-model-as-an-apache-ossie-file-written-by-an-agent-and-checked-by-the-server-2elj</guid>
      <description>&lt;p&gt;&lt;em&gt;As of November 2026: eMondrian Community 2026.11.10.1, modules &lt;code&gt;0.0.0.104&lt;/code&gt;, Apache Ossie spec &lt;code&gt;0.3.0.dev0&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A semantic model is where your metrics live: what "revenue" means, how orders join customers, which total is a ratio and not a sum. The first question a team asks before putting one into a new tool is: &lt;strong&gt;how do we get it out again?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/apache/ossie" rel="noopener noreferrer"&gt;Apache Ossie&lt;/a&gt; (incubating, formerly Open Semantic Interchange) is an open answer to that: one YAML or JSON file with datasets, fields, relationships and metrics, which Snowflake, Databricks, dbt and other tools have converters for. eMondrian can now write its cubes in that format and build cubes from it.&lt;/p&gt;

&lt;p&gt;We didn't write a converter. An AI agent does the translation, and the server checks the result, metric by metric, against the cube.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why an agent, and why a check
&lt;/h2&gt;

&lt;p&gt;Translating a model isn't mechanical. A caption column, a SQL view, a ratio measure, a time hierarchy: each needs a decision about what Ossie can express and what it can't. An agent makes those decisions well, and when the spec changes (it's a draft), only its guide changes.&lt;/p&gt;

&lt;p&gt;But an agent can also be quietly wrong. The classic mistake is a ratio: &lt;em&gt;sum of the ratios&lt;/em&gt; instead of &lt;em&gt;ratio of the sums&lt;/em&gt;. The file looks fine and every number built on it is off.&lt;/p&gt;

&lt;p&gt;So the server checks, with a tool the agent can't talk its way around. &lt;code&gt;validate_ossie&lt;/code&gt; takes the document and the catalog and checks four things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Schema&lt;/strong&gt; — the file against Ossie's JSON Schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Names&lt;/strong&gt; — keys, relationships and metrics name fields that exist; no metric names another.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source&lt;/strong&gt; — every dataset, field and metric against the database, without reading a row.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parity&lt;/strong&gt; — each metric's total, in SQL the server builds from the document, against the matching measure's total from the cube.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The server never runs SQL the agent wrote. A metric either matches, or the answer says &lt;code&gt;MISMATCH&lt;/code&gt; with both totals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Export: one prompt
&lt;/h2&gt;

&lt;p&gt;With the agent connected to eMondrian over MCP:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Read the Ossie guide, then write the cube of catalog OnTime as an Apache Ossie model. Validate it with validate_ossie and fix every error and mismatch. Give me the YAML."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent reads &lt;code&gt;get_ossie_guide&lt;/code&gt;, writes one document per cube — tables and views become datasets, attributes become fields, keys become relationships, measures become metrics — and runs the check. On the OnTime cube (US flights in ClickHouse) all &lt;strong&gt;13 of 13&lt;/strong&gt; metrics matched; on the FoodMart Sales cube, &lt;strong&gt;8 of 8&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can try the export side on the public demo without installing anything: connect your agent to &lt;code&gt;https://demo.emondrian.com/emondrian/mcp&lt;/code&gt; (no sign-in) and use the prompt above. There, the OnTime model — 182 million US flights — validates with all 13 metrics matching, Flights 182,315,946 on both sides, in about two and a half seconds. The demo is read-only, so building a new cube (the import below) needs your own install.&lt;/p&gt;

&lt;p&gt;A short excerpt of what comes out:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0.3.0.dev0&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;shop_sales&lt;/span&gt;
&lt;span class="na"&gt;datasets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sales&lt;/span&gt;
    &lt;span class="na"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;FACT&lt;/span&gt;
    &lt;span class="na"&gt;fields&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s"&gt;store_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;expression:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;sql:&lt;/span&gt; &lt;span class="s"&gt;STORE_ID&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;expression:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;sql:&lt;/span&gt; &lt;span class="s"&gt;AMOUNT&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;datatype:&lt;/span&gt; &lt;span class="s"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="na"&gt;metrics&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;amount_total&lt;/span&gt;
        &lt;span class="na"&gt;expression&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;sql:&lt;/span&gt; &lt;span class="s"&gt;SUM(amount)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="na"&gt;custom_extensions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;vendor_name:&lt;/span&gt; &lt;span class="s"&gt;emondrian&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;data:&lt;/span&gt; &lt;span class="s1"&gt;'{"cube": "Sales", "measure": "Amount"}'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;store&lt;/span&gt;
    &lt;span class="na"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;STORE&lt;/span&gt;
    &lt;span class="na"&gt;primary_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;store_id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;fields&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s"&gt;store_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;expression:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;sql:&lt;/span&gt; &lt;span class="s"&gt;STORE_ID&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;expression:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;sql:&lt;/span&gt; &lt;span class="s"&gt;CITY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;relationships&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s"&gt;sales_store&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;from:&lt;/span&gt; &lt;span class="s"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;to:&lt;/span&gt; &lt;span class="s"&gt;store&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;from_columns:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;store_id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;to_columns:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;store_id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the check's last line: &lt;code&gt;sales.amount_total -&amp;gt; [Sales].[Measures].[Amount]: match, ossie 100.00, emondrian 100.0&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Import: from another tool's model to Power BI and Excel
&lt;/h2&gt;

&lt;p&gt;The other direction is the interesting one. A model written by another tool's converter can become an eMondrian cube, and then Power BI (live, over DAX), Excel PivotTables and AI agents all read the same definitions.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Read the Ossie guide, then build a cube in catalog Shop from the Ossie model share:models/shop.yaml. Rebuild sensible hierarchies, validate it with validate_ossie, and save the schema when every metric matches."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent turns datasets into views, the "to" side of each relationship into a dimension, metrics into measures, and proposes hierarchies (Ossie has none). We tried it on a model from the Cube converter: two cubes built, &lt;strong&gt;6 of 6&lt;/strong&gt; metrics matched.&lt;/p&gt;

&lt;p&gt;One snag you'll hit today: every converter in &lt;code&gt;apache/ossie-converters&lt;/code&gt; still writes spec &lt;code&gt;0.2&lt;/code&gt;, and &lt;code&gt;0.3.0.dev0&lt;/code&gt; rejects it. The check says so, and the guide tells the agent how to bring the document up to date.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a model leaves out
&lt;/h2&gt;

&lt;p&gt;Ossie is deliberately small. It has &lt;strong&gt;no hierarchies, no roles and no row restrictions&lt;/strong&gt;. That has two consequences you should know before you hand a file on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An exported model has no access rules.&lt;/strong&gt; Whoever loads it into another tool gets the whole model. &lt;code&gt;validate_ossie&lt;/code&gt; ends every answer with that warning, and the agent is told to repeat it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Some measures don't travel.&lt;/strong&gt; Year-to-date, prior period, anything that depends on the current cell, and sums or ratios of distinct counts have no Ossie form. They're kept in an &lt;code&gt;emondrian&lt;/code&gt; extension, which other tools ignore, or left out with a warning.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Parity compares totals, not totals per dimension, and it only runs where agents may read the catalog's real data: on a catalog that shows agents only &lt;a href="https://docs.emondrian.com/clients/mcp" rel="noopener noreferrer"&gt;synthetic data&lt;/a&gt;, only the structure checks run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your own data:&lt;/strong&gt; &lt;code&gt;git clone https://github.com/eMondrian/emondrian-community&lt;/code&gt; and &lt;code&gt;./setup.sh&lt;/code&gt;, connect an agent to the MCP server and use the prompts above. The tools are part of the MCP module; the free 30-day evaluation key at &lt;a href="https://emondrian.com/license?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ossie" rel="noopener noreferrer"&gt;emondrian.com/license&lt;/a&gt; is enough, so you can always export your models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The details:&lt;/strong&gt; &lt;a href="https://docs.emondrian.com/modeling/ossie" rel="noopener noreferrer"&gt;Apache Ossie models&lt;/a&gt; in the docs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you exchange semantic models between tools today, or rebuild them by hand? Leave a comment.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;eMondrian:&lt;/strong&gt; &lt;a href="https://emondrian.com/demo?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ossie" rel="noopener noreferrer"&gt;Demo&lt;/a&gt; · &lt;a href="https://github.com/eMondrian/emondrian-community" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://docs.emondrian.com" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/apache/ossie" rel="noopener noreferrer"&gt;Apache Ossie on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ossie.apache.org/" rel="noopener noreferrer"&gt;Apache Ossie (incubating)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/apache/ossie-converters" rel="noopener noreferrer"&gt;Apache Ossie converters&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>semanticlayer</category>
      <category>opensource</category>
      <category>ai</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>DAX in eMondrian is out of beta: what works in Power BI, and how we test it</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Tue, 10 Nov 2026 08:33:37 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/dax-in-emondrian-is-out-of-beta-what-works-in-power-bi-and-what-doesnt-27m6</link>
      <guid>https://dev.to/sergeisemenkov/dax-in-emondrian-is-out-of-beta-what-works-in-power-bi-and-what-doesnt-27m6</guid>
      <description>&lt;p&gt;&lt;em&gt;As of November 2026: eMondrian Community 2026.11.09.2, modules &lt;code&gt;0.0.0.102&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Since Community 2026.11.07.1, the DAX module is no longer marked beta. That's the part of eMondrian that answers Power BI over a live connection: every visual sends a DAX query, and eMondrian evaluates it against the same model Excel and AI agents use.&lt;/p&gt;

&lt;p&gt;"Out of beta" here means one specific promise:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A standard Power BI report on a live connection works and shows the right numbers. Anything eMondrian doesn't support fails with a clear error. It never shows a wrong number.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This article covers what's in the promise and how we test it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a "standard report" covers
&lt;/h2&gt;

&lt;p&gt;These are the visuals and interactions Power BI generates DAX for, and that eMondrian answers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;tables and matrices, with subtotals and totals;&lt;/li&gt;
&lt;li&gt;column, bar, line and pie charts, with tooltips and tooltip pages;&lt;/li&gt;
&lt;li&gt;the classic card and the multi-row card;&lt;/li&gt;
&lt;li&gt;slicers on a column, including several selected values, and slicer lists that follow the other slicers, as in Analysis Services;&lt;/li&gt;
&lt;li&gt;page and visual filters, Top N, sorting by a measure;&lt;/li&gt;
&lt;li&gt;drill-down through a hierarchy (Year → Quarter → Month) and cross-highlighting;&lt;/li&gt;
&lt;li&gt;conditional formatting: gradients, rules and data bars;&lt;/li&gt;
&lt;li&gt;publishing to the Power BI Service through the standard on-premises gateway, with scheduled refresh of dashboard tiles.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Measures come from the eMondrian schema. A measure is defined once and gives the same number in Power BI (DAX), in an Excel PivotTable (MDX) and to an AI agent (MCP).&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed on the way out of beta
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A clear error instead of a quiet wrong answer.&lt;/strong&gt; A DAX form eMondrian can't express used to be dropped from the query, which can produce a plausible but wrong number. Before the label came off, every path that turns DAX into an engine query was audited for arguments that could be ignored this way. Each one was either fixed, with a regression test, or turned into an error that quotes the expression. That is the rule we hold every release to.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we tested
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Power BI Service, visual by visual.&lt;/strong&gt; 77 cases on OnTime, run in the browser over a live connection through the on-premises gateway, at the end of October 2026. Every failure on a visual Power BI offers over a live connection was fixed and retested.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Power BI Service, end to end.&lt;/strong&gt; A 12-step plan, last run on 7 November 2026 against Community 2026.11.07.2, with Power BI Desktop 2.159.883.0 and gateway 3000.338.2. Publishing, model refresh and scheduled tile refresh pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-filter consistency.&lt;/strong&gt; 421 queries in the exact shapes Power BI Desktop sends for cross-filtering, cross-highlighting and multi-select, for every member of every clickable field of a test dashboard. Each row must equal the card total under the same filter, and highlighted rows must add up to the card: 0 mismatches, last run on 10 November 2026 on modules &lt;code&gt;0.0.0.102&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DAX regression suite.&lt;/strong&gt; 94 tests built from the queries Power BI visuals send — tables, matrices with subtotals, cards, Top N, slicers, cross-highlighting, drill-down — on FoodMart, with a parent-child HR hierarchy, and OnTime on ClickHouse. On 10 November 2026, on modules &lt;code&gt;0.0.0.102&lt;/code&gt; against the public demo with the full OnTime data (182 million flights, 1987–2026): &lt;strong&gt;94 of 94 pass&lt;/strong&gt;. In matrices, every subtotal equals the sum of its rows, and a ratio's subtotal is the ratio of the sums, not the sum of the ratios. Separately, 289 queries captured from Power BI Desktop are replayed on every build and must give the same results as on the previous one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What these checks are compared with.&lt;/strong&gt; Visual values were checked against hand-written MDX on the same model, and aggregate tables against SQL. That catches errors in turning DAX into the engine's queries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The public demo&lt;/strong&gt; runs the same build: &lt;code&gt;https://demo.emondrian.com/xmla&lt;/code&gt;, databases &lt;code&gt;OnTime&lt;/code&gt; and &lt;code&gt;FoodMart&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Measures and hand-written DAX
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Measures live in the schema.&lt;/strong&gt; On a live connection Power BI works with eMondrian as with Analysis Services Multidimensional: measures, including year-to-date and prior-year, are defined once in the schema as calculated members, and every report, PivotTable and AI agent uses the same definition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hand-written DAX.&lt;/strong&gt; In DAX Studio or through MCP you can write DAX yourself. The supported functions and syntax are listed in &lt;a href="https://docs.emondrian.com/clients/dax" rel="noopener noreferrer"&gt;DAX support&lt;/a&gt;; a query with any other function returns an error that names it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No install:&lt;/strong&gt; in Power BI Desktop, &lt;strong&gt;Get data → Analysis Services&lt;/strong&gt;, server &lt;code&gt;https://demo.emondrian.com/xmla&lt;/code&gt;, database &lt;code&gt;OnTime&lt;/code&gt;, &lt;strong&gt;Connect live&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On your own data:&lt;/strong&gt; &lt;code&gt;git clone https://github.com/eMondrian/emondrian-community&lt;/code&gt; and &lt;code&gt;./setup.sh&lt;/code&gt;, then describe your cubes or ask an agent to draft them over MCP. The DAX module needs a key; a free 30-day evaluation key is at &lt;a href="https://emondrian.com/license?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=dax-ga" rel="noopener noreferrer"&gt;emondrian.com/license&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a visual in your report fails, copy its query from &lt;strong&gt;Performance analyzer → Copy query&lt;/strong&gt; and &lt;a href="https://github.com/eMondrian/emondrian-community/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;. We extend coverage from queries in real reports.&lt;/p&gt;

&lt;p&gt;Have you run Power BI live on something other than Analysis Services or a Power BI model? Which visual broke first? Leave a comment.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;eMondrian:&lt;/strong&gt; &lt;a href="https://emondrian.com/demo?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=dax-ga" rel="noopener noreferrer"&gt;Demo&lt;/a&gt; · &lt;a href="https://github.com/eMondrian/emondrian-community" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://docs.emondrian.com" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More: &lt;a href="https://docs.emondrian.com/clients/power-bi" rel="noopener noreferrer"&gt;Power BI&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/clients/dax" rel="noopener noreferrer"&gt;DAX support&lt;/a&gt; · &lt;a href="https://docs.emondrian.com/reference/releases" rel="noopener noreferrer"&gt;Release notes&lt;/a&gt;&lt;/p&gt;

</description>
      <category>powerbi</category>
      <category>dax</category>
      <category>semanticlayer</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>Power BI on Databricks Metric Views: a live connection, with the measures kept in Databricks</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Thu, 05 Nov 2026 10:52:07 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/power-bi-on-databricks-metric-views-a-live-connection-with-the-measures-kept-in-databricks-5cel</link>
      <guid>https://dev.to/sergeisemenkov/power-bi-on-databricks-metric-views-a-live-connection-with-the-measures-kept-in-databricks-5cel</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update, 11 November 2026:&lt;/strong&gt; Databricks now publishes metric views to Power BI itself, in &lt;strong&gt;Private Preview&lt;/strong&gt;. See Databricks' own publishing, compared for how it works and how it differs from the approach below.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;As of November 2026: eMondrian Community 2026.11.05.1 (server 10.0.74, modules 0.0.0.89). You need Power BI Desktop, a Databricks SQL warehouse with a metric view and, for the Power BI Service, a Windows machine for the on-premises data gateway.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Databricks Metric Views let you define a metric once, in Unity Catalog, and query it from SQL, notebooks, dashboards and Genie. Power BI is the tool most teams still report in, and right now it can't use those definitions properly. I connected the two through a semantic layer, live, and checked the totals that usually go wrong.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm the author of eMondrian, the open-source semantic layer used here.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; eMondrian connects Power BI to Databricks metric views live. Power BI Desktop and the Power BI Service connect to eMondrian as to Analysis Services and send DAX. eMondrian turns each query into flat &lt;code&gt;MEASURE()&lt;/code&gt; SQL that the Databricks SQL warehouse runs against the metric view. The measures stay defined once, in the metric view: no Import, no hand-written Native query and no copy of the formulas in DAX. Distinct counts and ratios show correct totals at every level, because Databricks computes each total from the view's own definition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why keep the metrics in Databricks
&lt;/h2&gt;

&lt;p&gt;A metric view is a YAML definition next to the data: the source table, joins, dimensions and measures such as &lt;code&gt;COUNT(DISTINCT customer_id)&lt;/code&gt; or &lt;code&gt;SUM(revenue) / SUM(orders)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Keeping metrics there has practical advantages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One definition for every consumer.&lt;/strong&gt; SQL users, notebooks, ML pipelines, AI/BI dashboards and Genie all read the same measure. Nobody re-types it in DAX.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changes in one place.&lt;/strong&gt; Rename a column or change a formula, and every consumer gets it. There are no copies in individual .pbix files to fix.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The grain is handled by the engine.&lt;/strong&gt; &lt;code&gt;MEASURE(unique_customers)&lt;/code&gt; grouped by month is computed per month, and grouped by year it's computed per year. A distinct count or a ratio is never added up from smaller pieces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unity Catalog is where the data team works already:&lt;/strong&gt; lineage, permissions and reviews of the definitions are in the same place as the tables.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What goes wrong with Power BI today
&lt;/h2&gt;

&lt;p&gt;Querying a metric view needs special SQL: each measure wrapped in &lt;code&gt;MEASURE()&lt;/code&gt;, an explicit &lt;code&gt;GROUP BY&lt;/code&gt;, no &lt;code&gt;SELECT *&lt;/code&gt;, no joins in the query. Power BI doesn't generate that.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;BI compatibility mode is gone.&lt;/strong&gt; It used to be an option in the Databricks connector: Databricks rewrote plain &lt;code&gt;SUM&lt;/code&gt; into the measure definitions, and even then &lt;code&gt;COUNT DISTINCT&lt;/code&gt; and &lt;code&gt;MEDIAN&lt;/code&gt; failed or gave wrong results. Databricks now notes that the option "is no longer available in the Power BI connector".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What's left is Native query or a wrapper view.&lt;/strong&gt; With Native query you hand-write &lt;code&gt;MEASURE()&lt;/code&gt; SQL for each table in DirectQuery. That doesn't scale beyond a few visuals. A standard view that wraps the metric view fixes the grain in advance, so Power BI adds its rows up like an import.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Import mode re-aggregates.&lt;/strong&gt; Load a metric view at month grain and let Power BI sum it, and the yearly total of a distinct count is wrong. People then rebuild the ratio in DAX, which is the duplication metric views were meant to remove.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Converting is copying.&lt;/strong&gt; Tools such as Tabular Editor's Semantic Bridge translate a metric view into a Tabular model. That works for many measures, but the definitions now live in two places again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Fabric idea "Enable native Power BI integration with Databricks Metric View" has more than 800 votes, and its comments are mostly about these points.&lt;/p&gt;

&lt;p&gt;Since November 2026 there is a further option, in Private Preview: Databricks publishes a metric view to Power BI as a semantic model. It's compared with the approach in this article below.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works: a live model in between
&lt;/h2&gt;

&lt;p&gt;eMondrian holds a model whose cube points at the metric view. To Power BI it looks like Analysis Services: Power BI connects &lt;strong&gt;live&lt;/strong&gt; and sends DAX. eMondrian turns each query into flat SQL for the SQL warehouse:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="sb"&gt;`order_year`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;MEASURE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`mv`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`unique_customers`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="sb"&gt;`catalog`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`schema`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`orders_mv`&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="sb"&gt;`mv`&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="sb"&gt;`order_status`&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Open'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Processing'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="sb"&gt;`order_year`&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No nesting, no joins, no subqueries, no GROUPING SETS: the rules of metric views are kept. The measure is computed by Databricks, from its own definition. eMondrian doesn't hold a copy of the formula.&lt;/p&gt;

&lt;p&gt;Excel PivotTables connect to the same model over the same address (MDX), and AI agents over MCP.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzq12j0ylw19gj4seotge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzq12j0ylw19gj4seotge.png" alt="How a query travels from the browser to the metric view and back: Power BI Service, the data gateway with its built-in Analysis Services connection, eMondrian, the Databricks SQL warehouse" width="799" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure types that fit metric views
&lt;/h2&gt;

&lt;p&gt;In an eMondrian schema each measure says how it may be rolled up. Two settings matter for metric views.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Additive measures&lt;/strong&gt; (sums, counts of rows). Declared with &lt;code&gt;aggregator="sum"&lt;/code&gt;. eMondrian may cache a result and add months into a year itself, which saves trips to the warehouse.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Non-additive measures&lt;/strong&gt; (distinct counts, ratios, averages, medians). Declared as non-additive (&lt;code&gt;aggregator="distinct-count"&lt;/code&gt;) and computed by the database (&lt;code&gt;aggregatorImplementation="MEASURE"&lt;/code&gt;). eMondrian never adds them up. Every level a visual shows, every subtotal and the grand total is asked from Databricks with its own &lt;code&gt;GROUP BY&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;Measure&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Unique Customers"&lt;/span&gt; &lt;span class="na"&gt;column&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"unique_customers"&lt;/span&gt;
         &lt;span class="na"&gt;aggregator&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"distinct-count"&lt;/span&gt; &lt;span class="na"&gt;aggregatorImplementation&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"MEASURE"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;Measure&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Order Count"&lt;/span&gt; &lt;span class="na"&gt;column&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"order_count"&lt;/span&gt;
         &lt;span class="na"&gt;aggregator&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"sum"&lt;/span&gt; &lt;span class="na"&gt;aggregatorImplementation&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"MEASURE"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which one to use depends only on the measure's expression in the metric view:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Expression in the metric view&lt;/th&gt;
&lt;th&gt;aggregator&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;a single &lt;code&gt;SUM(x)&lt;/code&gt;, &lt;code&gt;COUNT(x)&lt;/code&gt; or &lt;code&gt;COUNT_IF(cond)&lt;/code&gt;, with or without &lt;code&gt;FILTER (WHERE …)&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sum&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a single &lt;code&gt;MIN(x)&lt;/code&gt; / &lt;code&gt;MAX(x)&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;min&lt;/code&gt; / &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;COUNT(DISTINCT x)&lt;/code&gt;, a ratio such as &lt;code&gt;SUM(a) / SUM(b)&lt;/code&gt;, &lt;code&gt;SUM(a) * 2&lt;/code&gt;, &lt;code&gt;AVG&lt;/code&gt;, &lt;code&gt;MEDIAN&lt;/code&gt;, &lt;code&gt;PERCENTILE&lt;/code&gt;, &lt;code&gt;APPROX_*&lt;/code&gt;, window measures, references to other measures&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;distinct-count&lt;/code&gt; (never rolled up)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When in doubt, choose non-additive. A wrong &lt;code&gt;sum&lt;/code&gt; gives wrong totals without any error. A wrong non-additive setting only costs an extra query.&lt;/p&gt;

&lt;p&gt;The schema also needs the size of each level (how many members it has). Without it the engine would send &lt;code&gt;COUNT(DISTINCT …)&lt;/code&gt; to the view to find out. With sizes in place every statement stays a plain &lt;code&gt;SELECT … MEASURE() … GROUP BY&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Filters work the same way: with two order statuses selected, the total is the metric view's own figure for those two statuses, not the sum of two rows. An Excel PivotTable gets the same totals, including when you filter the pivot and Excel sends a subselect.&lt;/p&gt;

&lt;p&gt;The trade-off: a visual with several non-additive measures may need several SQL statements, and each one runs on the warehouse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Time intelligence lives in the model
&lt;/h2&gt;

&lt;p&gt;On a live connection to a multidimensional model, Power BI doesn't let you write report measures, so &lt;code&gt;TOTALYTD&lt;/code&gt; or &lt;code&gt;SAMEPERIODLASTYEAR&lt;/code&gt; aren't an option. Year-to-date, same period last year, previous year, year-over-year and a rolling three months are calculated measures in the eMondrian schema instead. The MCP tool &lt;code&gt;add_time_measures&lt;/code&gt; writes them for the measures you name; the cube authoring guide explains the templates.&lt;/p&gt;

&lt;p&gt;They work for non-additive measures too. Year-to-date unique customers for December is one query over months 1–12, and the result is the metric view's own figure for the year, not the sum of twelve months:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="no"&gt;MEASURE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`mv`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`unique_customers`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="sb"&gt;`catalog`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`schema`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="sb"&gt;`orders_mv`&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="sb"&gt;`mv`&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="sb"&gt;`order_year`&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1996&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="sb"&gt;`order_month`&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; …&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On a test setup that applies the metric view query rules, these measures matched hand-written &lt;code&gt;MEASURE()&lt;/code&gt; SQL in both the Excel and the Power BI query shapes, including a year picked in a Power BI slicer and a rolling three months across the new year. Every query was a single flat &lt;code&gt;MEASURE()&lt;/code&gt; statement. In Power BI Desktop, checked on eMondrian's FoodMart sample, a year chosen in a slicer keeps all twelve months, and the total row shows the year's figures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let an agent write the model
&lt;/h2&gt;

&lt;p&gt;You don't write this schema by hand. eMondrian's MCP server includes a cube authoring guide with a section on metric views: the rules above, the time hierarchy, the metric view SQL rules, and a complete example.&lt;/p&gt;

&lt;p&gt;The agent needs two things from Databricks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;the view's definition, &lt;code&gt;DESCRIBE TABLE EXTENDED catalog.schema.orders_mv AS JSON&lt;/code&gt;, which marks each field as a measure or a dimension and includes the YAML;&lt;/li&gt;
&lt;li&gt;the number of distinct values of each dimension field, a &lt;code&gt;GROUP BY&lt;/code&gt; without measures.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;From those it writes the schema, checks it and saves it.&lt;/p&gt;

&lt;p&gt;This is deliberate: there is no fixed converter from metric view to cube. A converter would make the same choices for every view, while a real model needs decisions that depend on the data and on how people report: which fields form a hierarchy, what to name things, which measures to hide, which roles to add. The agent makes those choices with you, following the guide, and you review the result like any other change.&lt;/p&gt;

&lt;p&gt;In my test a new agent session had only the guide, the JSON and the counts. It produced a schema whose figures matched the hand-written one cell for cell: all measures by year and by month, the IN filter case, and status by priority. It chose &lt;code&gt;sum&lt;/code&gt; for the two counts and the non-additive setting for the distinct count and the ratio.&lt;/p&gt;

&lt;p&gt;The agent runs these two queries with its own Databricks access, for example the Databricks MCP server, and under its own permissions. You can also run them in the SQL editor and paste the results. eMondrian's MCP tools only work with the model (MDX and DAX); reading the source is left to Databricks' own tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it yourself
&lt;/h2&gt;

&lt;p&gt;You need Claude Code, Docker, Power BI Desktop on Windows, and a Databricks workspace with a metric view, a SQL warehouse and a personal access token.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Start eMondrian Community.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/eMondrian/emondrian-community
&lt;span class="nb"&gt;cd&lt;/span&gt; emondrian-community
cp .env.example .env
./setup.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To change the port, edit &lt;code&gt;EMONDRIAN_PORT&lt;/code&gt; in the copied &lt;code&gt;.env&lt;/code&gt;; &lt;code&gt;setup.sh&lt;/code&gt; lists any settings your &lt;code&gt;.env&lt;/code&gt; leaves out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Add a licence key.&lt;/strong&gt; The Power BI (DAX) module needs one. Request the free 30-day key at &lt;a href="https://emondrian.com/license?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=databricks-metric-views" rel="noopener noreferrer"&gt;emondrian.com/license&lt;/a&gt; and put the &lt;code&gt;.lic&lt;/code&gt; file into &lt;code&gt;modules/&lt;/code&gt;. No restart is needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Connect eMondrian to Databricks.&lt;/strong&gt; The Databricks JDBC driver isn't in the image: download it from Databricks and mount it into the server's &lt;code&gt;lib&lt;/code&gt; folder. The connection settings go into an env file, so the token never appears in a schema or in &lt;code&gt;datasources.xml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# docker-compose.override.yml
&lt;/span&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;eMondrian&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;env_file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;databricks.env&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;./drivers/databricks-jdbc.jar:/usr/local/tomcat/lib/databricks-jdbc.jar:ro&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the name of the jar you downloaded in place of &lt;code&gt;databricks-jdbc.jar&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="c1"&gt;# databricks.env (keep it out of Git)
&lt;/span&gt;&lt;span class="na"&gt;EMONDRIAN_DATABRICKS_HOST&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;workspace&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;EMONDRIAN_DATABRICKS_HTTP_PATH&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;SQL&lt;/span&gt; &lt;span class="n"&gt;warehouse&lt;/span&gt; &lt;span class="no"&gt;HTTP&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;EMONDRIAN_DATABRICKS_CATALOG&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;catalog&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;EMONDRIAN_DATABRICKS_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then &lt;code&gt;docker compose up -d&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Give Claude Code both servers.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http emondrian http://localhost/emondrian/mcp
claude mcp add --transport http databricks https://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;workspace host&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/api/2.0/mcp/sql --header &lt;span class="s2"&gt;"Authorization: Bearer $DATABRICKS_TOKEN"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Databricks SQL server has a tool that runs any statement (&lt;code&gt;execute_sql&lt;/code&gt;) and a read-only one (&lt;code&gt;execute_sql_read_only&lt;/code&gt;). Allow only the read-only tool and &lt;code&gt;poll_sql_result&lt;/code&gt;; the agent needs nothing else. &lt;code&gt;DESCRIBE&lt;/code&gt;, &lt;code&gt;SHOW CREATE TABLE&lt;/code&gt; and &lt;code&gt;SELECT … MEASURE() … GROUP BY&lt;/code&gt; all pass through it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Ask for the cube.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Two MCP servers are connected: "databricks" and "emondrian". In Databricks there is a metric view &lt;code&gt;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.orders_mv&lt;/code&gt;. Build an eMondrian cube over it: follow the eMondrian cube authoring guide (it has a section on metric views), read what you need about the view through the databricks tools, write the schema, validate it, and register it in eMondrian as a new catalog named "Orders". The server already has the Databricks connection as environment variables; never write the host, path or token into anything.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The guide is long; Claude Code saves it to a file and reads the metric view section from there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Ask it to check its own work.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Compare at least three figures from the "Orders" cube with MEASURE() SQL on the metric view, including the distinct-count measure for one whole year against the sum of that year's months: they must differ, and the cube must match the year. Then add time measures with add_time_measures (preview first, then save) for one additive and one distinct-count measure, and check one year-to-date value against SQL. Show the comparisons as a table.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;7. Ask for the Power BI project.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Create a Power BI Desktop project for the "Orders" cube with the eMondrian report tools: one page with a table of months showing the main measures and their year-to-date measures, and a slicer on the year. Connect it to &lt;code&gt;http://&amp;lt;eMondrian machine&amp;gt;/xmla&lt;/code&gt;. Write the files into ./orders-report and pack the folder into orders-report.zip.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Use the address by which Power BI Desktop's machine reaches eMondrian: the server's name or IP, or &lt;code&gt;localhost&lt;/code&gt; if Desktop runs on the same machine. If you leave it out, the agent asks for it. Unzip the archive and open &lt;code&gt;orders-report.pbip&lt;/code&gt; in Power BI Desktop. It connects live, with no data import.&lt;/p&gt;

&lt;p&gt;In my run each of the three prompts took one to three minutes. The cube figures, the year-to-date measures and every value in the Desktop table matched &lt;code&gt;MEASURE()&lt;/code&gt; SQL on the view, and the year total of the distinct count was the view's own figure for the year, not the sum of its months.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deployment: two VMs, one for the gateway and one for eMondrian
&lt;/h2&gt;

&lt;p&gt;For the Power BI Service you need the on-premises data gateway in standard mode. It uses its &lt;strong&gt;built-in Analysis Services&lt;/strong&gt; connection to eMondrian, so nothing Databricks-specific is installed on it: no ODBC driver, no custom connector.&lt;/p&gt;

&lt;p&gt;I recommend two separate machines:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Gateway VM&lt;/th&gt;
&lt;th&gt;eMondrian VM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OS&lt;/td&gt;
&lt;td&gt;Windows (the gateway runs only on Windows)&lt;/td&gt;
&lt;td&gt;Linux with Docker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Talks to&lt;/td&gt;
&lt;td&gt;Power BI Service (outbound) and eMondrian&lt;/td&gt;
&lt;td&gt;the gateway and the SQL warehouse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Updates&lt;/td&gt;
&lt;td&gt;monthly gateway releases, Windows restarts&lt;/td&gt;
&lt;td&gt;eMondrian releases&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Why not one machine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Different platforms.&lt;/strong&gt; The gateway is a Windows service; eMondrian runs as Linux containers. On one box you end up with Docker on Windows, which is the less common setup to run in production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restarts don't take each other down.&lt;/strong&gt; Gateway updates and Windows patches restart the gateway VM. Excel users and AI agents connected straight to eMondrian keep working.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resources.&lt;/strong&gt; Both do real work per report view: the gateway relays every query, and eMondrian builds SQL and holds the cache. Separate VMs mean neither starves the other, and each can be sized and scaled on its own (a gateway cluster, a larger eMondrian VM).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credentials stay apart.&lt;/strong&gt; The warehouse token lives only on the eMondrian VM. The gateway only knows the XMLA address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Placement.&lt;/strong&gt; Put both in the same virtual network and region as the SQL warehouse. The XMLA endpoint then doesn't need to be reachable from the internet: only the gateway, Excel users on the network and agents use it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Setting up the Service is the same as for any eMondrian source: a gateway connection of type Analysis Services, server &lt;code&gt;https://&amp;lt;emondrian-address&amp;gt;/xmla&lt;/code&gt;, database = the catalog name, Windows authentication; then Publish from Desktop. In the test the report and pinned dashboard tiles refreshed through the gateway, and every figure equalled the metric view's own query.&lt;/p&gt;

&lt;p&gt;Plan the warehouse for live use: every click in the report runs on the SQL warehouse, so choose its size and set auto-stop with that in mind.&lt;/p&gt;

&lt;h2&gt;
  
  
  Databricks' own publishing, compared
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Based on the Azure Databricks documentation of 10 November 2026. The feature is in Private Preview and wasn't tested here; details may change.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;p&gt;You publish a metric view from Catalog Explorer, once, or from a Power BI task in a Databricks job, on a schedule. The result is a semantic model in a Power BI Service workspace:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One table&lt;/strong&gt; named after the metric view. Its dimensions, including those from joined tables, become columns. No relationships are created.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measures are translated into DAX.&lt;/strong&gt; Power BI calculates them from the columns of that table. That's why every column a measure reads must also be declared as a dimension; otherwise the measure is dropped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DirectQuery&lt;/strong&gt; (default) sends SQL to the metric view when a visual runs, and Unity Catalog permissions apply. &lt;strong&gt;Import&lt;/strong&gt; copies the data into Power BI, and Unity Catalog permissions no longer apply to it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After a change&lt;/strong&gt; in the metric view you publish again. Existing DAX measures are updated and new ones added; a scheduled job does this on every run.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some metric views don't publish: multi-fact views (for example with a bridge table) and views without dimensions. Some measures are dropped while the rest is published: year-to-date and other measures with more than one window, leading windows, a row count over a one-to-many join, &lt;code&gt;MEASURE()&lt;/code&gt; of another metric view, percentiles, UDFs, and measures with parameters.&lt;/p&gt;

&lt;h3&gt;
  
  
  Two approaches
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Databricks publishing to Power BI&lt;/th&gt;
&lt;th&gt;eMondrian in between&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Status&lt;/td&gt;
&lt;td&gt;Private Preview, from Databricks&lt;/td&gt;
&lt;td&gt;Available, open-source core + commercial DAX module&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where the formula is evaluated&lt;/td&gt;
&lt;td&gt;DAX copy in the Power BI model, regenerated on each publish&lt;/td&gt;
&lt;td&gt;Only in the metric view: &lt;code&gt;MEASURE()&lt;/code&gt; at query time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change in the metric view&lt;/td&gt;
&lt;td&gt;Visible after the next publish&lt;/td&gt;
&lt;td&gt;A changed formula: on the next query. New or removed fields: change the cube (an agent can do it)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What report users see&lt;/td&gt;
&lt;td&gt;One table: dimensions, measure inputs as columns, measures&lt;/td&gt;
&lt;td&gt;Dimensions with hierarchies and measures; measure inputs stay hidden&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Year-to-date, previous period&lt;/td&gt;
&lt;td&gt;Dropped on publish; can be written in DAX in Power BI (a copy again)&lt;/td&gt;
&lt;td&gt;Calculated measures in the model, also for distinct counts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Several fact tables&lt;/td&gt;
&lt;td&gt;A multi-fact metric view isn't published&lt;/td&gt;
&lt;td&gt;One metric view per fact, each a cube, combined in a virtual cube with shared dimensions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Excel&lt;/td&gt;
&lt;td&gt;Through the Power BI model (Analyze in Excel)&lt;/td&gt;
&lt;td&gt;PivotTables connect directly over XMLA, no Power BI needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI agents&lt;/td&gt;
&lt;td&gt;Through Databricks' own tools (Genie, MCP)&lt;/td&gt;
&lt;td&gt;The same model over MCP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Extra infrastructure&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;eMondrian server; for the Power BI Service also a gateway VM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Extra measures&lt;/td&gt;
&lt;td&gt;DAX measures in the Power BI model or report&lt;/td&gt;
&lt;td&gt;Calculated measures in the eMondrian model, on top of the metric view's measures; not in the Power BI report (live connection to a multidimensional model)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Included with Databricks and Power BI&lt;/td&gt;
&lt;td&gt;Power BI (DAX) module licence; core free&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Strengths and weaknesses
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Databricks publishing — strengths:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No extra server and no gateway: it's a regular Power BI model on Databricks SQL.&lt;/li&gt;
&lt;li&gt;Comes from Databricks, with Microsoft's connector underneath.&lt;/li&gt;
&lt;li&gt;Report authors can add their own DAX measures.&lt;/li&gt;
&lt;li&gt;Publishing can run as a step in the same job that loads the data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Databricks publishing — weaknesses:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The formulas are copied into DAX. Between a change and the next publish the two definitions differ, and the copy is what reports use.&lt;/li&gt;
&lt;li&gt;The columns a measure reads must be visible in the model, so users can build their own sums over them, outside the defined measures.&lt;/li&gt;
&lt;li&gt;A single flat table, without relationships or hierarchies.&lt;/li&gt;
&lt;li&gt;Measures that don't fit are dropped and the rest is published; check each model after publishing.&lt;/li&gt;
&lt;li&gt;Import mode leaves Unity Catalog permissions behind.&lt;/li&gt;
&lt;li&gt;Private Preview: availability and behaviour may change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;eMondrian — strengths:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One definition: each figure, every subtotal and the grand total is computed by Databricks from the metric view.&lt;/li&gt;
&lt;li&gt;Hierarchies and time measures live in the model, and work for non-additive measures too.&lt;/li&gt;
&lt;li&gt;Calculated measures can be added in the eMondrian model on top of the metric view's measures (shares, differences, time measures), without changing the metric view; Excel, Power BI and agents all get them.&lt;/li&gt;
&lt;li&gt;Several fact tables in one report: a virtual cube combines the cubes over several metric views through their shared dimensions.&lt;/li&gt;
&lt;li&gt;Excel PivotTables and AI agents use the same model as Power BI.&lt;/li&gt;
&lt;li&gt;Users see measures and dimensions, not the raw inputs of measures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;eMondrian — weaknesses:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Another server to run, and for the Power BI Service also a Windows VM with the gateway.&lt;/li&gt;
&lt;li&gt;Report authors can't add DAX measures in Power BI; extra measures are calculated measures in the eMondrian model.&lt;/li&gt;
&lt;li&gt;When the metric view gains or loses fields, the cube has to change too (an agent can do it from the view's definition).&lt;/li&gt;
&lt;li&gt;A visual with several non-additive measures may need several SQL statements on the warehouse.&lt;/li&gt;
&lt;li&gt;The DAX module needs a licence key.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Which to choose
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Databricks publishing&lt;/strong&gt; fits when your metric views are simple (sums, counts, ratios, distinct counts on one fact table), your users work in the Power BI Service, and a DAX copy refreshed by a job is acceptable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;eMondrian&lt;/strong&gt; fits when the definitions must stay only in Databricks, when you need hierarchies and year-to-date on distinct counts and ratios, when a report combines several fact tables, or when Excel users and AI agents should get the same figures as Power BI.&lt;/p&gt;

&lt;p&gt;They can also live side by side: the same metric view can be published to Power BI by Databricks and read by eMondrian for Excel and agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can Power BI connect live to a Databricks metric view?&lt;/strong&gt;&lt;br&gt;
Yes, through eMondrian. Power BI connects live to eMondrian as to Analysis Services, and eMondrian queries the metric view with &lt;code&gt;MEASURE()&lt;/code&gt; SQL. Power BI's own Databricks connector no longer offers this: BI compatibility mode is gone, and what remains is hand-written Native query SQL. Databricks' own publishing (Private Preview) creates a Power BI model with the measures translated into DAX; see the comparison.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work in the Power BI Service, not only in Desktop?&lt;/strong&gt;&lt;br&gt;
Yes. The on-premises data gateway uses its built-in Analysis Services connection to eMondrian, with no Databricks driver on the gateway. Reports and pinned dashboard tiles refresh through it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are totals of distinct counts and ratios correct?&lt;/strong&gt;&lt;br&gt;
Yes. eMondrian never adds up non-additive measures. Every subtotal and the grand total is a separate &lt;code&gt;MEASURE()&lt;/code&gt; query, so Databricks computes it from the view's definition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I have to rewrite the metric view's measures in DAX?&lt;/strong&gt;&lt;br&gt;
No. The measure formulas stay only in Databricks. The eMondrian schema names the measures and says whether they may be rolled up, and an AI agent can write that schema from the metric view.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Excel work too?&lt;/strong&gt;&lt;br&gt;
Yes. Excel PivotTables connect to the same eMondrian model over XMLA and get the same figures.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it cost?&lt;/strong&gt;&lt;br&gt;
eMondrian Community is open source. The Power BI (DAX) module needs a licence key; a free 30-day key is available. The MCP tools are free. Every report query runs on your SQL warehouse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Would this help you?
&lt;/h2&gt;

&lt;p&gt;I'm looking for teams that report in Power BI on Databricks and have hit the problems above. If you've rebuilt metric-view measures in DAX, or your totals stopped matching, I'd like to hear how you handle it now. Leave a comment.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;eMondrian:&lt;/strong&gt; &lt;a href="https://emondrian.com/demo?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=databricks-metric-views" rel="noopener noreferrer"&gt;Demo&lt;/a&gt; · &lt;a href="https://github.com/eMondrian/emondrian-community" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://docs.emondrian.com" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/query" rel="noopener noreferrer"&gt;Databricks: query metric views&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/bi-tools" rel="noopener noreferrer"&gt;Databricks: metric views with external BI tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.databricks.com/aws/en/partners/bi/bi-metric-view" rel="noopener noreferrer"&gt;Databricks: BI compatibility mode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/azure/databricks/partners/bi/power-bi/publish-metric-views" rel="noopener noreferrer"&gt;Azure Databricks: Connect metric views to Power BI (Private Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://community.fabric.microsoft.com/idea/fbc_ideas/enable-native-power-bi-integration-with-databricks-metric-view/4823684" rel="noopener noreferrer"&gt;Fabric Ideas: Enable native Power BI integration with Databricks Metric View&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.tabulareditor.com/features/semantic-bridge.html" rel="noopener noreferrer"&gt;Tabular Editor: Semantic Bridge&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/data-integration/gateway/service-gateway-onprem" rel="noopener noreferrer"&gt;Microsoft: on-premises data gateway&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>powerbi</category>
      <category>databricks</category>
      <category>semanticlayer</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>Power BI Service on ClickHouse, without an ODBC driver on your gateway</title>
      <dc:creator>Sergei Semenkov</dc:creator>
      <pubDate>Tue, 03 Nov 2026 13:09:25 +0000</pubDate>
      <link>https://dev.to/sergeisemenkov/power-bi-service-on-clickhouse-without-an-odbc-driver-on-your-gateway-1mnn</link>
      <guid>https://dev.to/sergeisemenkov/power-bi-service-on-clickhouse-without-an-odbc-driver-on-your-gateway-1mnn</guid>
      <description>&lt;p&gt;&lt;em&gt;As of November 2026. You need Power BI Desktop, a Power BI account and a Windows machine for the on-premises data gateway.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Last week &lt;a href="https://dev.to/sergeisemenkov/claude-builds-a-power-bi-report-on-a-live-model-in-clickhouse-c0k"&gt;Claude built a Power BI report on 182 million flights in ClickHouse&lt;/a&gt;. It ran in Power BI Desktop. The next question is the one every BI team asks: &lt;em&gt;can the rest of the team open it in the Power BI Service?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Here's how: publish the same live report through the standard gateway, with nothing ClickHouse-specific installed on it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm the author of eMondrian, the open-source semantic layer used here.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works: a semantic model in between
&lt;/h2&gt;

&lt;p&gt;eMondrian sits between Power BI and ClickHouse. It holds the model, with cubes, dimensions and measures such as &lt;em&gt;On-Time Rate&lt;/em&gt; defined once. To Power BI it looks like Analysis Services. Power BI connects to it &lt;strong&gt;live&lt;/strong&gt; and sends DAX. eMondrian turns that into SQL for ClickHouse.&lt;/p&gt;

&lt;p&gt;For the Service, that means the gateway uses a connection type it already has built in: &lt;strong&gt;Analysis Services&lt;/strong&gt;. There is no ClickHouse driver or custom connector on the gateway. The gateway only needs to reach eMondrian's HTTPS address.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozxcx5yhm3y9v6ndar59.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozxcx5yhm3y9v6ndar59.png" alt="How a query travels from the browser to ClickHouse and back: Power BI Service, the data gateway with its built-in Analysis Services connection, eMondrian, ClickHouse" width="800" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Official ClickHouse connector&lt;/th&gt;
&lt;th&gt;Through eMondrian&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;On the gateway machine&lt;/td&gt;
&lt;td&gt;ClickHouse ODBC driver&lt;/td&gt;
&lt;td&gt;Nothing extra: built-in Analysis Services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How Power BI queries&lt;/td&gt;
&lt;td&gt;DirectQuery: Power BI writes SQL against the tables&lt;/td&gt;
&lt;td&gt;Live connection to a semantic model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where measures live&lt;/td&gt;
&lt;td&gt;In each .pbix&lt;/td&gt;
&lt;td&gt;Once, in the model; the same in Power BI, Excel and AI agents&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A report with a live connection to eMondrian. Use the one from the &lt;a href="https://dev.to/sergeisemenkov/claude-builds-a-power-bi-report-on-a-live-model-in-clickhouse-c0k"&gt;previous tutorial&lt;/a&gt;. Or connect Power BI Desktop yourself: &lt;strong&gt;Get data → Analysis Services&lt;/strong&gt;, server &lt;code&gt;https://demo.emondrian.com/xmla&lt;/code&gt;, database &lt;code&gt;OnTime&lt;/code&gt;, &lt;strong&gt;Connect live&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;on-premises data gateway&lt;/strong&gt; in &lt;strong&gt;standard mode&lt;/strong&gt; (not personal mode), on a Windows machine that can reach the eMondrian address.&lt;/li&gt;
&lt;li&gt;A Power BI account. On a Free licence you can view your own report in &lt;em&gt;My workspace&lt;/em&gt;. To share it with your team, you need Pro or Premium Per User.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used the public eMondrian demo, so there was no server to install. Its data is read-only: 182 million US flights in ClickHouse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1. Add the connection to the gateway
&lt;/h2&gt;

&lt;p&gt;Install the gateway and sign in, if you haven't already. Then, in the Power BI Service: &lt;strong&gt;Settings → Manage connections and gateways → New → On-premises&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gateway:&lt;/strong&gt; your gateway&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connection type:&lt;/strong&gt; Analysis Services&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server:&lt;/strong&gt; &lt;code&gt;https://demo.emondrian.com/xmla&lt;/code&gt; (or your eMondrian address)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; &lt;code&gt;OnTime&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication:&lt;/strong&gt; Windows, with an account the gateway can use&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy level:&lt;/strong&gt; Organizational&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4mn9afbhqubu1rit7l3m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4mn9afbhqubu1rit7l3m.png" alt="The gateway connection: type Analysis Services, server https://demo.emondrian.com/xmla, database OnTime" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Save. The gateway needs a Windows account to make the connection; the demo doesn't check it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2. Publish from Power BI Desktop
&lt;/h2&gt;

&lt;p&gt;Open the report in Desktop and click &lt;strong&gt;Publish&lt;/strong&gt;, then choose a workspace. The Service matches the report to the gateway connection by server and database. If it doesn't, check &lt;strong&gt;Semantic model settings → Gateway and cloud connections&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3. Open it in the browser
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flqbur71s09bh8dl3040l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flqbur71s09bh8dl3040l.png" alt="The report in the Power BI Service: 2025, all carriers" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every visual queries the model live through the gateway. Nothing is imported into Power BI, and there's no scheduled data refresh to set up for the report itself.&lt;/p&gt;

&lt;p&gt;I clicked through it and compared each number with a direct MDX query on the server. They matched:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2025: &lt;strong&gt;7,001,619 flights, 76.34% on time&lt;/strong&gt;, the same as in Desktop and in the Claude dashboard on the same model;&lt;/li&gt;
&lt;li&gt;carrier DL (Delta) selected: &lt;strong&gt;1,026,332 flights, 79.12%&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;the tooltip for Delta in September: 87.36%;&lt;/li&gt;
&lt;li&gt;clicking American (AA) on the carriers bar cross-filters the page: 973,653 flights, 72.70%;&lt;/li&gt;
&lt;li&gt;cancellation rate by day of week for Delta matches the previous article: Friday 1.73% is the worst day, Wednesday 0.49% the best.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffdxav290tysvai6hc902.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffdxav290tysvai6hc902.png" alt="The same report with Delta selected" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Speed:&lt;/strong&gt; the eight-visual page opened in &lt;strong&gt;3.6–4.6 seconds&lt;/strong&gt; in the Service through the gateway. In Desktop, connected directly, its slowest visual took 1.7–3.6 seconds. Those were warm runs on a shared public demo, so treat them as a rough idea, not a benchmark.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4. Pin it to a dashboard
&lt;/h2&gt;

&lt;p&gt;Pin a few visuals to a dashboard as usual. The tiles show live data and refresh automatically through the same gateway connection. This requires eMondrian 10.0.62 or later.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr4xzqbk0ytxj3ozogi1t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr4xzqbk0ytxj3ozogi1t.png" alt="A dashboard with three pinned tiles" width="800" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What about Excel?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Analyze in Excel&lt;/em&gt; from the Service needs a Pro or PPU licence. I didn't test it.&lt;/p&gt;

&lt;p&gt;You don't need the Service for Excel, though. Excel connects to eMondrian directly: &lt;strong&gt;Data → Get Data → From Database → From Analysis Services&lt;/strong&gt;, with the same address. A PivotTable there uses the same model and the same measures as the report.&lt;/p&gt;

&lt;h2&gt;
  
  
  Doing this on your own data
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run eMondrian Community next to your database: &lt;code&gt;git clone https://github.com/eMondrian/emondrian-community&lt;/code&gt; and &lt;code&gt;./setup.sh&lt;/code&gt;. It works with ClickHouse, PostgreSQL, MySQL or any JDBC source.&lt;/li&gt;
&lt;li&gt;Describe your cubes and measures, or ask Claude to draft the schema over MCP.&lt;/li&gt;
&lt;li&gt;Point the gateway's Analysis Services connection at your eMondrian address and publish.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Power BI (DAX) module needs a key; a free 30-day evaluation key is at &lt;a href="https://emondrian.com/license?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=powerbi-service" rel="noopener noreferrer"&gt;emondrian.com/license&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;eMondrian:&lt;/strong&gt; &lt;a href="https://emondrian.com/demo?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=powerbi-service" rel="noopener noreferrer"&gt;Demo&lt;/a&gt; · &lt;a href="https://github.com/eMondrian/emondrian-community" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://docs.emondrian.com" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://clickhouse.com/docs/integrations/powerbi" rel="noopener noreferrer"&gt;ClickHouse: Power BI integration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/power-query/connectors/clickhouse" rel="noopener noreferrer"&gt;Microsoft: ClickHouse connector&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/data-integration/gateway/service-gateway-onprem" rel="noopener noreferrer"&gt;Microsoft: on-premises data gateway&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Have you put ClickHouse behind the Power BI Service? What broke? Leave a comment.&lt;/p&gt;

</description>
      <category>powerbi</category>
      <category>clickhouse</category>
      <category>semanticlayer</category>
      <category>dataengineering</category>
    </item>
  </channel>
</rss>
