This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Others
Hi - How can we format M-Query syntax in proper way. I searched but couldn't find any reliable answer. Is thery any available Tool like we have for DAX (DAX formatter,others) or we just need to right it the correct way.
Thanks,
Ankit Jain
Solved! Go to Solution.
Hi @AnkitBI
I am not aware of tool like DAX formatter for Power Query/M.
I use help from gridlines in the Advanced Editor to do some code alignments
Same here, would love to see such a tool 😉
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @AnkitBI
I am not aware of tool like DAX formatter for Power Query/M.
I use help from gridlines in the Advanced Editor to do some code alignments
Same here, would love to see such a tool 😉
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
So all these beautifully crafted queries manually 🙂 Thanks for Acknowleging and replying.
Hi all,
even if the post is not the newest - we developed a Power Query Formatter. You find it here
https://powerqueryformatter.com
If offer an API as well if you want to use it on your websites/blogs.
If you find any issues do not hesitate to send a bug report.
Holger
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |