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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
vinodpbabu
Regular Visitor

Fetching all the views under a schema, loop through it to apply filtering

Hi,

 

I am trying to fetch all the views under a schema in a database and need to loop through it to apply filtering based on tenantid  and build a navigation table with the result. 

 

I have added the code block which i used to loop through the views under PowerBi Scehma. I need to apply a filtering based on tenantid on these views.

 

Database = OdbcDataSource{[Name = database]}[Data],
        PowerBiTables = Database{[Name = "PowerBi"]}[Data],
        FilteredTables = Table.SelectRows(PowerBiTables, each [Name] <> ""),
 
Can we do something like this
 
FilteredTables = Table.SelectRows(
Table.SelectRows(PowerBiTables, each [Name] <> ""),
each [TenantId] = tenantId
),
I am new to this and any help will be apprecieated.
0 REPLIES 0

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.