BI with Moiz

From analyst tickets to governed answers

Governed AI that answers from the Power BI semantic model

An AI-enabled BI application where LLM answers come from the same business definitions the dashboards use, so the AI can't invent its own math.

Optimal (now OneMagnify)2025 – presentpower bisemantic modelcopilotdocker
Before
  1. Business question
  2. Analyst ticket
  3. Manual investigation
After
  1. Plain-English question
  2. Governed semantic layer
  3. Executive-ready finding
Before

Dashboards only; every new question went to an analyst

After

Users pick a semantic model, ask in plain English and get findings tied to defined KPIs

The problem

Business users could see dashboards, but every "why did this move?" question became a ticket for an analyst. The business logic that answered those questions lived implicitly inside individual reports, so any AI pointed at the data would have had to guess how revenue, conversion or pacing were calculated.

What I built

I architected an AI-enabled BI application where an authorized user selects a Power BI semantic model, asks an investigative question in natural language and receives executive-ready findings.

The important part is underneath it: a governed analytical layer that turns implicit report logic into explicit metadata.

  • KPI metadata: what each metric means and the business rules behind it.
  • Synonyms, so different words for the same metric resolve to the same measure.
  • Metric logic trees that describe how a KPI decomposes (cost, volume, conversion, mix), so root-cause questions follow the real math.
  • Time-intelligence rules for MTD, YTD, prior year and rolling periods.
  • Output guardrails that keep answers traceable to defined business rules.

Power BI Embedded (app-owned) shows the reports inside the application, and the current report filter context is passed to the AI so answers stay in the same slice the user is looking at. Questions go through query planning and validation before anything is answered, and Qdrant-based retrieval over report and model metadata supplies the context. Sending the model only what a question needs also keeps token use down.

The application runs on a Windows VM with Docker, Caddy and a GitHub runner.

What changed

Answers became more consistent and traceable: the AI works from the same definitions as the dashboards instead of inventing calculations, and manual, question-by-question investigation gave way to a reusable platform.

Hiring for Power BI, Fabric or AI on governed data?

Let's talk about the role, or compare notes on an approach. LinkedIn is the fastest way to reach me.