cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
santoshsam_50
Frequent Visitor

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

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

@santoshsam_50  - You could try this:

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

View solution in original post

Mariusz
Super User II
Super User II

Hi @santoshsam_50 

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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors