Alteryx Designer Desktop Discussions

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

Comparison

Nikkhil
6 - Meteoroid

Hello,

 

I have a comparison between two sheets containing grocery items in the last month and this month.

The columns are - 

Name

Type

Rate

Quantity

 

The requirement is to know -

1. If there are any items that are added in this month list, it should be marked as "Added" in a new column in the final output.

2. If  there are any items that are updated for example, a change in rate or quantity, it should be marked as "Updated" in the column.

3. If there are any items that are removed in the previous month, it should be marked as "Deleted".

4. If there is no change in the item in this month list, it should be marked as "No Change"

 

Example

May -

NameTypePriceQuantity
Item AKitchen101
Item BToiletries303
Item CGarage404

 

June -

NameTypePriceQuantity
Item AKitchen101
Item BToiletries353
Item DGarden404

 

The output should be

 

NameTypePriceQuantityAction
Item AKitchen101No Change
Item BToiletries403Updated
Item CGarage404Deleted
Item DGarden404Added

 

I tried to achieve it through outer join between this month and last month but I was not able to find a way to add the action column in my final output.

 

Any pointers would be helpful. Thanks!!

 

10 REPLIES 10
grazitti_sapna
17 - Castor

Hi Nikhil,

 

The only change made to the workflow to address the issue with duplicates was the change in the join keys.

Please Use Name and Type both as your join keys and you will get the desired results.

 

comparison_join.png

I hope this solves your issue

Sapna Gupta
Labels