Skip to content
Alphabyte·AI

CASE STUDY · DTC E-COMMERCE · PAID MEDIA · NORTH AMERICA

AI-Powered Media Buy Analytics Agent

DTC E-Commerce Brand

Claude AI AgentCustom MCP ServerPower BIMicrosoft FabricClaude Cowork
AI-powered media buy analytics agent returning a ranked profitability table with underlying DAX from a plain-English query
Figure 1 — A media buyer asks a plain-English question and receives an auditable, DAX-grounded answer in seconds.

Self-service

Media buyers ask plain-English questions against live data

Auditable

Every answer shows the underlying DAX for verification

Model-agnostic

Same agent works across any Power BI semantic model

Live

Analytics agent in active production use

Background

A direct-to-consumer e-commerce brand operating across multiple product lines and paid channels had invested heavily in their reporting stack. A Power BI semantic model unified attribution data from Meta, Google, TikTok, AppLovin, YouTube, Microsoft, affiliate, and organic sources into a single Media Buy Report covering hundreds of thousands of orders and tens of thousands of ads. Dashboards were in place, refreshes were running, and the marketing team had visibility into the headline metrics every morning.

The Challenge

Dashboards answer the questions the team already knew to ask. Media buying does not work that way. With hundreds of campaigns and ads in flight at any given time, the questions that actually move spend are open-ended: which creatives are profitable on a contribution-margin basis, where did the budget shift between channels last week, why did this month's ROAS drop, which ads should be killed and which scaled.

Each of those questions required a media buyer to pull an analyst, wait for someone to write the DAX, validate the result, and reformat it into something they could act on. By the time the answer came back, the spend decision had already been made.

The dashboards showed the what. They did not show the why. Generic AI tools could not bridge the gap because they cannot reach into a governed Fabric workspace, cannot reason about a tabular model's measures and relationships, and cannot validate a query against live data. Pasting screenshots into a chat returned plausible-sounding answers that could not be trusted for a multi-million-dollar spend decision.

Solution

Alphabyte built a Power BI MCP server that connects Claude directly to the client's Microsoft Fabric workspaces and semantic models. The result is a self-service analytics agent that sits next to every media buyer. They ask a plain-English question and receive an auditable, source-grounded answer with the underlying measures and filters surfaced inline so the result can be trusted and explained.

Media buyers now interrogate the data the same way they think about it: which ads are profitable on a contribution basis after factoring in cost of goods, which creative attributes are driving winners, where spend is concentrated and whether that concentration is paying off, why a specific campaign's net ROAS dropped between weeks, and which channels are quietly losing money behind a healthy-looking gross ROAS. The agent runs the queries live against the model, returns the result in seconds, and shows the DAX so the team can verify and learn.

Decisions that previously required an analyst loop now happen inside the buyer's own working session, and the questions the team can ask have expanded to match the depth of the data.

BI Model Health as a Secondary Benefit

The same MCP server gives BI developers a structured way to audit the semantic model end-to-end, surfacing design issues such as auto date/time bloat, missing sort-by columns, mislabelled measures, redundant logic, fragile averaging patterns, and suboptimal relationships, with concrete remediation steps.

As the analytics agent flushes out edge cases and exposes places where measures behave unexpectedly, those findings flow back into a healthier, more trustworthy model over time.

Built for Any Semantic Model

Built on Claude and Claude Cowork, the MCP server is model-agnostic and applies to any Power BI or Fabric semantic model in the client's tenant. Once connected, the same agent can be pointed at finance models, operations cubes, and sales pipelines without any additional development. New workflows can be layered on top, including scheduled performance briefs, anomaly alerts, and creative-level pacing reports, with no rebuild required.

Want to explore what we could build for your analytics environment?

45 minutes. No cost. No obligation.