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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

v-kaiyue-msft
Community Support
Community Support

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

v-kaiyue-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors