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

Output rows based on value in another column

Rosaile
7 - Meteor

Hello,

 

I have a data set reflecting properties and their values during the year, and I'm wanting to create an output that looks at the "Status" Column and outputs only the unique ID row of the Latest Status.  (Latest uses this order, Final > Appeal > Initial > Projected).  What are some different ways I can achieve the output I want using Alteryx.  I have been trying to think of ways to use the multi-row formula tool or even the cross tab tool to turn the data, but can't seem to figure things out.  Thanks!

 

Here is my input data example.                                                                     

 

Unique ID NameStatusValue
1Location XProjected $100
1Location XInitial$200
1Location XAppeal$200
1Location XFinal$150
2Location YProjected $500
2Location YInitial$1,000
2Location YAppeal$1,000
3Location ZProjected $200
3Location ZInitial$400

 

Here is how the final output should look

 

Unique ID NameStatusValue
1Location XFinal$150
2Location YAppeal$1,000
3Location ZInitial$400
2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

I suggest the following.

 

2018-12-21_14-38-17.png

 

Use a second table to define the ranking of the statuses. Then use a find and replace to append a rank to the data

You can then sort by ID and Rank

Finally use a Sample tool to pick highest rank row by ID

 

Sample attached

Rosaile
7 - Meteor

Thank you very much!  This works and will be useful in other areas as well.

Labels