Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
using power query how can we load multiple tables from Database starting with 'A'
Solved! Go to Solution.
The simpliest way it two create Query that connects to the Database, then filter text.
let
Source = Sql.Databases("Server", "Database"),
#"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Item], "a") or Text.StartsWith([Item], "A"))
in
#"Filtered Rows"
You will be left with a list of tables starting with a or A. Note Power Query is case sensitive.
Next you can use the "Add as New Query" to open each table separately and load them to Power BI.
Otherwise you might try the search feature in the Navigator Screen when connecting to the database. But this more of a wildcard search than start with, and would include the schema table as well.
@Daryl-Lynch-Bzy But at the first step it is loading the whole database like functions, procs, and tables and it might break the power bi file. But my problem is that I wanted to only load filtered table not full database.
Thank you very much 😀😀😀
The simpliest way it two create Query that connects to the Database, then filter text.
let
Source = Sql.Databases("Server", "Database"),
#"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Item], "a") or Text.StartsWith([Item], "A"))
in
#"Filtered Rows"
You will be left with a list of tables starting with a or A. Note Power Query is case sensitive.
Next you can use the "Add as New Query" to open each table separately and load them to Power BI.
Otherwise you might try the search feature in the Navigator Screen when connecting to the database. But this more of a wildcard search than start with, and would include the schema table as well.
@Daryl-Lynch-Bzy But at the first step it is loading the whole database like functions, procs, and tables and it might break the power bi file. But my problem is that I wanted to only load filtered table not full database.
Note the first step is not loading the database, it is viewing the metadata about the database. You can filter this view by using any columns (except for the [Data] column). This Query (i.e. Query13) can be stored excluded from Load.
When you click on the blue Table in the [Data] column, it will load that table into Power Query or Power BI.
Given the number of names on the images above, it may not be effective to Load them individually in separate queries. Especially, if the underlying tables are the same. Do the underlying tables have a column with the Table Name?
Hi @Wani_Muneer - yes, but it depends what you mean by load. Do you want to load each one separately or do you want to combine these tables into a single table?
we want to load each table separately.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 5 | |
| 4 | |
| 4 |