Try:
datepart("ww",{table.date})
You can change the way you count week 1 of the year by adding conditions to this formula for the first day of the week and the first week of the year, as in:
datepart("ww",{table.date},crMonday, FirstFullWeek)
The help files will give you the other options you can use for these conditions.
-LB