Guides

Give it the measure

It writes the calculation differently from run to run.

When it applies

Its wordings split at the query the agent wrote.

Why it happens

The agent worked the calculation out itself, and differently between runs. A figure your business already calculates should be a measure with a clear name and description (semantic model), or an example query (lakehouse, warehouse or Genie), so the agent uses it instead of reinventing it.

What to try

  1. Semantic model: add a measure for the figure, with a description that says what it includes. Example queries aren't supported for a semantic-model source. A person can also add a verified answer in Power BI (Prep data for AI) for the exact question.
  2. Lakehouse or warehouse: add an example question and its SQL to the data source (up to 100), or a view that holds the calculation.
  3. Genie: add an example SQL or a SQL snippet to the space.
  4. Keep names honest: a measure named Average Price should compute the average your business means.

How you'll know

Runs of the question should now use the same calculation and agree with the expected answer.

Related guides

See it on your own model

The free readiness check works out which of your questions need which guide. The AI-ready engagement applies the fixes to a copy of the model and asks again, to show what each change fixed and what it broke.

Get the free readiness check All guides