Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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
...
Is there a quick way to do this in Power Query without manually adding 10 steps?
Thank you for your help!
Solved! Go to Solution.
Hi , @varutvu
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.
Hi , @varutvu
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.
@varutvu , You can add column-like, faster way? Maybe just add to source script
Field 21 = [Field 5] * [Field 6]
@varutvu - Huh, that's a good one. I'm not aware of a way but if anyone knows of something fancy, it's @ImkeF
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
84 | |
66 | |
62 | |
62 |
User | Count |
---|---|
199 | |
120 | |
110 | |
79 | |
69 |