Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Selecting Last & Best FollowUp Outcome

Faronnj
8 - Asteroid

Hey All,

 

I am sure it can be done using some formula or someway on alteryx but I have the following sample data, 

 

PatientPostop 1-3mo>4-12mo >12-24mo >24-36mo>36-60mo >60-84mo>84-108mo>108mo 
10.0000 0.0000 

-0.1

   
20.0000 0.0000     
30.17610.1761 0.0969    
4 0.3010 0.6990    
50.3979 0.3010     
6 0.00000.0000     
7 0.17610.0969     
8  0.17610.3979    
9  0.39790.3010    
10 0.17610.17610.0969    
11 0.17610.17610.0969    
121.0000 1.0000     
13 0.90310.5441     
140.5441       
150.54410.47710.30100.30100.3010   

 

I am looking for alteryx to do 2 things:

 

1) I am looking to develop some sort of workflow where alteryx would read through each postop period cell for each patient (aka 1-3mo, 4-12mo, 12-24mo, etc) and then it would select the single best visual acuity outcome (most negative value or closest to -1) and put it into its own column.  I am certain there is some workflow/formula to do this, but I have not found anything. 

 

2) More easily, I am looking for a similar formula that reads each postop period cell backward from >108mo, >84-108mo, >60-84mo, >36-60mo, etc and selects the first value it comes across (aka the last followup recorded) and puts it into its own row.  

 

I would greatly appreciate if you could include a workflow for this since the formulas tend to be pretty complicated.  Thank you in advance and I really appreciate all your help with the research.  If it is not clear and you need me to try and better clarify or you need anything else, please let me know. 

 

Nick 

 

 

3 REPLIES 3
afv2688
16 - Nebula
16 - Nebula

Hello @Faronnj ,

 

You can do this using the summarize tool. Just select for each field the min value.

 

The same tool can also be used for selecting the first value.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

fmvizcaino
17 - Castor
17 - Castor

Hi @Faronnj ,

 

Take a look at the attached example and let me know if that works for you.

fmvizcaino_0-1578950276949.png

 

Best,

Fernando Vizcaino

Faronnj
8 - Asteroid

Wow, so simple!  Thank you so much for your help, this is perfect. 

Labels