Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Data type & formatting

Hi    I have data in weeks and years originally in excel it is in 1/2017.. 2/2017... 3/2017 format In PBI query view i split the columnt to have week and year  week    year 1          2017 2  ...
  • MarcelBeug's avatar
    MarcelBeug
    9 years ago

    Well, if you don't know what ISO is (despite my explanation...), then I guess your week numbering is like the system used in the USA, where the week starts on Sunday, January 1 is week 1 and week 2 starts on the first Sunday after January 1.

     

    In that case, you can add a column with formula:

     

    = Date.StartOfWeek(Date.AddWeeks(#date([year],1,1),[week]-1))

     

     

    By the way, your "Creation week" is a number in Power Query with the year in the fraction part (i.e. as decimals).