r/ExcelPowerQuery • u/13ass13ass • Aug 27 '25
Gpt 5 and m code
I’ve been writing m code for a year now. Almost always using llms to generate the code.
I feel like gpt5 has been a huge step up in m code writing! It’s using functions and is more clear about what it’s trying to do. Honestly it’s helping me appreciate what m code can do even more.
Are you guys seeing the same thing?
10
Upvotes
View all comments
Show parent comment
5
u/DM_Me_Anything_NSFW Aug 28 '25
First, you need to uderstand what tool you need for the job. Here's my rule of thumb (I'm an accountant for context) :
Then you need to have an idea of what is the final results and what steps you need to get there. Since this is the PowerQuery sub, here's the most basic prompt you can use by copying and inputing code from the advanced editor in PQ :
"Lets write a PowerQuery tool together, modify this code :
Works the first time everytime.
I usually do merges and cross queries opererations by hand.
Also works with excel, especially If you have a lot of conditionnal to input in an "IF".
Idk how to explain better without a specific use case. The idea is to write the code in natural language and have GPT 5 translate it into m-code, excel formulas, Python...