Alteryx Designer Desktop Discussions

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

Arranging data based on Hierarchy

sriniprad08
11 - Bolide

Hi Team,

Hope you are well. I need help.

Please find attached the input and expected output.

 

I would like to keep only the records based on the highest rating (attached the hierarchy).

 

sriniprad08_0-1649066063321.png

 

sriniprad08_1-1649066080238.png

 

 

 

sriniprad08_2-1649066094503.png

 

 

Please let me know how to go about this,

 

Thanks,

Sri

 

15 REPLIES 15
PhilipMannering
16 - Nebula
16 - Nebula

Hi @sriniprad08 

 

You want to attach a numerical rating > Sort the data > Sample the first one per Country. See attached,

PhilipMannering_0-1649066757767.png

 

JarekSkudrzyk
11 - Bolide

@sriniprad08 

Hi, try assigning numerical value and using join tool. Then group by country and select max value - see my example solution.

binuacs
20 - Arcturus
sriniprad08
11 - Bolide

Hi @binuacs  @JarekSkudrzyk  @PhilipMannering ,

 

Thank you so much. Perfect. It works. I need one more help.

I have now more than one column . Please find attached how to go about that please.

 

sriniprad08_0-1649067932194.png

 

Thanks

Sri

PhilipMannering
16 - Nebula
16 - Nebula

As I can't be bothered typing the whole table out, as you've posted a picture of the data and not the data itself, I'll just explain that you need to Transpose your Catg columns. Then do exactly the same thing as my workflow I posted above.

PhilipMannering
16 - Nebula
16 - Nebula

Something like this....

sriniprad08
11 - Bolide

 Hi @PhilipMannering ,

 

Sorry i didnt attach the data. Please find attached,

 

Thanks,

Sri

 

sriniprad08
11 - Bolide

Hi @PhilipMannering ,

 

Please find the sample output

sriniprad08_0-1649068960630.png

 

Thanks

 

binuacs
20 - Arcturus
Labels