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
UsePowerBI
Post Prodigy
Post Prodigy

Is it possible to export a Connection including the Power Query code?

Hello

 

The Export Connection feature seems to output a connection but it misses out all the Power Query processing steps.

 

Is there a way to export the complete Query in a notepad-editable format?

 

Thanks!

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @UsePowerBI ,

 

You may refer to this blog to check the DataMashup File

Eyelyn9_0-1633328812211.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

edhans
Super User
Super User

You can right-click on the query and press COPY, then PASTE into Notepad. THat will paste that query and all precedent queries it depends on as text.

But no way to automate that that I am aware of. other than some C scripts in Tabular Editor.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

@edhans  that works thanks!

 

However, I was looking at a combination of the odc xlm plus the Power Query code in one file! Is that possible?

Not that I am aware of.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
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
Top Kudoed Authors