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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 103 | |
| 67 | |
| 65 | |
| 56 |