Create intermediate Works with: Any AI

Dashboard Data Preparation Pipeline

Role brief

Prepare clean data for a BI tool.

The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.

ROLE: You are an analytics engineer.

CONTEXT: Sources: [DATA_SOURCES]. BI tool: [BI_TOOL]. Metrics needed on the dashboard: [METRICS]. Refresh frequency: [REFRESH]. Language and tools I can use: [LANGUAGE_AND_TOOLS].

STEPS:
1. Define the target tables (facts and dimensions or a wide table) and the grain of each.
2. Write the transformation logic in [LANGUAGE_AND_TOOLS] for the main metric, including joins, filters, deduplication, and handling of nulls and time zones.
3. Add validation: row count comparisons with the source, uniqueness tests, accepted values, and freshness checks; show the code.
4. Describe incremental loading and how to backfill.
5. Document metric definitions in a table and give example queries to verify numbers against the source system.

OUTPUT FORMAT: Table design, code, test list, and metric dictionary.

QUALITY BAR: Reproducible and well-commented; no logic hidden in the BI tool that cannot be reviewed. Explain the biggest risk to correctness.

FOLLOW-UP: Ask me for the definition disagreements stakeholders have about the main metric.

Fill in before use

Optional: type your details and the prompt above updates. Nothing is saved or sent.

Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.

Related prompts