Multi Row Formula...
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Raj_007
8 - Asteroid
‎01-13-2022
08:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All,
Thanks for your time
Is Multi Row Formula tool same as the Row_Number() over (Partition by col1 order by col2) in SQL server
I do not have anything in the group by of MultiRow Formula.. just want to confirm it is same as row number so that i can push it to the SQL Select
Labels:
- Labels:
- Expression
1 REPLY 1
15 - Aurora
‎01-13-2022
08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Raj_007
In order to replicate that SQL query, you'd need to first sort your data by col2, then in your multi-row formula tool, create a new column called rowNum,
Group by col1 (which acts as the partition), and then use the formula [row-1:rowNum]+1
There's more info on the tool here: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Multi-Row-Formula/ta-p...
Hope that helps,
Ollie
