Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Filtering out the rows based on multiple condition

bb
7 - Meteor

Hello,

 

I have a table with more than 2000 rows that has data that looks like below:

RecordIDOrganization GroupAssetNameValue
2FruitAppleDatabase 1Sql
2FruitAppleDatabase 1 DetailTable
2FruitAppleDatabase 1 URLNot Applicable
3VegetablePotatoDatabase 2Sql
3VegetablePotatoDatabase 2 DetailOracle
3VegetablePotatoDatabase 2 URLSecured
4FruitOrangesDatabase 3Sql
4FruitOrangesDatabase 3 DetailOracle
4FruitOrangesDatabase 3 URLGood

 

If I want to only retrieve the rows that have "URL" on Name column and does not contain 'Not Applicable" and "Secured" in the Value tab. It should retrieve all the relevant rows to that particular asset. So my table should looks like this:

 

RecordIDOrganization GroupAssetNameValue
4FruitOrangesDatabase 3Sql
4FruitOrangesDatabase 3 DetailOracle
4FruitOrangesDatabase 3 URLGood

 

 

Any help would be appreciated. Thanks!!

3 REPLIES 3
joshuaburkhow
ACE Emeritus
ACE Emeritus

There are going to be many ways to solve this. This is my 5 min solution that should get you started. Let me know if this doesn't work or you'd like me to walk through further. 

Joshua Burkhow - Alteryx Ace | Global Alteryx Architect @PwC | Blogger @ AlterTricks
JoeS
Alteryx Alumni (Retired)

Hi @bb 

 

You'll want to use the filter tool and go into the custom option with the expression being:

 

Contains([Name], "URL")
AND
!Contains([Value], "Not Applicable")
AND
!Contains([Value], "Secured")

 

Then get the unique list of RecordID's to join back.

 

Like:

FilterJoin.jpg

 

joshuaburkhow
ACE Emeritus
ACE Emeritus

@JoeS solution is better because he's using the record ID which is unique to that set. Good job, totally missed that! haha

Joshua Burkhow - Alteryx Ace | Global Alteryx Architect @PwC | Blogger @ AlterTricks
Labels