A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
This M code works
let
Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Item", type text}, {"01-01-2024", Int64.Type}, {"01-02-2024", Int64.Type}, {"01-03-2024", Int64.Type}, {"01-04-2024", Int64.Type}, {"01-05-2024", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each List.Count(List.Select(List.Skip(Record.ToList(\_),1), each \_>0)))
in
#"Added Custom"
Hope this helps.