sadavies2906
New Member
- Joined
- Feb 5, 2011
- Messages
- 45
I have created a custom column in a power query that returns the week number of a list of start dates using the following
=Date.WeekOfYear([Start Date])
Below is the output I get in the column header "WEEK", I want to get an output that looks like the column header "EXPECTED".
Not only do I need to add the text "Week" in front of the result but I also need the output to use the current day and work out if the start date is in the past with regards the week number and change those to the text "BACKLOG"
So if I opened the file today on the 20/02 which is week 8, all start dates prior to this week would return "BACKLOG", any start dates in this week would return "Week 8" and anything in the future would have its correct week number.
Hope I've explained this ok
=Date.WeekOfYear([Start Date])
Below is the output I get in the column header "WEEK", I want to get an output that looks like the column header "EXPECTED".
Not only do I need to add the text "Week" in front of the result but I also need the output to use the current day and work out if the start date is in the past with regards the week number and change those to the text "BACKLOG"
So if I opened the file today on the 20/02 which is week 8, all start dates prior to this week would return "BACKLOG", any start dates in this week would return "Week 8" and anything in the future would have its correct week number.
Hope I've explained this ok
Start Date | Week | Expected |
01-Apr | 14 | Week 14 |
02-Mar | 10 | Week 10 |
30-Jan | 5 | BACKLOG |
23-Feb | 8 | Week 8 |
22-Feb | 8 | Week 8 |
17-Feb | 8 | Week 8 |
14-Feb | 7 | BACKLOG |
20-Feb | 8 | Week 8 |
10-Jan | 2 | BACKLOG |
15-Jan | 3 | BACKLOG |
02-Feb | 5 | BACKLOG |