Power Query M code
let
Source = YourTable,
FilledDown = Table.FillDown(Source, {"GroupColumn"})
in
FilledDown
Fills blank cells in a group-header column with the value above them, common in exports where a header only appears once per group.
let
Source = YourTable,
FilledDown = Table.FillDown(Source, {"GroupColumn"})
in
FilledDown
Make sure blank cells are actual nulls, not empty strings, before running Table.FillDown - use the Replace Blank Strings with Null snippet first if needed.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Fill Down Group Headers.