Guides

Write the definition down, with its conventions

It gives a wrong number, and asking again won't catch it.

When it applies

No ask was right, and the agent gave a number.

Why it happens

A wrong number that comes back run after run is usually a plain reading of the data that isn't your definition: sales summed from a unit-price column, every trip counted including the invalid ones, spend including tax and freight. The agent is consistent, so asking again agrees with it. In our census, 76 to 87% of each agent's wrong numbers came back when the same question was asked again.

What to try

  1. Write down what the number means for your business, including which records count.
  2. State the sign of each amount. If recoveries are stored as negative numbers, say whether to add or subtract them.
  3. Give the exact values to filter on, as they are stored (HOME, not “home building”). An agent that guesses a value can filter to nothing and report zero.
  4. Semantic model: put this in the measure's description (best, because it is the number itself), in column descriptions for the stored values, and in Prep data for AI's AI instructions, which can be written through the model's definition. Agent instructions don't reach the DAX.
  5. Lakehouse or warehouse: put it in the agent's or data source's instructions, and add an example query that applies the sign and the filter. Genie: put it in the text instruction, a SQL snippet or the column descriptions.
  6. Run again, and judge the answer against the expected one, never against the agent's other answers.

How you'll know

The question should leave Never right. If it moves to Sometimes right, read the next lead it shows.

Evidence

In the census, a definition that read right but didn't state the sign led two agents to the same wrong total, and 10 to 15% of the wrong numbers that repeated were zero, from guessed filter values.

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