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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Евгений
New Member

undefined

Hello world 🙂

 

Please, help me with PBI and SQL server:

i need connected my PBI with SQL server with some specific query - i found how i can connected into my SQL database, but i need use some query, not just table from this server. How can i do this?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@Евгений,

You can write SQL query in the SQL statement textbox as follows when connecting to SQL database in Power BI Desktop.
1.JPG

Regards,
Lydia

View solution in original post

Anonymous
Not applicable

On the screen where you select your SQL server and Database, there is an Advanced Options that can be pressed to review some text boxes.  One of the Text Boxes is "SQL Statement".  I believe that is what you are looking for?

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Евгений,

You can write SQL query in the SQL statement textbox as follows when connecting to SQL database in Power BI Desktop.
1.JPG

Regards,
Lydia

Евгений
New Member


Please, help me with PBI and SQL server:
i need connected my PBI with SQL server with some specific query - i found how i can connected into my SQL database, but i need use some query, not just table from this server.

Anonymous
Not applicable

On the screen where you select your SQL server and Database, there is an Advanced Options that can be pressed to review some text boxes.  One of the Text Boxes is "SQL Statement".  I believe that is what you are looking for?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors