Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
DONB87
Frequent Visitor

Issue with Costum Column with if condition

Hii Community

I'm struggling with a if condition in the costum Column. 

I have two colums column1 there i have values and null values, and i have column 2. The goal is to repleace all not null values from column 1 to column 2. For this reason i made an if statement in the custom column but it doesnt work 😞

DONB87_0-1675853129621.png

 

Thanks alot for help and tipps.

 

Best wishes

 

Donb

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @DONB87 

how about the other way around:
if [col1] <> null
then [col1]
else [col2]

View solution in original post

3 REPLIES 3
DONB87
Frequent Visitor

Thansk a lot @FreemanZ  it works!! 

tamerj1
Super User
Super User

Hi @DONB87 
I think you need to add each, like

each if [#"Column1"] = null then [#"Column2"] else [#"Column1"] 

FreemanZ
Super User
Super User

hi @DONB87 

how about the other way around:
if [col1] <> null
then [col1]
else [col2]

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.