Give it the measure
It writes the calculation differently from run to run.
What points here
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
- 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.
- Lakehouse or warehouse: add an example question and its SQL to the data source (up to 100), or a view that holds the calculation.
- Genie: add an example SQL or a SQL snippet to the space.
- 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.