Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Create multiple custom columns in power query in single step

Hi,   I have a data set of 20 fields, where I need to create another 10 columns with formla like below   Field 21 = Field 5 * Field 6 Field 22 = Field 5 * Field 7 FIeld 23 = Field 5 * Field 8 ...
  • v-easonf-msft's avatar
    6 years ago

    Hi , Anonymous 

    Each step of your operation in the "Transform Data" can be seen as writing an m_query statement in "Advanced Editor".

    So you can also directly implement what you want in code in addition to using interface button “Custom Column”.

    As shown in the screenshoot  below, you only need to  copy and modify a few lines of code again.

     Then you will  get the desired result as below:

     

    Best Regards,
    Community Support Team _ Eason
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.