Create a Date based on the condition

Hi Team,

I would like to create a column based on the condition between two input columns.
condition:
Nee to generate new date rows between Start month change date and End of month and
Date <= End of month.

Attached the Excel sheet with input columns and required output column.

Please help me in resolving the issue.

Thanks,
Subbu
Generate_Dates.xlsx (10.7 KB)

Hi @Subramanyam

This can be achieved by calculating the number of days between each start and end date (and adding one to it to be inclusive), and using the One Row to Many node to create the rows between, then determining what the date for each row is by its relative position in the newly created set of rows.

Here is an example, along with other mechanisms (e.g. using a loop)

2 Likes

Moved this from Job Board to KAP…

1 Like

Hi Subramanyam

Can you please review the workflow below? Feel free to reach out if you have any questions or need clarification.

Best,

Alpay

DateStart&End.knwf (21.3 KB)

1 Like

@Subramanyam
I’ve just updated my workflow — I realized that I had accidentally deleted an important node before posting it :slight_smile:
Apologies for the oversight!

Best,
Alpay

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.