Forum Discussion

kmatveyko's avatar
kmatveyko
Frequent Visitor
4 years ago
Solved

Table.Distinct with the condition in PowerQuery

Hi,   I have a problem with PowerQuery. So, I need to apply Distinct function in my table.   But with one condition: repeatable values should be deleted if their value is greater than 0.   Plea...
  • RenaudOne's avatar
    RenaudOne
    3 years ago

    this should work

    Table.FromRows(List.Distinct(Table.ToRows(Source),each if _{0}=0 then Text.NewGuid() else _{0}))