Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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?
Solved! Go to Solution.
Yes, if you click the gear icon next to the source step, you'll see the original SQL query without the line feed characters:
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?
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
Yes, if you click the gear icon next to the source step, you'll see the original SQL query without the line feed characters:
Thanks so much!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 6 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 18 | |
| 18 | |
| 17 |