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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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