In this insightful session, Manuel Quintana from Pragmatic Works explores how to optimize Power BI performance when working with Microsoft Dataverse by leveraging T-SQL and DirectQuery. The video walks through common challenges, practical workarounds, and a powerful alternative using SQL Server Management Studio (SSMS).
Dataverse is a robust relational storage engine within the Power Platform, often used for storing both system and custom tables. However, when connecting Dataverse to Power BI using the default connector, users may encounter performance issues—especially with complex tables containing hundreds of columns and polymorphic relationships.
Manuel demonstrates how to bypass the preview error by manually editing the Power Query M code:
Table.SelectColumns to specify only the needed fields (e.g., fullname and systemuserid).To further streamline the process, Manuel introduces the Tabular Data Stream (TDS) endpoint—a feature that allows users to connect to Dataverse using SQL tools like SSMS.
Manuel walks through a real-world example: retrieving a list of users, their teams, and assigned security roles. This involves joining five tables using SQL, which is significantly easier and faster in SSMS compared to Power BI’s default interface.
This session highlights the power of combining Dataverse with T-SQL for enhanced performance and flexibility in Power BI. Whether you're dealing with complex system tables or simply want more control over your queries, enabling the TDS endpoint and using SSMS can be a game-changer.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power BI and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.