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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fuxit
Frequent Visitor

Custom SQL from script

Hello,

 

I know that I can connect to an SQL Server and use expand "Advanced options" to input a SQL query to pull in the data that I want. Would it also be possible to provide a link to an SQL script instead of input a SQL query so that I could manage the query centrally from outside of PowerBI?

 

Best regards,

Jens

1 ACCEPTED SOLUTION
2 REPLIES 2
simrantuli
Continued Contributor
Continued Contributor

Hi @fuxit ,

 

I don't think you can do that.

But what you can do is create a view in SQL and just use that view in Power BI.

So, whenever you want to modify your query, you can just make the changes in the view in SQL itself. You wouldn't need to edit the same in Power BI.

 

Best Regards

Simran Tuli

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.