Hi there,
I'm trying to create dummy renewal records for the existing contracts through 12/31/2026, assuming the current contract value will increase by 3% and then stay at 3%. Renewal contracts will have the same contractual term length as the original contracts. The difficulties are:
1. Contracts can be renewed by month or day or year and I couldn't find an automated way to identify the pattern.
2. How to make only the first renewal's contract value to increase by 3% and the remaining renewals stay at the same?
The excel upper part is the original data, and the bottom part "updated" is my expected result. I have a workflow (see attached) but it's not generating the expected output.
Any ideas where the workflow is wrong? Or how can it be fixed to generate the desired output?
Thanks!
Solved! Go to Solution.
Here is a solution to your conundrum. I cleaned up and optimized the first half of your workflow, which nearly accomplished what you were looking for. The only thing missing was that you stopped the Generate Rows Tool on [End Date] instead of [Start Date].
I also added 2 versions for ways to calculate the 3% increase:
Happy Solving!
Give this a try.
What I did:
Let me know if this works for what you're trying to do! If it does solve your issue, please mark the topic as resolved.
@CoG - Not OP, but your way of doing the Generate Rows is very pretty :)
@Qiu - Yeah, I was trying to figure out how to do that from the Excel data, especially in the cases where it was 2 years or 3 months or whatnot. Then I saw the Text Input of the provided workflow and breathed a sigh of relief :)
My initial thought for figuring out the Day/Month/Year was using a DateTimeDiff and MOD calculation, but that's as far as I got.
This is awesome and solved the problem. Thanks! One follow-up: while I tag those renewal type as Month or Year or Days manually, in reality I'm dealing with a much larger dataset and wondering if there is a way in Alteryx to tag that automatically?
That's actually part of the puzzle I was trying to solve. The dataset was much larger and I was only able to tag the renewal type manually in Excel. Was curious if there is a logic that can be built for it.
Here is one way to do the calculation, but I must caution you, this is not a well-defined procedure. The yearly check will fail for leap year contracts where start date = February 29, and the monthly check will fail for the start date = last day of some months. I included examples of failed cases in the sample data under [#]>=9990 (notice the difference between [Type] and [Calculate_Type]. This may not be an issue for you, but it's important that you double check any "Day" types that meet failure criteria, so that you are not unknowingly introducing errors into your data.