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,
I have a data ETL running into Azure SQL on a Fabric pipeline and dataflow gen2.
In the power query (dataflow gen2) i run a query against the SQL table for as below:
chk = Sql.Database("xxxx.database.windows.net", "DB Name", [Query="SELECT * FROM endpoints WHERE freq '1'"]),
I'm looking at migrating to the Fabric data warehouse and updating the dataflows to save to the data warehouse instead of SQL.
I can call the Fabric data warehouse table as a data source in the data flow with no problem:
tmp = Fabric.Warehouse([]){[workspaceId = "xxxxx"]}[Data]{[warehouseId = "xxxxxxx"]}[Data]{[Schema = "dbo", Item = "Endpoints"]}[Data]
but when i try run a select query against it like i can with the SQL data source:
tmp = Fabric.Warehouse([]){[workspaceId = "xxxxx"]}[Data]{[warehouseId = "xxxxxxx"]}[Data]{[Schema = "dbo", Item = "Endpoints"]}[Data]{[Query="SELECT * from endpoints where freq = '1'"]},
it returns the error below
Expression.Error: The key didn't match any rows in the table.
Details
Reason = Expression.Error
Key = [Query = "SELECT * from Endpoints where freq = '1'"]
Is it possible to run a select against the Fabric datawarehouse in power query as i can with sql? If so then what is the required syntax to do this.
Thanks in advance
Solved! Go to Solution.
found it - just need to use the SQL connection string and not the data warehouse connector.
found it - just need to use the SQL connection string and not the data warehouse connector.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
12 | |
12 | |
12 |