cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
EugeniaBochko
Advocate II
Advocate II

Realizing Excel Formula in PBI

Hello! Is anybody know how to realize such a formula in PBI?
I have 3 columns with 0 and 1. I need to create additional columns with these conditions:

 

Add'l Col = IF(AND(Col1=0, Col2=0, Col3=0), 0, 1)

 

Col1Col2Col3Add'l Col
0101
1101
0000

 

Thank you for your help!

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @EugeniaBochko ,

 

In DAX the AND only allows 2 parameters use the && as AND variation add the following column:

 

Column = IF('Table (2)'[Column1] = 0 && 'Table (2)'[Column2] = 0  && 'Table (2)'[Column3] = 0 ; 0 ; 1)

 

Should return expected result. 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @EugeniaBochko ,

 

In DAX the AND only allows 2 parameters use the && as AND variation add the following column:

 

Column = IF('Table (2)'[Column1] = 0 && 'Table (2)'[Column2] = 0  && 'Table (2)'[Column3] = 0 ; 0 ; 1)

 

Should return expected result. 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors