Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Rearrange of Data

AshishAgarwal
7 - Meteor

Hi team,

 

I am learning Alteryx.

 

I required your help to rearrange following table in 2 formats

 

Raw Data

RICbooksecurityBalanceSystemQuantity
AAA110,000.00Apple10
AAA28,000.00Apple8
AAA361,000.00Apple61
AAA45,000.00Apple5
AAA5-1,500.00Apple2
AAB6-50,000.00Andoid-61
AAB7-9,900.00Andoid-10
AAC8-5,000.00Andoid-5
AAC9-7,900.00Andoid-8
AAD101,450.00Andoid-2
AA Total  11,150.00  
ABA1181,000.00Apple81
ABA1256,000.00Apple56
ABB13-72,000.00Andoid-81
ABC14-56,000.00Andoid-56
AB Total  9,000.00  
ACE153,000,000.00Apple3000
ACE161,500,000.00Apple1500
ACB17-2,900,000.00Andoid-3000
ACC18-1,500,500.00Andoid-1500
AC Total  99,500.00  

 

 

Required Format 1:-

 

RICbooksecurityPriceSystemQuantity
AAA110,000.00Apple10
AAB7-9,900.00Andoid-10
AAA28,000.00Apple8
AAC9-7,900.00Andoid-8
AAA361,000.00Apple61
AAB6-50,000.00Andoid-61
AAA45,000.00Apple5
AAC8-5,000.00Andoid-5
AAA5-1,500.00Apple2
AAD101,450.00Andoid-2
AA Total  11,150.00  
ABA1181,000.00Apple81
ABB13-72,000.00Andoid-81
ABA1256,000.00Apple56
ABC14-56,000.00Andoid-56
AB Total  9,000.00  
ACE153,000,000.00Apple3000
ACB17-2,900,000.00Andoid-3000
ACE161,500,000.00Apple1500
ACC18-1,500,500.00Andoid-1500
AC Total  99,500.00  

 

Required Format2:- In this I want to remove those who are almost matching in opposite direction (Threshold of 1000)

 

RICbooksecurityPriceSystemQuantity
AAA361,000.00Apple61
AAB6-50,000.00Andoid-61
AA Total  11,000.00  
ABA1181,000.00Apple81
ABB13-72,000.00Andoid-81
AB Total  9,000.00  
ACE153,000,000.00Apple3000
ACB17-2,900,000.00Andoid-3000
AC Total  100,000.00  

 

Please let me know if its possible to deriv such result from Alteryx.

 

Regards,

Ashish

3 REPLIES 3
DataNath
17 - Castor

How does this work? I can't really think of a way of getting the exact sort you're after, as applying ascending/descending sorts to any of the fields in the dataset wouldn't arrive at this - I think it'd have to be a brute force job. I can get you the expected outcome in step 2. If you want the first rearrange, the closest/best I can do for now is just what's left after the sort tool:

 

DataNath_0-1653030505042.png

 

Qiu
20 - Arcturus
20 - Arcturus

@AshishAgarwal 
Hope this is what you need.

0520-AshishAgarwal.PNG

AshishAgarwal
7 - Meteor

Hi Qui,

 

Thank you so much.. Its very helpful.

 

Agreed to your solution.

 

Regards,

Ashish

Labels