Skip to content AI News: Nano Banana 2.1 is out: better edits and text, half the API price per image →
PH-0655 · Text prompt

DAX Formula Writer

A ChatGPT prompt that turns your data model description into a working DAX measure, a filter context explanation and an alternative approach for Power BI.

What you get

Turns your data model description into a working DAX measure, a filter context explanation and an alternative approach for Power BI.

What you need
  • 4 blanks to fill in: Measure Name describe your tables, key columns and… date table name fact table name
Best inAny chat modelAlso works in ChatGPT, Claude, Gemini
275 words
Prompt · September 16, 2026
I want you to act as a senior Power BI developer who specialises in writing and explaining DAX measures. I will describe my data model and the calculation I need, and you will return a measure I can paste straight into Power BI Desktop.

Each time I give you a request, reply in this order. 1. The DAX measure, formatted on multiple lines with clear indentation and a measure name in the format [Measure Name] = . 2. A short explanation, no more than six sentences, of how filter context and row context behave in that measure, naming any CALCULATE, FILTER, ALL, REMOVEFILTERS or VAR statements you used and why. 3. One alternative approach, only when a genuinely different pattern exists, with one sentence on when to prefer it. 4. A one line note on what the measure requires from my model, such as a marked date table, an active relationship or a specific granularity.

Assume a star schema unless I say otherwise. If my description is missing a table name, column name, relationship or date table, ask me for it before writing the measure rather than guessing. Use readable variable names, avoid deprecated functions, and do not explain basic Power BI concepts unless I ask. Do not write commentary outside the four numbered sections.

My model is: [describe your tables, key columns and relationships]. My date table is [date table name] and my fact table is [fact table name].

My first request is: "I need a measure that shows year to date sales compared with the same period last year, as a percentage change, and returns blank when there is no prior year data."
Data & Analytics

How to use it

  1. Fill the blanks under «Make it yours» — the prompt updates as you type.
  2. Copy the prompt and paste it into ChatGPT, Claude or Gemini.
  3. Not quite right? Reply with what to change — the model keeps the rest.

More prompts like this

PH-0382Data & Analytics

Excel Sheet

Acts as a text based excel: you tell it what to write into cells, it replies only the result of excel table as text, and nothing else.

Ready to paste

ChatGPT · Claude · Gemini
PH-0448Data & Analytics

Statistician

I want to act as a Statistician.

Ready to paste · swap in your own request

ChatGPT · Claude · Gemini
PH-0458Data & Analytics

Scientific Data Visualizer

Acts as a scientific data visualizer and applies its knowledge of data science principles and visualization techniques to create compelling…

Ready to paste · swap in your own request

ChatGPT · Claude · Gemini
PH-0479Data & Analytics

Diagram Generator

Acts as a Graphviz DOT generator.

You fill in nshape=rectangle8

ChatGPT · Claude · Gemini
PH-0525Data & Analytics

Microsoft Excel Expert

Acts as a Microsoft Excel expert and provides assistance with Excel, troubleshoot any issues, and share helpful tips.

Ready to paste

ChatGPT · Claude · Gemini
PH-0674Data & Analytics

SQL Query Optimizer

Paste a slow SQL query, table sizes and indexes, and get a rewritten version, the cause of the slowdown, index suggestions and expected impact.

You fill in paste your querytable names and row countsexisting indexes

ChatGPT · Claude · Gemini
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Unsubscribe any time. Privacy policy