The delta column in PowerQuery is calculated for you if you have two columns, Date and Name. None of the other columns are necessary for you.
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"Name", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type","Delta", (x)=>
if x[Date]=Date.From(List.Min(#"Changed Type"[Date])) then 0 // results for first dates on list
else 1-Table.RowCount(Table.SelectRows(#"Changed Type", each Date.AddDays(Date.StartOfMonth(x[Date]),-1)=[Date] and [Name]=x[Name])))
in #"Added Custom"