We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Consolidation Logic for multiple Rows into Single

prawal1990
6 - Meteoroid

Hi All,

I need your help to create a workflow in Alteryx . I am stuck while applying consolidation logic . I have two input files one is source and another is target

Expected Result

Consolidation  logic is applied based on the Product_Code, Contract_Number,Contract_start_date,Contract_end_date

Can you help me to generate one Output file which consolidate this source and Target columns along with the Match & Mismatch for all the above columns.
Another type of source data is when product code is different for same Contract Number then no consolidation will be happen. so we need to handle those as well 

Source

Contract_NumberContract_Item_NumberProduct_CodeAnnualized_ValueContract_start_dateContract_end_date
3051575850020000142735209.092026-06-08

2027-06-07

3051575874020000142734914.232025-06-08

2026-06-07

3051575850020000142734592.742024-06-08 

2025-06-07

Target

Contract_NumberContract_Item_NumberProductCodeAmountPriceAmountPrice2Amount_Price_3Amount_Price_4Amount_Price_5Amount_Price_6Amount_Price_7EndDateAmountAllocatedFinalYear2AmountAllocatedFinalYear3AmountAllocatedFinalYear4AmountAllocatedFinalYear5AmountAllocatedFinalStartDateYear1AmountYear1EndDateYear1StartDateYear2AmountYear2EndDateYear2StartDateYear3AmountYear3EndDateYear3StartDate
3051575850020000142734592.744914.235209.09    6/7/20274592.744914.235209.09  6/8/20244592.746/7/20256/8/20244914.236/7/20266/8/20255209.096/7/20276/8/2026
10 REPLIES 10
abacon
12 - Quasar

@prawal1990 Here is a workflow that gets you most of the way there. I added in the check if product number is different for that same contract numbers. The only issue is the Contract_Item_Number is different, how does that effect the desired output?

 

Bacon

prawal1990
6 - Meteoroid

Hi Abacon, Thanks for the quick response. It will not impact our desired output based on the First Start and End Date it will pick Contract_Item_Number. 

Also, I have two input files here , You have shared with Source only. I need to compare Source VS Target via Formula Tool.

PFA the workflow I have created for the reference. 

abacon
12 - Quasar

I misread that, apologies. Could you package that workflow up so the input files can come with it? What you uploaded doesn't allow me to see your input files. Additionally, could you post your desired output? The desired end result is not very clear from your post.

 

Bacon

prawal1990
6 - Meteoroid

I can't upload my Source & Target Data here but you can put above mentioned sample Source & target data in two excel file as a input files and proceed further. I hope it will make sense. Also accidently I mentioned duplicate Contract_Item_Number as 500 in Source , it should always be unique we can consider it as 600 suppose. 

Sorry for the inconvenience

Contract_NumberContract_Item_NumberProduct_CodeAnnualized_ValueContract_start_dateContract_end_date
3051575860020000142735209.092026-06-08

2027-06-07

3051575874020000142734914.232025-06-08

2026-06-07

3051575850020000142734592.742024-06-08 

2025-06-07

abacon
12 - Quasar

Thank you! What is the output you are trying to see? It is not clear what you are trying to do with these 2 data sources?

 

abacon
12 - Quasar

Per offline discussion, this should get you what you want.

abacon
12 - Quasar
prawal1990
6 - Meteoroid

@abacon : PFA the sample source data. It's not working with input excel .However working fine with  sample input data. Kindly check it.

abacon
12 - Quasar

Updated File

@prawal1990 Made a slight adjustment, got it to work.

Please mark this as the solution so others may find it faster.

Labels
Top Solution Authors