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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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.