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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.