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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors