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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Jhadur
Helper I
Helper I

Conditional formatting with text using OR not AND

I am new to Power BI. I currently have the following calculated column but I need it to be OR not AND. How would this be changed to use an OR statement? If the first cell is not Y or N then the conditional formatting doesn't apply to the whole row.

 

 

 

Status = SWITCH(TRUE(),

'BC Gate Status'[NIRA SUBMISSION]="N" && 'BC Gate Status'[ARCHITECTURE SUBMISSION ]="N" && 'BC Gate Status'[GTSB DATE]="N" && 'BC Gate Status'[eARB DATE]="N" && 'BC Gate Status'[VP APPROVAL]="N" && 'BC Gate Status'[EVP APPROVAL]="N" && 'BC Gate Status'[SUBMITTED TO ITPMO]="N" && 'BC Gate Status'[PD&S INTAKE REQUEST SUBMISSION DATE]="N" && 'BC Gate Status'[ALLOCATIONS (ITS FINANCE)]="N" && 'BC Gate Status'[EPMO FINANCE APPROVAL]="N" && 'BC Gate Status'[BCDC APPROVAL]="N" && 'BC Gate Status'[OP CREATED]="N" && 'BC Gate Status'[PD&S RESOURCE ASSIGNED]="N",1,

'BC Gate Status'[NIRA SUBMISSION]="Y" && 'BC Gate Status'[ARCHITECTURE SUBMISSION ]="Y" && 'BC Gate Status'[GTSB DATE]="Y" && 'BC Gate Status'[eARB DATE]="Y" && 'BC Gate Status'[VP APPROVAL]="Y" && 'BC Gate Status'[EVP APPROVAL]="Y" &&'BC Gate Status'[SUBMITTED TO ITPMO]="Y" && 'BC Gate Status'[PD&S INTAKE REQUEST SUBMISSION DATE]="Y" && 'BC Gate Status'[ALLOCATIONS (ITS FINANCE)]="Y" && 'BC Gate Status'[EPMO FINANCE APPROVAL]="Y" && 'BC Gate Status'[BCDC APPROVAL]="Y" && 'BC Gate Status'[OP CREATED]="Y" && 'BC Gate Status'[PD&S RESOURCE ASSIGNED]="Y",2
)

 

 

 

Jhadur_0-1717685482948.png

1 ACCEPTED SOLUTION
kpost
Super User
Super User

The syntax for logical OR is "||"  (2X Shift + forward slash)

View solution in original post

1 REPLY 1
kpost
Super User
Super User

The syntax for logical OR is "||"  (2X Shift + forward slash)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.