Forum Discussion

TungNguyen_19's avatar
TungNguyen_19
Helper III
2 years ago
Solved

How to Fill up or down base on ID column in Power Query?

Dear everyone,

I have this table after Pivot 

 

IDLOLO BARGETRUCKING
AMFU301452null33null
AMFU3014528nullnull
BMOU30311314nullnull
BMOU303113null66null
BMOU303113nullnull138

 

How to Fill up or Fill down base on ID column in Power Query? The result will be like this:

 

IDLOLO BARGETRUCKING
AMFU301452833null
AMFU301452833null
BMOU3031131466138
BMOU3031131466138
BMOU3031131466138

 

In power query we only have option Fill down or Fill up only so I think this must be customized by M Language. Can anyone help me, many thanks to you guys ❤️ 

  • Group By ID and then Operation All Rows.

     

    Change the each _ part of the formula to

    each Table.FillDown(Table.FillUp(_,Table.ColumnNames(_)),Table.ColumnNames(_))

     

     

     

1 Reply

  • Group By ID and then Operation All Rows.

     

    Change the each _ part of the formula to

    each Table.FillDown(Table.FillUp(_,Table.ColumnNames(_)),Table.ColumnNames(_))