Alteryx Designer Desktop Discussions

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

How to do this?

HA
8 - Asteroid

Hi ,

I have a dataset with mutiple columns and I need to add a calculated fieild and change the format as follow.

 

 

Original dataset

 

IDDateValue
AAA11/1/20165
BBB11/1/20163
AAA11/2/20167
BBB11/2/20162
AAA11/3/20164
BBB11/3/2016

3

 

 

I need to change it to

 

IDID2DateValueAAA -Value BBB
AAABBB11/1/20162
AAABBB11/2/20165
AAABBB11/3/20161
2 REPLIES 2
Federica_FF
11 - Bolide

HI!

 

What you need is basically to summarize your data grouped by date.

 

In the attached workbook you can find 2 different approach. The first one treats the values numbers as strings, concatenates them and then split them again in order ro use a formula to perform the formula Value A - Value B.

 

The second one, consists in an if statemement that converts into negative numbers all the BBB values, so that you can easily summarize the rows with the sum method.

 

Take a look at the workflow!

HA
8 - Asteroid

Thank you I will use the seocnd approach.

Labels