Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
shaunmw
Frequent Visitor

Query fabric data warehouse

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

 

1 ACCEPTED SOLUTION
shaunmw
Frequent Visitor

found it - just need to use the SQL connection string and not the data warehouse connector.

View solution in original post

1 REPLY 1
shaunmw
Frequent Visitor

found it - just need to use the SQL connection string and not the data warehouse connector.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.