Uploaded February 2023 | Updated December 2026, 3 hours ago
I test AI-written DAX measures in Power BI on a real model and show where they go wrong, so you know what to check.
π Free Power BI QuickStart course: link.xelplus.com/yt-g-AI-powerbi-starter
β Fast Track to Power BI: xelplus.com/course/fast-track-to-power-bi (500,000+ enrolled in our courses)
Vague prompts fail, so "total sales value" only worked once I said to multiply Quantity by Price. The AI adds KEEPFILTERS and CALCULATE where you don't need them, and puts the table name in front of measures, which breaks the formula if you move the measure. It can't see fields hidden inside a hierarchy, and it can write a measure that looks right but calculates something else. You still need to learn DAX, but AI helps you get started on a complex measure or recall syntax.
β Good to know
Quick Measure Suggestions, the feature in this video, has been retired. To write DAX with natural language today, use Copilot in DAX query view.
The mistakes in this video still apply to any AI-written DAX, so check every measure before you add it.
β±οΈ Chapters
00:00 Can AI write DAX in Power BI?
00:24 The test model
00:45 Quick Measure Suggestions (now retired)
01:42 Built on GPT-3: why not just use ChatGPT?
02:16 Test 1: a simple SUM measure
03:51 Test 2: SUMX needs a clearer prompt
05:46 Test 3: a measure based on a measure
07:24 Why AI-written DAX adds KEEPFILTERS
07:56 Why table names before measures break
09:04 Why AI can't see fields in a hierarchy
11:02 Vague prompts: average daily sales
12:30 When AI writes the wrong measure
13:02 Should you still learn DAX?
π¬ Should you learn Power BI? youtu.be/7ZMQZ0UUuTs
π¬ Power BI visuals that Excel lacks: youtu.be/GpP0EbSMRpg
β‘οΈ Join this channel to get access to perks: youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join
βοΈ Get one practical Excel tip every week in our free newsletter, Between the Sheets: link.xelplus.com/yt-d-newsletter
π© Connect with us:
Instagram: instagram.com/lgharani
LinkedIn: linkedin.com/in/leilagharani
#powerbi #dax #ai
I test AI-written DAX measures in Power BI on a real model and show where they go wrong, so you know what to check.
π Free Power BI QuickStart course: link.xelplus.com/yt-g-AI-powerbi-starter
β Fast Track to Power BI: xelplus.com/course/fast-track-to-power-bi (500,000+ enrolled in our courses)
Vague prompts fail, so "total sales value" only worked once I said to multiply Quantity by Price. The AI adds KEEPFILTERS and CALCULATE where you don't need them, and puts the table name in front of measures, which breaks the formula if you move the measure. It can't see fields hidden inside a hierarchy, and it can write a measure that looks right but calculates something else. You still need to learn DAX, but AI helps you get started on a complex measure or recall syntax.
β Good to know
Quick Measure Suggestions, the feature in this video, has been retired. To write DAX with natural language today, use Copilot in DAX query view.
The mistakes in this video still apply to any AI-written DAX, so check every measure before you add it.
β±οΈ Chapters
00:00 Can AI write DAX in Power BI?
00:24 The test model
00:45 Quick Measure Suggestions (now retired)
01:42 Built on GPT-3: why not just use ChatGPT?
02:16 Test 1: a simple SUM measure
03:51 Test 2: SUMX needs a clearer prompt
05:46 Test 3: a measure based on a measure
07:24 Why AI-written DAX adds KEEPFILTERS
07:56 Why table names before measures break
09:04 Why AI can't see fields in a hierarchy
11:02 Vague prompts: average daily sales
12:30 When AI writes the wrong measure
13:02 Should you still learn DAX?
π¬ Should you learn Power BI? youtu.be/7ZMQZ0UUuTs
π¬ Power BI visuals that Excel lacks: youtu.be/GpP0EbSMRpg
β‘οΈ Join this channel to get access to perks: youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join
βοΈ Get one practical Excel tip every week in our free newsletter, Between the Sheets: link.xelplus.com/yt-d-newsletter
π© Connect with us:
Instagram: instagram.com/lgharani
LinkedIn: linkedin.com/in/leilagharani
#powerbi #dax #ai





![The 1-Formula Fix for Excelβs Messiest Tables
Learn Python in Excel: https://www.xelplus.com/course/python-in-excel/
Sales data split across monthly columns? Heres how to reshape it into one clean table, with month, sales, and units each in their own column, using Python inside Excel.
=PY
pd.wide_to_long(sales_data, stubnames=[sales,units], i=sales rep, j=month, sep , suffix=.+).reset_index()
- Type =PY and press Tab to activate Python mode
- wide_to_long turns repeated column groups (like sales_Jan, units_Jan) into rows
- stubnames lists the values youre tracking
- i is your identifier column, like sales rep
- j names the new column that holds the month
- sep matches the separator in your source headers
- suffix=.+ means the leftover text can be anything
- reset_index() keeps everything aligned
- Right-click the Python output and choose Excel Value to drop it into cells
Add a new month to your source data and the table updates on its own.
Uses the pandas wide_to_long function. Check the pandas docs for the full reference.
π¨ Subscribe to Between the Sheets newsletter to stay on top of office tips and Excel hacks: https://link.xelplus.com/yt-d-newsletter
π Join this channel to get access to perks:
https://www.youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join
π² Letβs connect on social:
Instagram: https://www.instagram.com/lgharani
LinkedIn: https://www.linkedin.com/in/leilagharani
#Excel The 1-Formula Fix for Excelβs Messiest Tables](https://i.ytimg.com/vi/aUlGfk7kst0/mqdefault.jpg)




