When NLQ Answers Lie: A Power BI Guardrails Story
A Power BI NLQ story: a crisp answer was wrong. We added provenance, cross‑checks, and a one‑click canonical query to earn trust.

We added natural‑language questions on top of a Power BI model. The first demo was clean. Ask a plain question, get a crisp sentence back. People nodded. A week later, that same sentence clashed with a dashboard. Same metric, same period, two answers. The model was fluent. It was also wrong.
Fluent is not the same as true. Treat NLQ answers as reported claims, not ground truth.
- Require provenance: query, filters, sample, timestamp.
- Show the pipeline behind the sentence.
- Cross‑check with a second deterministic query and cohorts.
- Make verification part of the interaction.
The day the answer conflicted
We asked a question about churn by region. The NLQ said one region led the drop. The dashboard said another. The room went quiet.
We dug in. The NLQ had mapped a friendly phrase to a quick measure with a different filter set. It also hit a sampled table from a cached refresh. Time grain and cohort logic did not match the dashboard. Each choice was small. Together they bent the truth.
What we changed first
Every answer carried its query, filters, sample note, and a timestamp. Shown by default, not behind a click.
We rendered the generated SQL or DAX and the aggregate used. People could read what the model actually ran.
A second deterministic query ran on demand. We also showed three cohorts that could confirm or break the claim.
We added prompts like “Show me the rows behind this” and “Compare to last week’s cohort funnel.”
We marked quick answers as draft until verified. No confident tone without proof on screen.
We set the same time zone, grain, and canonical filters as the dashboard. Drift shrank.
Add an NLQ card with four parts:
- The natural‑language answer, clearly labeled with its time window.
- The exact SQL or pipeline snippet used, including filters.
- Three cohort tiles (e.g., new vs. returning, web vs. app, top 3 regions) that either confirm or contradict the claim.
- One‑click “Run canonical query” that fetches the dashboard metric for the same interval.
Ship with a two‑query pattern: fast approximate in foreground, authoritative recompute in the background or on click. If the delta exceeds a threshold, flag it and link to the rows.
What we showed, not just what we said
| Design choice | Why it helped | Tradeoff |
|---|---|---|
| Provenance field (query, filters, sample, timestamp) | Makes claims auditable on the spot | More to read on small screens |
| Show SQL/aggregate | Exposes mapping errors and hidden filters | Intimidates non‑technical users |
| Deterministic re‑query | Authoritative answer for decisions | Latency and compute cost |
| Cohort tiles | Quick smell test for mismatches | Screen space |
| Row preview links | Lets users verify outliers | Permissions and PII handling |
Return a fast approximate first. Kick off the exact path in the background, and let the user reconcile with one click.
Sampled tables are cheaper. Full joins are expensive. Make the exact path selective and cache by interval.
Extra clicks can slow people down. Use prompts that teach the habit of checking without blocking flow.
Release checklist
- Every NLQ spec has a provenance field and render plan.
- Two‑query verification pattern is implemented and tested.
- Defaults match canonical dashboard filters and grain.
- Sampling or staleness is clearly labeled.
- Model confidence is treated as a hint, not a verdict.
- Row‑level security is respected in both paths.
Require provenance in every NLQ answer and make a two‑query verification pattern a release criterion. Fluent is fine. Verified is better.
After the fix
The next time someone asked about churn, the card spoke plainly and showed its work. A cohort tile disagreed, so the user ran the canonical query. The numbers lined up, and the decision moved on. Trust came not from tone, but from proof on the page.


