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
Hi all,
I have a team of Power BI developers who all come from a SQL background and are struggling to understand the possibilities of M for making complex queries from SQL databases. Their standard practice is to dump enormous SQL queries in at the very beginning of their table query and then do a few M transformations, which is putting us in a worst of all worlds situation where our queries can't fold.
I know that when you write M to query a SQL source, you can then use Native Query to see the SQL that is actually being sent to the database. What I would love to find, but have not been able to, is a tool that would do the opposite - that could take a given SQL statement and convert it into M, so that we could work towards doing all of our transformations in M and then fold that query back. Has anyone heard of such a thing?
Not yet, as far as I know.
This sounds much like a cross between a cultural and communication issue.
What is true:
Yes, the ideal would be that these developers would be able to create views on the database that contain the results of their statements, which we could then just bring in as SELECT *. Unfortunately for reasons beyond my control that's not the case, so I'm scrounging for alternate solutions that could at least fold up to the database and enable incremental refresh instead of the worst-case scenario we're in now.
Add charge-back system for rework for every time performance becomes an issue 🙂
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.