I have quite a large dataset where I need to compile a column based on its cell values.
an example of the data is below:
I'm trying to:
- Merge all rows in the column 'Product' that only have the value 'AccountsA'
- The numerical values need to be summed for 'AccountsA' when merged
- The 'Product_Type' values differ and can be replaced with 'A' when merged for 'AccountsA'
My first thought was to use an if statement but I don't know if this is possible when grouping in powerquery and I'm struggling to find any examples online.
The outcome I'm trying to achieve is shown below (using the above example):
Any help would be appreciated. Thank you.



