SOLVED
Need to generate rows to add all years in a range
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Jake_Seymour
5 - Atom
‎08-09-2024
01:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I have a dataset with a customer, a first year of service and a last year of service. I'm trying to use the Generate Rows tool to build a row for each year of service in the range, but I'm having trouble with the expressions to get what I need.
Customer | First Year | Last Year |
A | 2018 | 2019 |
B | 2015 | 2019 |
C | 2017 | 2021 |
What I'm trying to get out of this looking for with the output is a row for each year the customer was in service, kind of like an anniversary report:
Customer | First Year | Last Year | Anniversary Year |
A | 2018 | 2019 | 2019 |
B | 2015 | 2019 | 2019 |
B | 2015 | 2019 | 2018 |
B | 2015 | 2019 | 2017 |
B | 2015 | 2019 | 2016 |
C | 2017 | 2021 | 2021 |
C | 2017 | 2021 | 2020 |
C | 2017 | 2021 | 2019 |
C | 2017 | 2021 | 2018 |
Here's my tool config. Any help or suggestions would be greatly appreciated!
Regards,
Jake
Solved! Go to Solution.
Labels:
- Labels:
- Preparation
4 REPLIES 4
Paridhi_Agrawal
8 - Asteroid
‎08-09-2024
03:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
CoG
14 - Magnetar
‎08-09-2024
03:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Condition expression: [Anniversary Year] - [First Year] > 0
Loop expression: [Anniversary Year] - 1
flying008
15 - Aurora
‎08-09-2024
08:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎08-12-2024
05:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@CoG that was what I was missing in the conditions. Thank you and thanks all for the help!
