I have a Query where I get the WeekDay of a date but by default:
Sunday = 1
Moday = 2
etc.
I think this could work:
select case when datepart(dw,[Date]) = 1 then 7 else DATEPART(DW,[Date])-1 end as WeekDay