We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Group the data after filtered

AliceLau
5 - Atom

Hello, 

 

I have a project that would need to use the below data to get 2 set of output, and then group into one table.

AliceLau_0-1666675711776.png

 

Output 1. Filter out Client that does not have Product=Apple, and then display maximum of 2 client's data with descending order according to the price

Expected output:

ClientPrice
E9000
D1500

 

Output 2. Filter out the rest of the client that is not display in Output 1 and group the data as "others"

Expected output:

1500+3000+1200=5700

ClientPrice
Others5700

 

Final output: Combine both table into one

ClientPrice
E9000
D1500
Others5700

 

 

Can anyone advise? Thanks a lot!

3 REPLIES 3
binuacs
21 - Polaris

@AliceLau One way of doing this

binuacs_0-1666679446055.png

 

Sebastiaandb
12 - Quasar

Hi @AliceLau ,

 

Here you go :-)

 

Sebastiaandb_0-1666679743561.png

This should do the trick for ya!

 

Greetings,

 

Seb

KrishnaChithrathil
11 - Bolide

@AliceLau 

Is this something you want?

KrishnaChithrathil_0-1666692566369.png

 

you can also try adding few more records to the below attached workflow, to check if it's working as intended.

 

thanks,

Krishna

Labels
Top Solution Authors