Forum Discussion
Creating new column with data from other columns
Hello all my data looks like this
Col 1 | Col 2 | Col 3
1 | |
2 | |
3 | |
| 4 |
| 5 |
| 6 |
| | 7
| | 8
| | 9
and I want to make a new column (keep the originals ) that looks like this as well as keeping the values in thier original rows.
Col 4
1
2
3
4
5
6
7
8
9
thank you
Nash2Bos , New column in power query
if [Col 1] <> null and [Col 1] <> "" then [Col 1]
else if [Col 2] <> null and [Col 2] <> "" then [Col 2]
else [Col 3]DAX formula
NewColumn =
IF(
NOT(ISBLANK([Col 1])),
[Col 1],
IF(
NOT(ISBLANK([Col 2])),
[Col 2],
[Col 3]
)
)
1 Reply
- amitchandakSuper User
Nash2Bos , New column in power query
if [Col 1] <> null and [Col 1] <> "" then [Col 1]
else if [Col 2] <> null and [Col 2] <> "" then [Col 2]
else [Col 3]DAX formula
NewColumn =
IF(
NOT(ISBLANK([Col 1])),
[Col 1],
IF(
NOT(ISBLANK([Col 2])),
[Col 2],
[Col 3]
)
)