Forum Discussion
Babinsky
Helper I
9 years agoAdding a new value in an Existing field
Hi All, I have a question:
I have 2 fields
Code - which contains - 6980
Cause - which contains - ABC
I'm looking to use Advanced Editor to populate the field Cause with value ZWR if Code = 6980
Thanks!
- Babinsky
5 Replies
- Greg_Deckler
Community Champion
There's probably some fancy M for that, but brute force, create a new conditional column,
= if [Code] = 6980 then "ZWR" else [Cause]
Remove your original Cause column and rename this column to Cause and done.
- LaurentCouartou
Solution Supplier
Also, you can use the Add Conditional Column feature for that kind of calculations.
- Babinsky
Helper I
Hi Smoupre, for your suggestion below would this be a New Measure, New Column?
= if [Code] = 6980 then "ZWR" else [Cause]
Thanks!
- Babinsky
- Eric_Zhang
Microsoft Employee