Hey All,
I am sure it can be done using some formula or someway on alteryx but I have the following sample data,
Patient | Postop 1-3mo | >4-12mo | >12-24mo | >24-36mo | >36-60mo | >60-84mo | >84-108mo | >108mo |
1 | 0.0000 | 0.0000 | -0.1 | |||||
2 | 0.0000 | 0.0000 | ||||||
3 | 0.1761 | 0.1761 | 0.0969 | |||||
4 | 0.3010 | 0.6990 | ||||||
5 | 0.3979 | 0.3010 | ||||||
6 | 0.0000 | 0.0000 | ||||||
7 | 0.1761 | 0.0969 | ||||||
8 | 0.1761 | 0.3979 | ||||||
9 | 0.3979 | 0.3010 | ||||||
10 | 0.1761 | 0.1761 | 0.0969 | |||||
11 | 0.1761 | 0.1761 | 0.0969 | |||||
12 | 1.0000 | 1.0000 | ||||||
13 | 0.9031 | 0.5441 | ||||||
14 | 0.5441 | |||||||
15 | 0.5441 | 0.4771 | 0.3010 | 0.3010 | 0.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
Solved! Go to Solution.
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
Hi @Faronnj ,
Take a look at the attached example and let me know if that works for you.
Best,
Fernando Vizcaino
Wow, so simple! Thank you so much for your help, this is perfect.