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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mic1979
Post Partisan
Post Partisan

List with all the names in a group

Hello,

 

I have my tables in group as in the picture:

 

Mic1979_0-1746947088471.png

 

What I am doing now it to get a list of all the table names in the group in this way:

 

let
Source = Excel.Workbook(Web.Contents("https://emerson.sharepoint.com/sites/1058573_Car-washManifold/Shared%20Documents/10_Project_Manageme..."), null, true),
TableNames = Table.SelectRows ( Source, each [Kind] = "Table" )[[Name]],
#"Filtered Rows" = Table.SelectRows(TableNames, each ([Name] = "Box" or [Name] = "Clip" or [Name] = "Coil" or [Name] = "CoreTube_SubAssy" or [Name] = "Core_SubAssy" or [Name] = "Cover" or [Name] = "IM_Sheet" or [Name] = "ORing1" or [Name] = "PlasticBody_SubAssy" or [Name] = "Screw1" or [Name] = "Spring1" or [Name] = "Terminal_Protection"))
in
#"Filtered Rows"

 

Is it possible to make this list dinamically, with all the tables included in the group Components BOM?

 

Thanks.

1 ACCEPTED SOLUTION
sanalytics
Super User
Super User

@Mic1979 
Not as a list.. But you can get the all the Table name in one place by using #shared keyowrd..
Below is the code

let
    Source = #shared,
    #"Converted to Table" = Record.ToTable(Source),
    #"Filtered Rows" = Table.SelectRows(#"Converted to Table", each Value.Is([Value],Table.Type))
in
    #"Filtered Rows"

screenshot

sanalytics_0-1746962855995.png

from here, you will have to use your brain and logic how to provide the group name of each table.

 

Hope it helps

 

Regards

sanalytics

View solution in original post

2 REPLIES 2
sanalytics
Super User
Super User

@Mic1979 
Not as a list.. But you can get the all the Table name in one place by using #shared keyowrd..
Below is the code

let
    Source = #shared,
    #"Converted to Table" = Record.ToTable(Source),
    #"Filtered Rows" = Table.SelectRows(#"Converted to Table", each Value.Is([Value],Table.Type))
in
    #"Filtered Rows"

screenshot

sanalytics_0-1746962855995.png

from here, you will have to use your brain and logic how to provide the group name of each table.

 

Hope it helps

 

Regards

sanalytics

Hello @sanalytics 

 

in fact I designed properly the source table, and then I applied a proper filter.

 

TableNames = Table.SelectRows ( Source, each ([Kind] = "Table" )),
#"Filtered Rows" = Table.SelectRows(TableNames, each Text.Contains([Name], "Breakdown")),

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors