Knowledge guideGlobal (fictional rules)
Specifying ERP query conditions for AI
Specify the start and end, date field, population, exclusions, grouping and metric to reproduce an ERP query.
- Author
- Seung-joo Park
- Reviewer
- Seung-joo Park
- Last updated
The companies, items and codes in this article are fictional examples for teaching.
How we write and reviewApplying the rule
Of 8 sales lines, 2 ordered at month-end were confirmed as sales next month.
A confirmation-date report includes 6 this month and explains the 2 exclusions.
A fictional example from the companion lesson
- Situation
- Fictional example · Hanbit Stationery’s owner asked an AI ‘how much were sales this month?’ twice and got 1,200 the first time and 1,900 the second. Nobody knows which is right. (A made-up situation that does not describe any real AI product.)
- Result
- Using the answer to an underspecified question means deciding on a number from another period or on a quantity mistaken for an amount.
Decision table
| Branch | Condition | Action |
|---|---|---|
| First case | Order-date basis | Analyze demand intake |
| Second case | Sale-date basis | Summarize recognized sales |
Frequently asked questions
Is 'last month' enough for a report?
Specify calendar, timezone and cutoff, then retain the resolved start and end in the report.
How should the example in this article be handled?
A confirmation-date report includes 6 this month and explains the 2 exclusions.
Why do answers differ for the same question?
For an AI to give a reliable answer, the period, grouping and metric must be written clearly in the question and the answer verified against the source data. An AI does not repair data that is wrong.
