let
Source = Excel.CurrentWorkbook(){[Name="your_table"]}[Content],
#"Duplicated Column" = Table.DuplicateColumn(Source, "Date", "Date - Copy"),
#"Changed Type" = Table.TransformColumnTypes(#"Duplicated Column",{{"Date - Copy", Int64.Type}}),
#"Replaced Errors" = Table.ReplaceErrorValues(#"Changed Type", {{"Date - Copy", 99}}),
#"Added Conditional Column" = Table.AddColumn(#"Replaced Errors", "Month", each if [#"Date - Copy"] = 99 then [Date] else null),
#"Filled Down" = Table.FillDown(#"Added Conditional Column",{"Month"}),
#"Filtered Rows" = Table.SelectRows(#"Filled Down", each [#"Date - Copy"] <> 99),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Date - Copy"})
in
#"Removed Columns"