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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi @StevesHelp
Change your & to be && instead.
& will try to concatinate
&& is the logical AND test
Consider using this format too:
Stock or S.O. or DOTCOM =
SWITCH(
TRUE() ,
mid(format('omsid sales'[PONUM], "############"), 3,1)="9" && 'OMSID Sales'[shipno]="HD8119", "Stock DOTCOM",
MID(FORMAT('OMSID Sales'[ponum], "############"), 3,1)<>"9" && 'OMSID Sales'[shipno]="HD8119", "S.O. DOTCOM",
mid(format('omsid sales'[PONUM], "############"), 3,1)="9" && 'OMSID Sales'[shipno]<>"HD8119", "Stock",
MID(FORMAT('OMSID Sales'[ponum], "############"), 3,1)<>"9" && 'OMSID Sales'[shipno]<>"HD8119", "S.O.",
-- ELSE--
"OTHER")
Hi @StevesHelp
Change your & to be && instead.
& will try to concatinate
&& is the logical AND test
Consider using this format too:
Stock or S.O. or DOTCOM =
SWITCH(
TRUE() ,
mid(format('omsid sales'[PONUM], "############"), 3,1)="9" && 'OMSID Sales'[shipno]="HD8119", "Stock DOTCOM",
MID(FORMAT('OMSID Sales'[ponum], "############"), 3,1)<>"9" && 'OMSID Sales'[shipno]="HD8119", "S.O. DOTCOM",
mid(format('omsid sales'[PONUM], "############"), 3,1)="9" && 'OMSID Sales'[shipno]<>"HD8119", "Stock",
MID(FORMAT('OMSID Sales'[ponum], "############"), 3,1)<>"9" && 'OMSID Sales'[shipno]<>"HD8119", "S.O.",
-- ELSE--
"OTHER")
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 40 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 105 | |
| 63 | |
| 36 | |
| 36 |