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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to add a conditional column to use IF(AND ?

Please help, I'm very new to Power Query, absolutely loving it so far but I need a new column that says

IF Col A AND Col B = Complete THEN "Complete" ELSE "Incomplete"

 

I can only see a way of puting in IF statements though without an AND

 

Please help

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I eralised I could just add a normal conditional column using one IF statement then adjust the formula in the formula bar to add in the and part of the formula

= Table.AddColumn(#"Replaced Value1", "Committed Cost", each if [Calculated Status] = "Complete" and [Cmtd Total] > 1000 then [Cmtd Total] else 0)

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I eralised I could just add a normal conditional column using one IF statement then adjust the formula in the formula bar to add in the and part of the formula

= Table.AddColumn(#"Replaced Value1", "Committed Cost", each if [Calculated Status] = "Complete" and [Cmtd Total] > 1000 then [Cmtd Total] else 0)

Anonymous
Not applicable

Don't worry, I've worked it out!
Anonymous
Not applicable

Hi @Anonymous ,

Glad to hear that you have solved your problem, could you please share your solution below and mark it as a solution? I am sure your sharing will help more users who are facing the same or similar problem, thanks!

Best Regards,
Dino Tao

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.