cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 )

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 40 members 4,153 guests
Please welcome our newest community members: