Pasadu
Please next time, attach a sample file, It takes time to make a file to test, which we can use on other problems
Assuming your data is in A1:
in B2: =IFERROR(INDEX($A$2:$A$10, MATCH(0, INDEX(COUNTIF($B$1:B1, $A$2:$A$10), 0, 0), 0)), "")
Copy down
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Removed Duplicates" = Table.Distinct(Source)
in
#"Removed Duplicates"
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Grouped Rows" = Table.Group(Source, {"SHIPPING ORDER NUMBER"}, {{"Data", each Table.RowCount(Table.Distinct(_)), Int64.Type}}),
#"Removed Columns" = Table.RemoveColumns(#"Grouped Rows",{"Data"})
in
#"Removed Columns"