Sort Numbers Largest to Smallest and Smallest to Largest
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am new to Alteryx and I don't understand how to sort numbers by Largest to Smallest within a column. I need 2 fields sorted Largest to Smallest, then after that, I need another column sorted Smallest to Largest to calculate a Multi-Row formula correctly.
Please note that there can be duplication's of all the numbers.
Local Member Firm Fees = Largest to Smallest
Other Member Firm Fees = Largest to Smallest
Opp ID = Smallest to Largest
See what the final example should look like attached:
Solved! Go to Solution.
- Labels:
- Preparation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
First, I'd make sure your field types are all number format, so use a Select tool to check field types... then use the Sort Tool and start with the first column you want sorted (Opportunity ID) and sort Ascending... then the next line will be Local Member Firm Fees sorted Descending, and Other Member Firm Fees sorted Descending.
NJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You will want to use the Sort tool for this. You are able to set multiple fields to sort on and choose whether they should be sorted in ascending or descending order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you Nicole & Nick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Nick,
I have the same issue and using Sort tool.
but after 1 the next row shows is 10, 11, 12 .... 19 and then 2.
Can you please suggest if there is a way to deal with this.
Regards
Ahsan Khalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Cheers,
Mark
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hero, thanks.
