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
Beyondforce
Helper I
Helper I

Adding a new column but the IF formula doesn't work!

Hey Guys,

 

I'm trying to add a new column and I'm also adding this formula, but it's not working! What's wrong with it?

=IF([LateStart]= 0, && ([LateEnd] = 0),0))

 

Thanks.

Ben.

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hello, the sintaxis is incorrect

 

=IF('TableName'[LateStart]= 0 && 'TableName'[LateEnd] = 0, 0)
Or you can consider using AND function

=IF( AND('TableName'[LateStart]= 0 , 'TableName'[LateEnd] = 0), 0)

 

Remember I copy your example. You should put an else statement.

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

1 REPLY 1
ibarrau
Super User
Super User

Hello, the sintaxis is incorrect

 

=IF('TableName'[LateStart]= 0 && 'TableName'[LateEnd] = 0, 0)
Or you can consider using AND function

=IF( AND('TableName'[LateStart]= 0 , 'TableName'[LateEnd] = 0), 0)

 

Remember I copy your example. You should put an else statement.

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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