Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Power Query M Code Management Best Practice?
The first time I clicked on the Advanced Editor in Power Query my eyes glazed over. What in the world am I even looking at? Once it I realized each line of code corresponded to one step in Power Query Applied Steps things got a lot better - fast.
As I spent more time working on M code a few things stood out to me:
Enter Visual Studio Code (VSC). VSC is a free open source code editing tool that has embedded Git, supports debugging, syntax highlighting and intelligent code completion. VSC has a module for Power Query/M Code!
With VSC, I can easily:
In short, I use VSC to be more consistent and efficient in my Power Query development. This helps reduce the time to prepare and import data into Power BI and build the data model. All with the peace of mind of having my hard work backed up safely. To me, this feels like a best practice.
I highly recommend taking a look at VSC to help you manage your Power Query M Code!
Good points, especially the version control/collaboration part.
Doesn't really seem to help with formatting (use powerqueryformatter.com ) or with documenting your code (for that you need to be disciplined and add the boilerplate meta code manually).
What I don't userstand is the connection to Power BI Desktop, or the lack thereof. Correct me if I am wrong but I don't think VSC can open .pbix files or work with the XMLA endpoint?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 63 | |
| 31 | |
| 30 | |
| 23 |