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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cflynn_29
Helper I
Helper I

Fill down Columns based on Column List

I have a table that has quite a few columns and i need to fill down only columns that contain the "RCCD" name.

cflynn_29_0-1674518457015.png

 

So my next step was to use = Table.ColumnNames(#"Promoted Headers1") and it gives me this nice list of Column Names

cflynn_29_1-1674518579127.png

After that i want only the names that conatin "RCCD" in it so i use = List.FindText(Custom7,"RCCD") and it gives me a list of the column names that i want to use to Filldown my table in the #"Promoted Headers1" step.

cflynn_29_2-1674518704071.png

 

However when i get to the step to fill down = Table.FillDown(#"Promoted Headers1",Table.ColumnNames(#"Custom8"))......Custom8 was the preivous step.  It gives me the following error, is there another way to do this?

cflynn_29_3-1674518801000.png

 

And heres the MCode for that sequence:

#"Promoted Headers1" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),
Custom7 = Table.ColumnNames(#"Promoted Headers1"),
Custom8 = List.FindText(Custom7,"RCCD"),
Custom9 = Table.FillDown(#"Promoted Headers1",Table.ColumnNames(#"Custom8")),

 

 

Any help would be great

 

TY

1 ACCEPTED SOLUTION
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @cflynn_29 - you don't need to include the Table.ColumnNames function because "Custom8" is a list.

 

#"Promoted Headers1" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),
Custom7 = Table.ColumnNames(#"Promoted Headers1"),
Custom8 = List.FindText(Custom7,"RCCD"),
Custom9 = Table.FillDown(#"Promoted Headers1", #"Custom8" )

View solution in original post

1 REPLY 1
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @cflynn_29 - you don't need to include the Table.ColumnNames function because "Custom8" is a list.

 

#"Promoted Headers1" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),
Custom7 = Table.ColumnNames(#"Promoted Headers1"),
Custom8 = List.FindText(Custom7,"RCCD"),
Custom9 = Table.FillDown(#"Promoted Headers1", #"Custom8" )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.