Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I need to write a custom column in powerquery that returns a value of "1" for "Budget" in the column DataType and a value of "2" for "Forecast"
Solved! Go to Solution.
Hi @Anonymous ,
Go to add column tab, Conditional Column, and fill in the boxes as below.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @Anonymous ,
Go to add column tab, Conditional Column, and fill in the boxes as below.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
I also determined that if you complete the custom column in m language it automatically converts it into a conditional column.
Thank You very much!
Hi @Anonymous ,
Yes, that is true. Once you work more with Power Query, you will be able to write all your columns as custom columns. The trick is study how the Advanced Editor changes the syntax. @KenPuls has written a great book M is for (Data) Monkey, gives you lots of tips, tricks and patterns.
You are very welcome!
Nathaniel
Proud to be a Super User!
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |