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
Anonymous
Not applicable

SQL Code with Multiple Charts

I am trying to import SQL data into Power BI. The code that I have creates several different tables (see picture below). Is there a way to insert all of these tables into one query?

 

mohlensehlen_0-1594761876240.png

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

You can select multiple tables one time.

sql.PNG

 

 

Best Regards,

Icey

 

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

5 REPLIES 5
parry2k
Super User
Super User

@Anonymous why not create a view in sql server and combine all that there and then use view in power bi.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k I was hoping to get each table created within SQL to create its own table in Power BI. If I combined them in SQL, then it would not come in that way I believe..

Icey
Community Support
Community Support

Hi @Anonymous ,

 

You can select multiple tables one time.

sql.PNG

 

 

Best Regards,

Icey

 

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

Anonymous
Not applicable

@Icey Do you know how to get to that navigation pane with SQL Server as the source? Or is that pane just available when getting data from an Excel source?

Icey
Community Support
Community Support

Hi @Anonymous ,

 

The screenshot I posted is the navigation pane with SQL Server as the source.

You can refer to these documents to connect to SQL Server:

Connect Power BI to SQL Server;

Refresh data from an on-premises SQL Server database.

 

 

Best Regards,

Icey

 

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

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.