Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have been working on a Power BI report using DirectQuery.
Due to constant issues with "Incorrect Syntax Near..." errors, we are considering switching to Import mode.
I really like the idea of DirectQuery. This would help us work with a large database changes frequently. Additionally, it will keep the size of the Power BI small.
I am looking for references, blogs or courses that address the following questions. I have been through two courses on Power BI in Udemy. Both are good and worthwhile.
The questions I have are below.
Solved! Go to Solution.
@MDKCLIRResearch - do you use DAX Studio? DAX Studio - The ultimate client tool for working with DAX queries
This tool give you visibility over the Direct Query executed by Power BI. This will help you to see the SQL created. This code can be run with performance benchmarks in Dax Studio and also copied to SSMS to check performance.
This may help you to identify bottlenecks in either the Direct Query code created by Power BI or the SQL code in you database views. The final bottleneck is the delay caused by the Data Gateway.
I wondering why you want Order By to be performed in SQL. I am thinking that the Execution Plan generated creates an expense. Ordering might be last step and potentially performed in the Power BI client rather than the server. In fact you may find that the data is order twice, once in SQL by the Server DB and once in Power BI.
I don't think you should include any M transformation in your Power BI Direct Query. Just connect to tables, views and there related views.
I will always recommend importing the data into Power BI because it is optimised for reporting. SQL is not optimised for reporting. You may also want to consider options for incremental loads and hybrid tables to refresh the data more frequently.
@MDKCLIRResearch - do you use DAX Studio? DAX Studio - The ultimate client tool for working with DAX queries
This tool give you visibility over the Direct Query executed by Power BI. This will help you to see the SQL created. This code can be run with performance benchmarks in Dax Studio and also copied to SSMS to check performance.
This may help you to identify bottlenecks in either the Direct Query code created by Power BI or the SQL code in you database views. The final bottleneck is the delay caused by the Data Gateway.
I wondering why you want Order By to be performed in SQL. I am thinking that the Execution Plan generated creates an expense. Ordering might be last step and potentially performed in the Power BI client rather than the server. In fact you may find that the data is order twice, once in SQL by the Server DB and once in Power BI.
I don't think you should include any M transformation in your Power BI Direct Query. Just connect to tables, views and there related views.
I will always recommend importing the data into Power BI because it is optimised for reporting. SQL is not optimised for reporting. You may also want to consider options for incremental loads and hybrid tables to refresh the data more frequently.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.