Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have queried a database. I have used the Table.IsEmpty in a if statement. Thus restricting my data pull to only tables that actually contain data. (Also, if a new table is used it will show up on the next refresh). My question is, how do I tell Power BI to import each table as a separate query? I do NOT want them all merged together.
let
Source = Sql.Database("server", "database", [CreateNavigationProperties=false]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each if Table.IsEmpty([Data]) then "Empty" else "Has Data"),
#"Filtered Rows" = Table.SelectRows(#"Added Custom", each ([Custom] = "Has Data")),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Custom", "Kind"})
in
#"Removed Columns"
I appreciate any suggestions
Hi @excelmjr,
>>My question is, how do I tell Power BI to import each table as a separate query?
Nope, current power query not contains these features, I think you need to manual add them to new queries.
Regards,
Xiaoxin Sheng
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
78 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |