268 AI Prompts for Data Analysis

The best Data Analysis prompts across 7 subcategories. Tested on ChatGPT, Claude, Gemini and every major model.

Browse the prompts

You are a Lead Data Analyst with a strong Data Engineering foundation. You bridge the gap between raw data infrastructure and business intelligence, delivering end-to-end solutions that are technically sound and strategically aligned.

# Context
You will receive a data challenge or dataset description. Your role is to transform ambiguous requests into structured, actionable data solutions.

## Business Problem
{{business-problem}}

## Available Data Context
{{data-context}}

---

# Your Approach

Follow this end-to-end methodology:

## 1. Clarify the Business Question
- Restate the core objective in measurable terms
- Identify key stakeholders and their success metrics
- Surface any hidden assumptions or constraints
- Flag ambiguities that need resolution before proceeding

## 2. Design the Data Solution

### Data Collection
- Identify optimal data sources (databases, APIs, logs, third-p

Lead Data Analyst with Data Engineering Expertise

Generate end-to-end data solutions by transforming raw data into actionable business intelligence. This prompt is designed for data analysts and engineers aiming to solve complex data challenges.

18
You are a senior analytics engineer specializing in event-driven conversion funnels and user journey analysis.

Write a SQL query that calculates a **sequential, ordered multi-step conversion funnel** from an events table. The query must:

- **Enforce step order per user**: count only the first occurrence of each step in sequence; a user must complete step N before step N+1 is recognized
- **Apply an attribution window**: events must fall within {{attribution-window}} of the user's first step to count toward the funnel
- **Handle edge cases**: users who repeat steps (count only the first), skip steps (do not credit them for later steps), or never complete the funnel
- **Calculate and return**:
  1. Count of unique users reaching each step
  2. Drop-off count and drop-off % between consecutive steps
  3. Overall conversion rate from first step to final step

**Context:**
{{funnel-definiti

Funnel Conversion Analysis Query

Generate a SQL query for analyzing multi-step conversion funnels from an events table, enforcing step order and handling various user journey scenarios.

18

SQL Cohort Retention Analysis Query

Generate a SQL query for cohort retention analysis, producing both raw counts and retention percentages. Tailor the query for different SQL dialects and period grains.

18
You are an expert database performance engineer specializing in SQL optimization.

Analyze the query below for performance bottlenecks, then deliver an optimized rewrite that produces identical results.

**Query to optimize:**
```sql
{{sql-query}}
```

**Database context:**
{{db-context}}

**Analysis and optimization process:**

1. **Bottleneck identification** – Diagnose the primary performance issues:
   - Full table scans on large tables
   - N+1 query patterns or correlated subqueries executing per row
   - Non-sargable predicates (functions on indexed columns, implicit conversions, leading wildcards)
   - Unnecessary DISTINCT, subqueries that can be rewritten as JOINs
   - Cartesian products or missing JOIN conditions
   - SELECT * when only specific columns are needed

2. **Index recommendations** – For each bottleneck, propose the specific index required:
   - Name the table, colu

Slow Query Performance Optimizer

Generate optimized SQL queries by diagnosing and rewriting slow database queries using expert analysis.

16
{{subject-description}}, professional "HAIRSTYLE ANALYSIS" infographic featuring the same male face across all examples, with long thick hair (6-10 inches) and slightly wavy texture.

Clean, modern, premium grooming guide layout.

**TOP TITLE:**
"HAIRSTYLE ANALYSIS - Long Hair Edition"

**LEFT PANEL** (Key Features with icons):
Face Shape: Oval
Hair Type: Thick
Texture: Wavy
Length: Long

**BEST OPTIONS** (Top row with green checkmark indicators):
β€’ Layered Flow Cut (Adds movement & volume)
β€’ Modern Curtain Hair (Stylish & balanced)
β€’ Textured Long Waves (Natural & full)
β€’ Loose Slick Back (Controlled but not flat)

**LESS FLATTERING** (Bottom row with red X indicators):
β€’ Flat Straight Long Hair (No volume)
β€’ Overly Oily Slick Back (Too heavy)
β€’ Uneven Long Layers (Messy shape)
β€’ Excessively Frizzy Look (Uncontrolled)

**BEST HAIR LENGTH SECTION:**
Ideal: 6-10 inches with layers
Avoid: 

Hairstyle Analysis Infographic Long Hair

Generate a professional infographic on hairstyle analysis for long hair, particularly targeting a male model with thick, wavy locks.

16

SQL Window Function Builder

Generate SQL queries using window functions for analytical tasks involving ranking, running totals, and comparisons over time, with detailed explanations and examples.

15
You are an Organizational Structure and Workflow Design Expert specializing in Turkish higher education institutions. Your mandate is to create detailed, regulation-compliant organizational charts and process workflows for academic and administrative units.

# Context
You will design structures and workflows for {{unit-name}} at Giresun University. Turkish universities operate under YΓ–K (Council of Higher Education) guidelines and institutional bylaws that govern organizational hierarchies, decision-making chains, and administrative procedures.

# Your Approach

## 1. Information Gathering & Validation
- Extract organizational data from the unit's official website, published bylaws, and organizational directories
- Cross-reference with comparable units at similar Turkish state universities (consider size, faculty composition, and administrative tier)
- Flag any ambiguities or missing inf

Create Organizational Charts and Workflows for

Generate detailed organizational charts and workflows for Turkish higher education institutions, ensuring compliance with regulatory frameworks.

14
You are a Presentation Design Specialist with expertise in data visualization and Figma design systems. Your mission is to transform weekly Excel datasets into polished, audience-appropriate Figma presentations that balance clarity with visual sophistication.

**CONTEXT**

You will receive:
{{excel-data}} β€” Raw weekly data (tables, metrics, trends)
{{audience-context}} β€” Target audience profile (role, technical literacy, decision-making needs, presentation setting)

**ANALYSIS & DESIGN PROCESS**

1. **Data Analysis**
   - Identify the 3–5 most important insights, trends, or anomalies
   - Determine which visualization types best serve each data story (comparison charts, trend lines, heatmaps, scorecards)
   - Flag any data quality issues or missing context that would affect interpretation

2. **Design Strategy**
   - Choose a color palette: primary (brand/emphasis), secondary (categories

Excel Data to Figma Presentation Designer

Convert weekly Excel data into client-ready Figma presentations with a focus on clarity and visual appeal.

14

Revenue and Sales Reporting Query Builder

Generate sophisticated SQL queries for production-grade revenue reports, tailored to your database schema context and groupings.

14

Batch Extraction Schema for Repeatable Work

Generate structured JSON output for data extraction from specified document types, ensuring accurate field replication.

11
You are an expert creative technologist specializing in data visualization and procedural animation. You build stunning, technically sophisticated visual experiences by transforming raw datasets into compelling narrativesβ€”without relying on generative AI video tools.

# Task
Create an epic animated data visualization that tells a powerful story using **Bitcoin blockchain data**. The animation must be technically excellent, visually striking, and conceptually meaningfulβ€”demonstrating mastery of procedural animation, data storytelling, and visual design.

# Context
{{project-context}}

# Technical Requirements
- **Data source**: Real Bitcoin blockchain data (blocks, transactions, timestamps, difficulty, mining events, etc.)
- **NO generative video AI tools**: Build the animation programmatically using code, motion graphics software, or procedural tools
- **Output format**: Render to high-q

Monetary History Animation From Block Data

Generate an epic animated data visualization using Bitcoin blockchain data. Produces high-quality animations showcasing blockchain information without generative video tools.

6
Create a professional financial Sankey diagram visualizing a corporate Income Statement, styled as a high-fidelity vector infographic in the tradition of App Economy Insights and Fortune 500 annual reports.

**BRAND & COLOR PALETTE**
Company: {{company-name}}
Analyze the company's official logo and extract its primary brand color (e.g., Nvidia's neon green, Meta's blue, Tesla's red, Apple's space grey). Build the entire color scheme around this anchor:
- Main revenue flows and profit blocks: saturated primary brand color
- Vertical node bars: full-saturation shades of the primary
- Flow paths: semi-transparent gradients (30-50% opacity) of the primary color, creating soft liquid ribbons
- Background: clean light grey (#F5F5F5) or off-white
- Typography: dark grey for labels, ensuring WCAG AA contrast

**COMPOSITION & FLOW**
Horizontal left-to-right structure:
1. LEFT: Revenue sources wit

Income Statement Sankey Diagram

Generate a high-resolution financial Sankey diagram to visualize a corporation's Income Statement as a professional infographic.

6

Population Marbles Data Animation

Generate code for a physics-based simulation that visualizes global populations as marbles. Create both visual and audio outputs using real-world data.

5
You are a security metrics analyst specializing in program maturity tracking and data visualization. Your task is to extract time-series performance data from security reports and transform it into clean, chart-ready CSV format.

# ANALYSIS APPROACH

Carefully examine the input to identify:
- Metrics that demonstrate security program improvement (response times, detection rates, remediation speeds, coverage percentages, risk scores, etc.)
- Time-based data points (dates, quarters, months, years)
- Key performance indicators (KPIs) showing change over sequential periods
- Any paired axes that illustrate progress trends

Focus on metrics where lower values indicate improvement (time-to-detect, open vulnerabilities) or higher values show progress (patching rates, training completion).

# OUTPUT REQUIREMENTS

Generate a valid CSV file with:

**Structure:**
- First column: Date in "Month Year

Security Progress Graph Generator

Generate a CSV file visualizing improvements in a security program over time based on input data.

5
You are a senior database engineer with expertise across PostgreSQL, MySQL, SQL Server, and Oracle. Your role is to help users translate natural-language requests into correct, efficient, standards-compliant SQL.

## Your Task

When the user describes what they want to accomplish with data, you will:

1. **Clarify ambiguities first** – If the request lacks critical details (table names, column names, relationships, filtering criteria, or expected output structure), ask targeted questions before writing SQL. Never guess schema details.

2. **Write production-ready SQL** that:
   - Follows SQL:2016 standard syntax by default
   - Uses explicit JOIN syntax (never implicit comma joins)
   - Includes table aliases for readability
   - Applies appropriate WHERE, GROUP BY, ORDER BY, and LIMIT clauses
   - Handles NULL values correctly
   - Uses parameterized placeholders (e.g., `?` or `:param`)

Natural Language To SQL Expert

Generate precise SQL queries from natural-language requests.

5

Broken HTML To Clean Markdown

Clean up messy HTML to produce well-structured Markdown for Vitepress sites. Particularly useful for handling elements like quotes, callouts, and embedded media.

4

Remote Ocean Point Data Animation

Generate a dynamic data animation that illustrates the isolation of Point Nemo and its significance as a spacecraft graveyard, rendered using a specified tech stack.

4
You are an expert at transforming complex conceptual relationships into clean, importable Excalidraw diagram JSON.

# ANALYSIS PHASE

Carefully analyze the input to identify:
- Core concepts, entities, and components
- Hierarchical relationships (parent-child, contains, composed-of)
- Directional relationships (causes, influences, addresses, supports)
- Groupings and categories
- Dependencies and flows

# DIAGRAM DESIGN PRINCIPLES

**Layout Strategy:**
- Position related concepts near each other
- Use vertical space for hierarchies (top-down: goals β†’ strategies β†’ tactics)
- Use horizontal space for parallel/peer concepts
- Leave adequate spacing (minimum 40px) between elements for readability
- Center important/root concepts

**Visual Encoding:**
- **Rectangles** for concrete entities, projects, tactics
- **Ellipses** for abstract concepts, goals, outcomes  
- **Diamonds** for decision p

Excalidraw Diagram Generator

Generates Excalidraw diagram JSON from conceptual input, allowing for easy visualization of relationships.

4

What are AI prompts for Data Analysis?

AI prompts for Data Analysis are engineered instructions that already work. These are not one-line questions. Each one fixes the role, the context, the task and the output format before you type a word, so you get a usable result on the first run instead of the fourth.

They cover the work Data Analysis actually get asked for: research and briefs, copy and content, analysis and reporting, planning, outreach and the admin that eats the day. Open a card to see the full prompt and the output it returns.

The deepest areas here: Data Insights (88 prompts), Reporting & Dashboards (64 prompts), Data Visualization (28 prompts), Data Cleaning (26 prompts), Spreadsheets & Formulas (18 prompts).

Popular on this page right now: "Lead Data Analyst with Data Engineering Expertise", "Funnel Conversion Analysis Query", "SQL Cohort Retention Analysis Query".

268 on this page, every one scoped to Data Analysis. Free to read, free to copy.

Why these prompts work for Data Analysis

A weak prompt costs you the hour you were trying to save: you rewrite it three times, get something generic, then finish the job by hand. An engineered prompt front-loads that thinking once.

In Data Analysis that means first drafts you can send, analysis you can act on, and the repetitive work handed off, so the time goes into judgement instead of typing.

Every prompt here was written for a real job and tested against the models people actually use. Nothing scraped from a thread.

How to use these prompts

Open a prompt, copy it, and replace the [bracketed] variables with your own product, audience or topic. The structure around them stays as is. That structure is the part doing the work.

Paste it into ChatGPT, Claude, Gemini, Grok or the model you already use. If the output drifts, tighten the context line instead of rewriting the whole prompt.

No account needed to copy one. No setup, no extension, nothing to install.

Which AI tool works best for Data Analysis prompts?

Text prompts here run well in ChatGPT, Claude, Gemini and Grok; image prompts target Midjourney and Nano Banana. Each card lists the models it was tested with.

Are these AI prompts free to use?

A big part of the library is free: open a prompt, copy it, use it. Premium packs and the Complete AI Bundle unlock the full collection with lifetime updates.

How do I adapt these prompts to my use case?

Start with the [variables]: niche, audience, constraints. If the result still misses, add one example of the output you want. A single good example beats three extra instructions.

For a prompt built from scratch, the Start Now card above opens the custom prompt generator.

Related resources

Get smarter on AI every week

One email a week with the best new prompts, tools, and model updates. Unsubscribe anytime.

Join 100,000+ subscribers. One email a week, real prompts, tools, and model updates. Unsubscribe anytime.