Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Identify biggest value in rows

Joker_Hazard
11 - Bolide

Greetings.

I have a dataset that contains 300k lines and a column that calculates the amount of days compared to weekend dates.

Basically it creates a result that if its monday or tuesday, then it gives a range of results in 0,1,4.

If its wednesday, tuesday or friday, it gives a range of results in 0,1, 2.

Therefore, I always filter the biggest number, to continue with the workflow. I have been changing the filter manually knowing that if today's date is monday, then number 4 has to be filtered. I want to automate that by creating a formula that will ALWAYS filter the biggest value in this column. I tried using multirow, but as there are 3 different numbers I couldn't figure out how to create.

Anyone has any clever idea on how to create a formula like that? Is there any tool that can filter the max values of rows while maintaining dataset structure? (I thought of summarize, but I have to keep all columns).

Example:

Joker_Hazard_0-1657221541910.png

 



Thanks




2 REPLIES 2
DataNath
17 - Castor
17 - Castor

How does this look @Joker_Hazard? It takes a max, appends it to all records and then filters out those that aren't = to the max before removing it and just leaving your original data structure:

 

DataNath_0-1657222019317.pngDataNath_1-1657222049681.png

gabrielvilella
14 - Magnetar

Hi @Joker_Hazard, is this what you are looking for? It's quite hard to understand what you want without the actual dataset and the expected outcome.

gabrielvilella_0-1657222536188.png

 

Labels
Top Solution Authors