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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (1,246)