Forum Discussion
Anonymous
1 year agoNot applicable
Remove duplicates but keep nulls
I am having an issue while attempting to remove duplicates but keeping nulls. The ID column has both duplicates and nulls. I need to remove the duplicate values but keep the null IDs. I am trying to ...
- 1 year ago
let Source = Table.Combine({Master, Budget}), ChangedType = Table.TransformColumnTypes(Source,{{"ID", type text}}), GroupedRows = Table.Group(ChangedType, {"ID"}, {{"T", each if [ID]{0} = null then _ else Table.FirstN(_, 1), type table}}), CombinedT = Table.Combine(GroupedRows[T]) in CombinedT
Anonymous
1 year agoNot applicable
Thank you. Another issue is in my actual file the column known as "ID" is actually named "CER #". How would this change the code?
Anonymous
1 year agoNot applicable
I was able to find a work around by changing the column name to just "CER".