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
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

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.