Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone.
I have a SQL Server database that contains more than 20,000 tables. I need to connect from Power BI Desktop to that database but I want to be able to filter the selection of the necessary tables for those starting with a certain prefix, for example, those starting with CUST *.
How can I specify this initial filter so that I can subsequently select the tables I need without having to load all the tables of the database before in the Navigator screen?
Thanks a lot!!!
Solved! Go to Solution.
Hi @Raul,
Please refer to below steps to filter the tables which stored in database.
Steps:
1. Connect to a database.
2. Add a filter on 'Name' column and modify the filter formula to use 'Text.StartsWith' function.(For your scenario, you should use "CUST " as keyword to filter.)
Full query:
let Source = Sql.Databases("xxxxx"), #"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Name],"D")) in #"Filtered Rows"
BTW, please not connect too many table at one time. Large amount of tables may affect the performance and system resources.
Regards,
Xiaoxin Sheng
Hi @Raul,
Please refer to below steps to filter the tables which stored in database.
Steps:
1. Connect to a database.
2. Add a filter on 'Name' column and modify the filter formula to use 'Text.StartsWith' function.(For your scenario, you should use "CUST " as keyword to filter.)
Full query:
let Source = Sql.Databases("xxxxx"), #"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Name],"D")) in #"Filtered Rows"
BTW, please not connect too many table at one time. Large amount of tables may affect the performance and system resources.
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |