The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have noticed that the SQL that PowerBI generates is not that hot with regards to joins etc (slow to load) ....
We have rewritten the code it outputed to make it quicker.
Does having a Calculate measure affect the SQL that is generated from PowerBI and if so is it then better to try and do the calculate in SQL or ar measures handled on the data that is retrieved from the Server?
Thanks
Chris
Hi @Anonymous,
In DirectQuery mode, by default, measures are restricted to simple measures that are unlikely by themselves cause any performance issues. If enable Allow unrestricted measures in DirectQuery mode, the complicate measure may cause the performance issue.
You should import data to Power BI wherever possible. This takes advantage of the high performance query engine of Power BI, and provides a highly interactive and fully featured experience over your data. If import mode can't meet the requirement, then choose DirectQuery. But some expressions that perform well when the data is imported may result in very slow queries to the backend source when in DirectQuery mode. For detail information, you can go through this article: Power BI and DirectQuery.
Best Regards,
Qiuyun Yu
I have noticed that the SQL that PowerBI generates is not that hot with regards to joins etc (slow to load) ....
We have rewritten the code it outputed to make it quicker.
Does having a Calculate measure affect the SQL that is generated from PowerBI and if so is it then better to try and do the calculate in SQL or ar measures handled on the data that is retrieved from the Server?
Thanks
Chris
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
101 | |
81 | |
62 | |
54 |
User | Count |
---|---|
249 | |
119 | |
115 | |
94 | |
70 |