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

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

Reply
Gnieren
New Member

IF function - Need Help :)

Hi,

I am really stuck, and hope that somebody can help me.

I have a table like this, just much bigger:

PersonStatus training 1Status training 2Status training 3Status training 4Status training 5
HannaCompletedCompletedCompletedCompletedCompleted
PeterCompletedRegisteredNot RegisteredCompletedNot Registered

 

If a person has completed all trainings, write completed, else not completed. 

 

I can make it work when checking 1 column with this:

if Text.Contains([Status training 1], "Completed") then "Completed" else "Not Completed"

 

However, I cannot make it work if it is to check all 5 columns. 

 

I want a column that writes completed if all  trainings are completed, otherwise it should write not completed.

 

I sincerely hope, that somebody here has the answer! 🙂

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Gnieren , You can create a new column like

 


new column =
if( if([Status training 1] = "Completed",1,0) + if([Status training 2] = "Completed",1,0) + if([Status training 3] = "Completed",1,0)+ if([Status training 4] = "Completed",1,0)
+ if([Status training 5] = "Completed",1,0) >=5, "Completed", "Not Completed")

 

If these are 5 it can be done like this. But more than might opt for other option

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Gnieren , You can create a new column like

 


new column =
if( if([Status training 1] = "Completed",1,0) + if([Status training 2] = "Completed",1,0) + if([Status training 3] = "Completed",1,0)+ if([Status training 4] = "Completed",1,0)
+ if([Status training 5] = "Completed",1,0) >=5, "Completed", "Not Completed")

 

If these are 5 it can be done like this. But more than might opt for other option

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.