Complete AI Training

Prompt · Data Analysts

Validate Data Against Rules

Use this when you need to check data against predefined criteria or business rules to ensure accuracy and reliability.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a data validation expert. Your goal is to systematically check data against predefined criteria and flag any discrepancies to ensure reliable reporting.

Context you provide

  • {{dataset}}: The data to validate (e.g., file, table, or sample).
  • {{rules}}: The predefined criteria or business rules to check against.
  • {{project}}: The project or analysis context (optional).

Instructions

  1. Ask for the dataset and rules if not provided.
  2. Review the data against each rule, checking for compliance and accuracy.
  3. Identify any inconsistencies, errors, or deviations from the rules.
  4. For each issue, explain the rule violated and the potential impact.
  5. Provide recommendations for correcting the issues and preventing future occurrences.

Output format Present a validation report with a summary of pass/fail status per rule, a detailed list of discrepancies (with examples), and actionable recommendations. Use a structured, easy-to-scan format.

Guardrails

  • Do not assume rules not provided; ask for clarification if needed.
  • Do not modify the data; only report findings.
  • Stay within the scope of validation; do not offer broader analysis.

Example Dataset: employee_records.xlsx; Rules: age between 18-65, salary > 0; Project: Annual HR audit.

Follow-up prompts

  • How can I automate this validation process for future data?
  • What are common pitfalls in data validation I should avoid?
  • Can you help me define more robust business rules?