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

Cannot figure out the error in this formula with multiple IF conditions

Hi, long story short I need a formula for curriculum completion. I would like to have a calculated column, with status complete/incomplete or 1/0.

The logic for completion is as follows:
Part 1 - Mandatory courses: N12, N13, N14
Part 2 - Any 2 out of 6 courses need to be completed: N6,N7,N8,N9,N10,N11

 

Completion= IF(

        'User List'[N12] >= 1 &&
        'User List'[N13] >= 1 &&
        'User List'[N14]>=1 &&
        (
            IF(
            SUMX(
                VALUES('User List'),
                'User List'[N6] +
                'User List'[N7] +
                'User List'[N8] +
                'User List'[SN9] +
                'User List'[N10] +
                'User List'[SN11]
            ) >=2, 1, 0
        )
    ) >=1, 1,0)

Thanks for any suggestions!
1 REPLY 1
ppm1
Solution Sage
Solution Sage

Not sure what additional analyses you have planned, but you should consider unpivoting your course columns and using a measure instead of a column.

 

If not, please try this column expression.

Completion =
IF (
    'User List'[N12] >= 1
        && 'User List'[N13] >= 1
        && 'User List'[N14] >= 1
        && ( 'User List'[N6] + 'User List'[N7] + 'User List'[N8] + 'User List'[SN9] + 'User List'[N10] + 'User List'[SN11] ) >= 2,
    1,
    0
)

 

Pat

Microsoft Employee

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors