I need to expand a list given the inputs: start date, end date and days of the week that something should happen. This needs to be done by using M in Power Query.
The date range can span multiple weeks, for example:
start date: 04/15/19
end date: 04/29/19
day of week: 1
I would expect to get 3 rows:
- 04/15/19
- 04/22/19
- 04/29/19
or encompass one week & day:
start date: 04/15/19
end date: 04/15/19
day of week: 1
I would expect to get 1 row:
- 04/15/19
I was using: Get date from weeknumber, dayofweek and year PowerQuery M as a first step in understanding how to approach the solution.
Thanks in advance.