In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Multiple filters using StartsWith

bui195
7 - Meteor

I'm trying to filter out data set with GL accounts that start with number 17 and 30 (GL accounts have 6 characters). So far I can only filter dataset with 17 GL or 30 GL. Can I write one formula that apply to both numbers? Thank you. 

3 REPLIES 3
ShankerV
17 - Castor

Hi @bui195 

 

Please try using the OR function.

ShankerV
17 - Castor

Hi @bui195 

 

One way of doing this, 

 

ShankerV_0-1684780579976.png

left(tostring([GL accounts]),2) = "17" OR
left(tostring([GL accounts]),2) = "30"

 

ShankerV_1-1684780599894.png

 

Many thanks

Shanker V

NMangera
11 - Bolide

@bui195 ,

 

if the data type is already a string, another approach is...


NMangera_0-1684780860805.png

 

Labels
Top Solution Authors