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.
SOLVED

Multi-Row Formula - Creating a new column based on certain criteria

Crstone09
5 - Atom

I have a large set of data in which I am trying to filter out rows based on certain criteria. The data is grouped by a unique number and included in the data is a code that indicates whether we want to keep or remove the rows. Below is a simplified version of what i am looking at. Every grouping that has even one occurrence of "gold" needs to stay. Then I will have the rows with no "gold" removed. I figured I would just use a basic filter for that, unless there is an easier way. 

 

alteryx.jpg

2 REPLIES 2
Kenda
16 - Nebula
16 - Nebula

Hey @Crstone09! The way I approached this was to add a column that is 1 if the color is gold and null otherwise. I could then use a Summarize to count the non null values and then filter to only keep the counts greater than or equal to one. Lastly, I joined by ID to get all of the rows back. Hope this helps!

EmanueleE
8 - Asteroid

Hi @Crstone09;

 

I think this is the easiest way (with the filter):alteryx5a.PNG

 

Just: a Summarize to concatenate, the "contains(Color,''Gold") filter and a split to row.

Generally I prefer not use  join with large dataset because they lack in performance.

Labels
Top Solution Authors