Alteryx Designer Desktop Discussions

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

How to arrive unique values as per account

Lalaiah
8 - Asteroid

Hi Team,

 

I have the input as below and need output as per below mentioned. Can you please how to arrive this.

 

Input
AccountDepartmentPO
1561
2232
3563
1234
2455
3536
4757
5968
6859
16310
27911

 

OutPut
AccountDepartmentPO
156/23/631/4/2010
223/45/792/5/2011
356/536-Mar
4757
5968
6859
4 REPLIES 4
ShankerV
17 - Castor

Hi @Lalaiah 

 

This can be achieved in 3 steps.

 

1. Sort tool

2. Select tool

3. Multi row formula tool

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @Lalaiah 

 

Step 1: Sort tool

 

Account -> Ascending

PO -> Ascending

 

Step 2: Select tool

 

To modify the data type as V_WString for the columns [Department and PO]

 

Step 3: Multi-Row Formula

 

IF [Account] = [Row-1:Account]
THEN tostring([Row-1:Department]) + "/" + tostring([Department])
ELSE [Department]
ENDIF

 

Many thanks

Shanker V

Qiu
21 - Polaris
21 - Polaris

@Lalaiah 
We can use the Summarize Tool

0321-Lalaiah.PNG

Lalaiah
8 - Asteroid

@Qiu  & @ShankerV  Thank you so much this logic working fine.

Labels