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

Filter Across Multiple Columns

bsolove123
6 - Meteoroid

Attached is an example of my dataset. I want to filter on records where the values of all the companies data, by state and by category, are equal. The last column is what I would expect to be the output of the filter. Is there a way to do this?

3 REPLIES 3
Kenda
16 - Nebula
16 - Nebula

Hi @bsolove123 

 

If there are too many company names to include in a filter, you could consider using the Transpose tool to transform your data first, grouping by state and category. From there, use a Summarize tool to again group by these two fields and count the distinct values in the Value field. Lastly, use a Filter to keep just the records where the unique count is 1

nagakavyasri
12 - Quasar

Screenshot 2023-06-15 141730.png

hlee36
8 - Asteroid

You can use "filter" tool and make a formula.

 

In the formula, use "AND" operator to make multiple conditions. 

 

So, this can be done with a single tool.

 

hlee36_0-1686853693961.png

 

Labels