Alteryx Designer Desktop Discussions

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

Grouping by data section

Moe-Sado
5 - Atom

Hi,


I would like to know how I can group in alteryx the data corresponding to the VAT identification section in a new column.

 

As seen in the following table:

 

Previous information
DATAFIELD_1
VAT ID123
COMPANYExample Co.
DATE2017-04-30
SALES10
VAT ID234
COMPANYExample INC.
DATE2017-05-30
SALES11
PURCHASES3
VAT ID123
COMPANYExample Corp.
DATE2017-07-30

 

Desired information
DATAFIELD_1GROUP
VAT ID1231
COMPANYExample Co.1
DATE2017-04-301
SALES101
VAT ID2342
COMPANYExample INC.2
DATE2017-05-302
SALES112
PURCHASES32
VAT ID1233
COMPANYExample Corp.3
DATE2017-07-303
2 REPLIES 2
Luke_C
17 - Castor

Hi @Moe-Sado 

 

here's an example using the multi-row formula tool. It looks to see if the value is VAT ID, if it is, then it adds 1 to the group, otherwise repeats the previous group number.

 

Luke_C_0-1625077621321.png

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Moe-Sado,

 

You could use a multi-row to check the value of your [Data] field. If it = VAT ID then add 1 to the value from the above row:

 

JonathanSherman_0-1625077848625.png

 

I've attached my workflow for you to download if needed!

 

Kind regards,

Jonathan

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels