community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Return difference between sales data of consecutive months

Highlighted

Hi All,

I need to calculate the difference between sales data of consecutive months. I have attached the input files and output file. Kindly help me with a workflow to achieve the same.

Input files-1) Data_Jan

                 2) Data_Feb

Output File- output

 

Alteryx Certified Partner

Hi @sraddhadurga ,

 

Something like this?

 

-----

If I've answered your question please consider marking this solution as accepted. Thank you!

Alteryx Certified Partner
Alteryx Certified Partner

Hi @sraddhadurga 

 

Here's a dynamic solution for your case. The flow is a bit large, but it basically fits if you have any number of months and files to add.

 

The only I thing I didn't do is to put columns in proper order in an automated way. But that's possible too, it would just make the flow larger.

To make it work, you need to change the input tool to put your Data_Month file. Don't forget to change the "Month" part to an asterisk (*), this will be your wildcard to union files.

 

Please let me know if you have any doubts.

 

Cheers,

Alteryx Partner

Hi @sraddhadurga ,

Please try this.

 

 

Thanks, 

Ankit.

Thank You!

Thank You so much!

Labels