The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
)
Solved! Go to Solution.
The syntax for logical OR is "||" (2X Shift + forward slash)
The syntax for logical OR is "||" (2X Shift + forward slash)
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |