Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.