You could create a simple indicator that creates a "week" counter since the start of the data, by looking when the weekday number for today is less than yesterday (indicating a week has ended) and incrementing the counter.
function WeekCount()
{
return Cum( DayOfWeek()<=Ref(DayOfWeek(),-1)...