Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AnkitBI
Solution Sage
Solution Sage

How to Format M Query Syntax

@ImkeF  

@Zubair_Muhammad 

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

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

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


Regards
Zubair

Please try my custom visuals

View solution in original post

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

View solution in original post

4 REPLIES 4
Zubair_Muhammad
Community Champion
Community Champion

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


Regards
Zubair

Please try my custom visuals

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

@ImkeF  @Zubair_Muhammad 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors