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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Ad550
Frequent Visitor

Get queries from data flow

Looking for a way to extract queries from data flows from PowerBI without keeping the formatted text that is pasted on there.   When I try to simply copy and paste the query from the dataflow there are all different sorts of "#lf"s for example that are inherent to the format.   Any way to extract just the raw queries?

1 ACCEPTED SOLUTION
otravers
Community Champion
Community Champion

Yes, if you click the gear icon next to the source step, you'll see the original SQL query without the line feed characters:

otravers_0-1675608074183.png

 

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

View solution in original post

4 REPLIES 4
otravers
Community Champion
Community Champion

Is your spoiler block meant to include a screenshot? It looks blank when I expand it.

 

Are you talking about native SQL queries in your dataflow's M code?

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

Yes, I'm talking about how when a query is inserted into a data flow and I then view the query's within the "edit tables" interface of the data flow,  I am unable to see the native queries but only the queries with the data flow formatted characters inserted.  Is there any away I can view the queries without the data flow formatted characters once they're in the data flow?

 

thanks 

otravers
Community Champion
Community Champion

Yes, if you click the gear icon next to the source step, you'll see the original SQL query without the line feed characters:

otravers_0-1675608074183.png

 

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

Thanks so much!  

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors