Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Filter Out a Column Value Identical in Name with Another Value in the Same Column

Hi and appreciate some Power Q help. I want to filter out the bottom three rows to just show the top three rows re Indigenous status, including the ‘Not Stated’ row on the third row. However I’m not ...
  • wdx223_Daniel's avatar
    4 years ago

    NewStep=Table.FromRecords(List.Accumulate(Table.ToRecords(PreviousStepName),{{},[]},(x,y)=>{if Record.HasField(x{1},y[Category]) then x{0} else x{0}&{y},if y[Indigenous Status]<>"Not Stated" or Record.HasField(x{1},y[Category]) then x{1} else x{1}&Record.AddField([],y[Category],"")}){0})