cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amsundst
Level: Power Up

New Calculated Column

I am trying to create a new column based on an exiting column using an IF and OR statement, but it's not catching all instances. Basically, I want it to capture any record that has the word "taxi" "uber" or "lyft" in the field and classify it as "Taxi" all else remain. 

 

AMS_Description = IF(OR('wp_gp_join_search rdl'[Description]="??taxi??",'wp_gp_join_search rdl'[Description]="??uber??"||'wp_gp_join_search rdl'[Description]="??lyft??"),"TAXI",'wp_gp_join_search rdl'

 

However, it doesn't seem to be using wildcards or picking up instances where the "taxi" or "uber" or "lyft" are the 2nd, 3rd, or 4th word in the string of text. What is an easy way to do this? 

 

I'm used to ACL and this would be a very simple calculated field script.....

3 REPLIES 3
Rick72
Level 10

Re: New Calculated Column

amsundst
Level: Power Up

Re: New Calculated Column

Hi @Rick72 Thank you so much for your help!!

 

I've tried to use: AMS_Description = IsMatch( 'wp_gp_join_search rdl'[Description], "taxi", Contains & IgnoreCase )

And I keep getting an error with the "IgnoreCase" part greyed out. Also, I didnt see an option to have an OR function nested, so I"m trying to find all those transactions associated with 'taxi', 'uber', and 'lyft' would I just continute the the string and add it like this: 

 

AMS_Description = IsMatch( 'wp_gp_join_search rdl'[Description], "taxi", "uber", "lyft", Contains & IgnoreCase )

Highlighted
Rick72
Level 10

Re: New Calculated Column

I think it is wise to learn a bit more about PowerApps. Something like: "AMS_Description = ..." is not working in PowerApps. The syntax/way to accomplish things is just different then you are used to.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 254 members 5,122 guests
Please welcome our newest community members: