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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Spigaw
Helper II
Helper II

Export a readable documentation of all queries and steps

Hello dear queriers,

 

Since I began working with Power Query and PBI, I have been looking for an easy way to export what is happening in all the queries and steps they contain, in a format that would be easily readable by anyone needing to use or edit it. I would then be able to create a full documentation.

 

I tried copying the code from the advanced editor into a Word document, but formatting disappears.

 

Is there any way to export a documentation from Power Query?

 

Thanks in advance for any help.

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

AFAIK, there is no official format of PQ snippet, after all, the M is so far not as widely used as sql or html. But some guru has develop this formatter worth trying:

Power Query Formatter | Beautify your Power Query code


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

To copy out the text of all your queries:

  1. Open Power Query Editor
  2. Select all the queries in the Queries area
  3. Right-click->Copy
  4. Paste into an editor (MS Word, Notepad, MS Code etc.)
AlexisOlson
Super User
Super User

Just in case you weren't aware, you can select all of your queries at the same time and copy and paste them into a text editor (or another Power Query editor) all at once.

CNENFRNL
Community Champion
Community Champion

AFAIK, there is no official format of PQ snippet, after all, the M is so far not as widely used as sql or html. But some guru has develop this formatter worth trying:

Power Query Formatter | Beautify your Power Query code


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Excellent tool, thanks for the link. Here is how I will work with this:

  • Format my code with Power Query Formatter
  • Convert it to a readable format with this from Pinetool
  • Paste it into Word.

 

Spigaw_0-1639397206816.png

 

 

Thank you so much!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors