Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEANot sure how many work hours @mkeiffer is logging this week from HI 😉
@Kenda Still have two more days in Hawaii, but you are quite correct. Not doing too much work this week.
C494.
Thank you, Michael, @mkeiffer
This was a fun challenge that could be solved in multiple of ways. Here is one of my solutions attached.
The other solution would be to append the Period End Date to the original input and fillte records where OUT DATE <= Period End Date. Then sort by Period End Date acsending for each of the records and output the first record for each of the 26 input rows.
Fun challenge, always nice to get a quick win!
Sneaky . . .
Solved. To my knowlage, there are two method.
Method 1: Using Cross join, following above steps:
1. Adding a constant join key to both table(Check Log and Pay Period). This allow a cross join to combine everything records in each table.
2. Using Filtter and with certain condition(out_date <= period_end_date) to keep only the valid data.
3. Using Summarize Tool to find the earliest period end date for each record.
Method 2: Using Append Fields Tool.
Similar solution as Method 1, Only diference is using append fields tool to attach all periods end date to each records in check log table. The following steps are the same.