I have created a column in a power query that returns the week number of dates with week start day of Friday using the following;
= Table.AddColumn(#"Inserted Week of Year RFT", "W_RFT", each Date.WeekOfYear([RFT],Day.Friday), Int64.Type)
and another column for year;
= Table.AddColumn(#"Inserted Week of Year RFT", "Year", each Date.Year([START FAB]), Int64.Type)
but I need to a week column with the format of "Year_WeekNumber" like "2020_19"
I need a function like an excel formula "=YEAR(BC2)&"_"&WEEKNUM(BC2,15)"
target table as below;
anyone hep me to create function in excel power query?
any idea?
= Table.AddColumn(#"Inserted Week of Year RFT", "W_RFT", each Date.WeekOfYear([RFT],Day.Friday), Int64.Type)
and another column for year;
= Table.AddColumn(#"Inserted Week of Year RFT", "Year", each Date.Year([START FAB]), Int64.Type)
but I need to a week column with the format of "Year_WeekNumber" like "2020_19"
I need a function like an excel formula "=YEAR(BC2)&"_"&WEEKNUM(BC2,15)"
target table as below;
anyone hep me to create function in excel power query?
RFT | Week |
5/19/2021 | 2021_20 |
2/3/2021 | 2021_5 |
5/20/2021 | 2021_20 |
2/3/2021 | 2021_5 |
7/18/2021 | 2021_29 |
3/24/2021 | 2021_12 |
3/24/2021 | 2021_12 |
3/24/2021 | 2021_12 |
3/24/2021 | 2021_12 |
any idea?