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
Hello All,
Can anyone please help me understand how the SQL statement generated When using Direct Query. Is Power BI is creating the SQL Statement based on the visuals and conditions we apply in report or the direct query connector creates the query depends on the database.
We are connecting TDV Studio using custom connector. TDV Studio has request log where it will store the SQL Query request from Power BI. Facing a lot of issues in SQL Query generated by Power BI like missing paranthesis, missing/incorrect alias name. Please help me whether the SQL Query generated in Power BI or Custom connector. How can i get the query log in Power BI.
I would appreciate any suggestions
Thank you!!
Solved! Go to Solution.
Hi @manojsv16 ,
You can use DAX studio to check the query. Please refer to this third - party bolg. Or you can use sql profiler to work on it.
Hi @manojsv16 ,
You can use DAX studio to check the query. Please refer to this third - party bolg. Or you can use sql profiler to work on it.
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 |
|---|---|
| 26 | |
| 23 | |
| 19 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 46 | |
| 44 | |
| 43 | |
| 36 | |
| 31 |