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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Fill Down the Succeeding Rows

Here's what my data looks like.

 

Column AColumn B
DivisionA 
EmployeeNameAxxxx
 xxxx
 xxxx
 xxxx
EmployeeNameBxxxx
 xxxx
EmployeeNameCxxxx
 xxxx
 xxxx
DivisionB 
EmployeeNameDxxxx
 xxxx
 xxxx
EmployeeNameExxxx
 xxxx

 

Here's what my desired table should look like:

 

Column AColumn BColumn C
DivisionAEmployeeNameAxxxx
DivisionAEmployeeNameAxxxx
DivisionAEmployeeNameAxxxx
DivisionAEmployeeNameAxxxx
DivisionAEmployeeNameBxxxx
DivisionAEmployeeNameBxxxx
DivisionAEmployeeNameCxxxx
DivisionAEmployeeNameCxxxx
DivisionAEmployeeNameCxxxx
DivisionBEmployeeNameDxxxx
DivisionBEmployeeNameDxxxx
DivisionBEmployeeNameDxxxx
DivisionBEmployeeNameExxxx
DivisionBEmployeeNameExxxx

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

You can achieve it in Power Query, try this query:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcsksyyzOzM9zVNJRUorViVZyzS3Iya9MTfVLzE0FCVYAAViCGDayZidiFDkTYyrMjU7Y3OhCqrtcsSqKBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Column A" = _t, #"Column B" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column A", type text}, {"Column B", type text}}),
    #"Replaced Value" = Table.ReplaceValue(#"Changed Type","",null,Replacer.ReplaceValue,{"Column A", "Column B"}),
    #"Added Custom" = Table.AddColumn(#"Replaced Value", "Custom", each if [Column B] = null then [Column A] else null, type text),
    #"Filled Up" = Table.FillUp(#"Added Custom",{"Column B"}),
    #"Filled Down" = Table.FillDown(#"Filled Up",{"Custom"}),
    #"Renamed Columns" = Table.RenameColumns(#"Filled Down",{{"Custom", "Column A"}, {"Column B", "Column C"}, {"Column A", "Column B"}}),
    #"Reordered Columns" = Table.ReorderColumns(#"Renamed Columns",{"Column A", "Column B", "Column C"}),
    #"Filtered Rows" = Table.SelectRows(#"Reordered Columns", each ([Column B] <> "DivisionA" and [Column B] <> "DivisionB")),
    #"Filled Down1" = Table.FillDown(#"Filtered Rows",{"Column B"})
in
    #"Filled Down1"

vyingjl_0-1631774066540.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

You can achieve it in Power Query, try this query:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcsksyyzOzM9zVNJRUorViVZyzS3Iya9MTfVLzE0FCVYAAViCGDayZidiFDkTYyrMjU7Y3OhCqrtcsSqKBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Column A" = _t, #"Column B" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column A", type text}, {"Column B", type text}}),
    #"Replaced Value" = Table.ReplaceValue(#"Changed Type","",null,Replacer.ReplaceValue,{"Column A", "Column B"}),
    #"Added Custom" = Table.AddColumn(#"Replaced Value", "Custom", each if [Column B] = null then [Column A] else null, type text),
    #"Filled Up" = Table.FillUp(#"Added Custom",{"Column B"}),
    #"Filled Down" = Table.FillDown(#"Filled Up",{"Custom"}),
    #"Renamed Columns" = Table.RenameColumns(#"Filled Down",{{"Custom", "Column A"}, {"Column B", "Column C"}, {"Column A", "Column B"}}),
    #"Reordered Columns" = Table.ReorderColumns(#"Renamed Columns",{"Column A", "Column B", "Column C"}),
    #"Filtered Rows" = Table.SelectRows(#"Reordered Columns", each ([Column B] <> "DivisionA" and [Column B] <> "DivisionB")),
    #"Filled Down1" = Table.FillDown(#"Filtered Rows",{"Column B"})
in
    #"Filled Down1"

vyingjl_0-1631774066540.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Fill down is possible in Power Query like excel, But this division row is a data clean up problem, I doubt an easy way

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.