Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Transpose 2 columns into 1 row

newtoAlteryx2023
5 - Atom

Hi,

 

Here is my dataset:

NamePolicy noAccounting PeriodAmount
ABC1232023_01_31100
ABC1232023_02_28500
XYZ4562023_01_31200
XYZ4562023_02_28700

 

I am transposing this table and calculating difference of amount between current month and previous month:

NamePolicy no2023_01_312023_02_282023_01_31_Development

2023_02_28_Development

ABC1231005000400
XYZ4562006000500

 

 

I am looking to get result as show in below table:

How can I get from calculating difference of amount shown in above table to as shown in below table? thank you.

NamePolicy noAccounting PeriodAmountDevelopment
ABC1232023_01_311000
ABC1232023_02_28500400
XYZ4562023_01_312000
XYZ4562023_02_28700500
5 REPLIES 5
Luke_C
17 - Castor
17 - Castor

Hi @newtoAlteryx2023 

 

I wouldn't transpose. You can use the multi-row formula tool:

 

 

image.png

 

SPetrie
13 - Pulsar

I agree with @Luke_C , especially since I was about to respond with the same suggestion only 60 seconds slower :)multirow.PNG

newtoAlteryx2023
5 - Atom

I have a lot more Strings columns than what I have showed in the example. Using the suggested approach, I am getting Development as either 0 or same as the Amount.

 

Any idea what could be wrong?

Luke_C
17 - Castor
17 - Castor

Hi @newtoAlteryx2023 

 

Check the grouping options to ensure they line up with what would currently make up a unique set of records to be analayzed.

SPetrie
13 - Pulsar

Its hard to say without seeing the same thing you are.

Are you able to share some more example data that is closer to the real world data format you are having the issue with? That will help with tailoring a new formula or better solution. 

 

Labels