I need direction or exact formula help in power query. I am trying to calculate the sum of columns if condition is true, and bringing the result in new column. The code is Below;
({If [Num] = 1 Then Sum([Column1](Value),[Column3](Value)}),
If Column(Num) equlas 1 then add values in column1 and 3 If Column(Num) = 2 then add values in column2 and column3 Maybe I need to use GroupBy...
In brief what I want to do is use sumif in excel
=if [Column3] = 1 then [Column9] + [Column12] else null
), a running conditional total, fill every cell in the column with the conditional total, or exactly what. – Ron Rosenfeld