Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I have created a query in a datamart on Power BI Service, but am not sure how to access it on Power BI Desktop. The first image is the list of tables and the sql query I wrote that combines info from said tables. The second image is what pulls up when I connect to the datamart (in the form of a sql server database) on power bi desktop. The list of available tables does not contain my query "ConnectViolationsReport".
Is it possible to access my query from Power BI Desktop? Or is it possible to write the same SQL query somewhere in Power BI desktop? I know when you select SQL Server as a datasource it gives you an option to write the query there, but I am not sure what the name of the database would be as this is a datamart.
Any help is greatly appreciated, thanks!
Solved! Go to Solution.
You can't see SQL queries from an external SQL server in Power BI Desktop, you can only see their result if the query results in a view/table. (You currently can't define SQL views in Datamarts.)
You can add a SQL statement to your Source step in Power BI Desktop provided you connect via the Sql.Database connector and not the PowerBI.Datamarts connector. Connect to your SQL endpoint via SSMS to find your database name as it's needed for the SQL connector to work.
See this entry for further details:
https://www.oliviertravers.com/power-bi-datamarts-sql-server-desktop-tools-connection/
You can't see SQL queries from an external SQL server in Power BI Desktop, you can only see their result if the query results in a view/table. (You currently can't define SQL views in Datamarts.)
You can add a SQL statement to your Source step in Power BI Desktop provided you connect via the Sql.Database connector and not the PowerBI.Datamarts connector. Connect to your SQL endpoint via SSMS to find your database name as it's needed for the SQL connector to work.
See this entry for further details:
https://www.oliviertravers.com/power-bi-datamarts-sql-server-desktop-tools-connection/
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
23 | |
17 | |
10 | |
8 | |
8 |
User | Count |
---|---|
39 | |
27 | |
18 | |
15 | |
14 |