Forum Discussion
Anonymous
4 years agoNot applicable
Copy column in Power Query based on condition
Hi, I have a dataset similar to the below. Supervisor Area Block Alan 1 1A Marc 2 1B Alan 3 1C John 4 1C Fred 5 2 Fred 5 4 I want to create a new col...
- 4 years ago
you could edit the code in Advanced Editor. put the basic logic in using the Conditional Column functionality and then edit the code that is generated to add in any additional logic you need.
johnt75
4 years agoSuper User
In power query editor go to the Add Column tab and select Conditional Column. You can put your logic in there.
Anonymous
4 years agoNot applicable
After playing around with the conditional column function, I do not see how this can be achieved due to the 'Else if' section not supporting 'and' statements.
Any ideas?
- johnt754 years agoSuper User
you could edit the code in Advanced Editor. put the basic logic in using the Conditional Column functionality and then edit the code that is generated to add in any additional logic you need.