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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abhiram342
Microsoft Employee
Microsoft Employee

Programmatically query power bi dataset using linked server

Hi Team -We would like to query power bi dataset programmatically using DAX . We have set up linked server in SQL Server (( installed sql server on Azure VM) . However , When I click on test connection the connection fails with access error . Can some one please suggest how to fix it or alternative options (( Note / I have looked into executeQueries Api but it doesn't Suppport PBI dataset with RLS. We have RLS in our dataset

 

Thanks,
Abhiram

1 REPLY 1
amitchandak
Super User
Super User

@abhiram342 , Are you able to acess the sql server using sql server management studio on the machine you have power bi. Have you opened the port and done ip whitelisting? 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.