Calling all Alteryx customers: Refer your colleague to try Alteryx and receive a $50 gift card. Sign up now!
Free Trial

Alteryx Designer Desktop Discussions

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

Need the difference in the same column

Rafiuddin_333
7 - Meteor

Hello All,

 

I have a data set and i need the difference in this format (Attached table below)

 

Desired output:

ProductsCost (x)ItemsCost(Y)Variance (X)-(Y)
A100X500

-250

B150   

 

I need the output in the same format as attached above and when I try to do it in Alteryx using summarize and union tool I am getting the output 

Output I am getting now:

ProductsCost (x)ItemsCost(Y)Variance (X)-(Y)
A100X500 
B150   
Total250Total500-250

 

 

Can you please let me know if there any way I can move the variance to Specific Item it relates to (X in the above example)

 

Thanks a lot for your effort and time.

 

Regards,

Rafi

 

8 REPLIES 8
aatalai
14 - Magnetar

@Rafiuddin_333 see work flow attached it should do the trick

 

same column.PNG

Rafiuddin_333
7 - Meteor

Hello @aatalai , the workflow u have shared with me is exactly the output I am getting, I need the variance in the same column as cost and not as total

Mathias_Nielsen
9 - Comet

Hi @Rafiuddin_333 , can you provide an example of the desired output? I think that would be easier :)

Rafiuddin_333
7 - Meteor

Hello @Mathias_Nielsen  this is my desired output

 

Desired output:

 

ProductsCost (x)ItemsCost(Y)Variance (X)-(Y)
A100X500

-250

B150   
Mathias_Nielsen
9 - Comet

HI @Rafiuddin_333,

 

I misread your first post. Can you provide some sample data? It is usually easier to come up with a solution when you have as-is and to-be examples :D

Rafiuddin_333
7 - Meteor

Hello @Mathias_Nielsen 

 

Please find the attached sample data. If you can see the file, what I need is the column "F" in the same line as "Item"

aatalai
14 - Magnetar

@Rafiuddin_333 take a look at the updated workflow

Rafiuddin_333
7 - Meteor

Thanks alot @aatalai, its working fine and I am getting the result

Labels
Top Solution Authors