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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
walex
New Member

Power BI sql dataset

I have a current Power BI report that was developed my a 3rd party.  The report only brings in some of the sql tables that are in my database.  How do I change the dataset to include all of the tables/views from my sql connection.

 

2 ACCEPTED SOLUTIONS
GilbertQ
Super User
Super User

Hi @walex 

 

You would need to open up the PBIX file and then. go into power query and add the additional tables or views from your SQL connection.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

Anonymous
Not applicable

Hi @walex ,

 

I want to acknowledge valuable input provided by @GilbertQ . Their initial ideas help guide my approach. However, I noticed that more details are needed to fully understand this issue.

 

1. In the power query editor, select advanced editor in the added table, you can see the m language it uses, and you can copy it.

vkaiyuemsft_0-1715224117124.png


2. Select blank query in new source, paste the expression you just copied after the equal sign, and change the table name to the required new table name.

vkaiyuemsft_1-1715224126665.png


Typically, when you connect to a data source and add multiple tables, each table becomes its own query, so the end result of connecting to the data source again and selecting additional tables will be the same as when you originally connected and selected those tables. I guess it depends on your use case. However, if you edit the query and each table is its own query, this doesn't matter at all.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @walex 

 

Thanks for letting people know!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi @walex ,

 

I want to acknowledge valuable input provided by @GilbertQ . Their initial ideas help guide my approach. However, I noticed that more details are needed to fully understand this issue.

 

1. In the power query editor, select advanced editor in the added table, you can see the m language it uses, and you can copy it.

vkaiyuemsft_0-1715224117124.png


2. Select blank query in new source, paste the expression you just copied after the equal sign, and change the table name to the required new table name.

vkaiyuemsft_1-1715224126665.png


Typically, when you connect to a data source and add multiple tables, each table becomes its own query, so the end result of connecting to the data source again and selecting additional tables will be the same as when you originally connected and selected those tables. I guess it depends on your use case. However, if you edit the query and each table is its own query, this doesn't matter at all.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @walex 

 

You would need to open up the PBIX file and then. go into power query and add the additional tables or views from your SQL connection.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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

Top Solution Authors
Users online (1,802)