In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

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
15 - Aurora
15 - Aurora

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