Forum Discussion

Taxman's avatar
Taxman
New Member
3 years ago
Solved

Create a column with results based on multiple rows per a grouping ID

This is fairly simple in Excel, which I have more experience with, but I want to make it work in Power Query (using the interface or M code).   I have a dataset with multiple products in Col A.  Ea...
  • wdx223_Daniel's avatar
    3 years ago

    =let a=Table.Group(PreviousStepName,"Product ID",{"n",each if List.Contains([FOUND],"FOUND") then "FOUND" else "NOT FOUND"}) in Table.AddColumn(PreviousStepName,"NewCol",each a{[Product ID=[Product ID]]}[n])