Forum Discussion
Syndicate_Admin
2 years agoAdministrator
Fill empty cell with value contained within the same column but with a condition within another colum
Hello everybody, I'm starting my journey with PowerQuery and I'm currently facing an issue that could be solved with your suuport. I have a table containing various requests (column id). Some...
Syndicate_Admin
2 years agoAdministrator
Hello,
Thanks for your quick answer.
After some adjustments to fit with my source file, it works perfectly :).
Now I have to adapt it to a bigger db !
Thanks a lot for your support :)!
Rémi
- AlienSx2 years agoSuper User
Great! By I should have started with something simple. Like Table.Group and Table.FillUp (or FillDown). Try this:
let Source = your_table, #"Grouped Rows" = Table.Group( Source, "parent_id", {{"rows", each Table.FillUp(Table.Sort(_, "DATA"), {"DATA"})}}), #"Expanded rows" = Table.ExpandTableColumn(#"Grouped Rows", "rows", {"id", "DATA"}) in #"Expanded rows"