In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multi Row Formula...

Raj_007
8 - Asteroid

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

1 REPLY 1
OllieClarke
16 - Nebula
16 - Nebula

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

OllieClarke_0-1642091981286.png

 

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

 

Labels
Top Solution Authors