How to create a new column using another two column values

What is your datasource? It would be more appropriate to do it by its means.

Using Grafana’s transformation the closiest you can achieve is something like this: