Forum Discussion

12scml's avatar
12scml
Resolver I
9 years ago
Solved

Weeknum starting on Friday

Hi! I am trying to create a new column with the WEEKNUM function, however I need the weeks to start on Friday, not on Sunday or Monday.  Right now, I have a column titled Week Number that was made...
  • 12scml's avatar
    12scml
    9 years ago

    The DATEADD([Dates],-2,DAY) part of the equation doesn't work because some of the dates in my [Dates] column are repeating.

  • vanessafvg's avatar
    vanessafvg
    9 years ago

    then create a new column with date only and work out the week num with your calculation?

     

    what error does it give?  i still dont see how that is an issue, why does it care if there is more than one date the same?  maybe thats me just with my sql mind on, why not format it as a date only for the calculation and leave the time bit off?  

  • 12scml's avatar
    12scml
    9 years ago

    No, I don't have to! I've been working with them both though and both DATEADD and WEEKNUM work just fine with the times. I was able to solve the issue though by (I don't understand how this works) duplicating the column and then using the DAX function.