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

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.

Reply
Anonymous
Not applicable

Exact test search in string by using CONTAINSSTRING

HI

 

We have a switch to map 

X =
SWITCH(TRUE(),
CONTAINSSTRING(Fact_DeliveryReport[Delivery Label],"_FR"),"FR",
we only need exact match
We see _FRE is also maped to FR
we only wanted  _FR not FRE  but with this FRE is  mapped to FR 
 We need only _FR = FR 

P_20190512_1700_CEU_S9W20_SUN_TAC_ALL_TEXT_ALERT_FRE
P_20190512_1700_CEU_S9W20_SUN_TAC_ALL_TEXT_SILENT_FRE
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous  - You could try this:

X =
SWITCH(TRUE(),
RIGHT(Fact_DeliveryReport[Delivery Label],3 )="_FR"),"FR",
...
Cheers!
Nathan

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous  - You could try this:

X =
SWITCH(TRUE(),
RIGHT(Fact_DeliveryReport[Delivery Label],3 )="_FR"),"FR",
...
Cheers!
Nathan
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

Can you give an example of FR without FRE, is it the last 2 characters or is it like _FR_ ?


Many Thanks

Mariusz 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors