Hello @Richard Hawkins (AXIS) glad you found the solution. Since you cannot accept your answer I am summarizing it here so you can accept it as an answer.
- Derived Column Transformation:
- You created a Derived Column that uses the
mapLoopfunction. This function iterates over a specified number of times, allowing you to dynamically create dates within the range ofMin DateandMax Date. - The expression you used is:
mapLoop((Max_Date - Min_Date) + 1, toString(addDays(Min_Date - 1, #index))) - Explanation of the Expression:
-
Max_Date - Min_Date + 1: Calculates the total number of days betweenMin DateandMax Date, inclusive. -
mapLoop(...): Repeats the logic for each day in the range, generating a list of dates. -
addDays(Min_Date - 1, #index): This function calculates each specific date by adding the loop index (#index) toMin Date - 1, generating consecutive dates starting fromMin Date. -
toString(...): Converts each date in the list to a string format.
-
- This results in a concatenated string of dates for each recruiter in the format
[Date1, Date2, Date3,...].
- You created a Derived Column that uses the
- Flatten Transformation:
- After creating the concatenated list of dates, you used the Flatten transformation to split this list into individual rows.
- The Flatten transformation extracts each date in the concatenated string and generates a row for each date, providing the desired output of one row per date per recruiter.