C
Charles D Clayton Jr
A2K
I need to group data by weeks. I can do this with either the format
([dt], "ww") or the datepart("ww", [dt]) functions. My problem is
that I want them to be in descending order from latest to earliest and
since they go over the year mark the weeks start back at 1 even though
it is a year later. I tried adding the year to the function
(datepart("yyyy", [dt])&" "& datepart("ww", [dt]) but that gives me a
different problem. While it will sort according to the year, it
treats the weeks as a string and has 10,11,12, before 2,3,4,5. Does
anybody have any suggestions on how to accomplish this?
Thanks,
Charles D Clayton Jr
I need to group data by weeks. I can do this with either the format
([dt], "ww") or the datepart("ww", [dt]) functions. My problem is
that I want them to be in descending order from latest to earliest and
since they go over the year mark the weeks start back at 1 even though
it is a year later. I tried adding the year to the function
(datepart("yyyy", [dt])&" "& datepart("ww", [dt]) but that gives me a
different problem. While it will sort according to the year, it
treats the weeks as a string and has 10,11,12, before 2,3,4,5. Does
anybody have any suggestions on how to accomplish this?
Thanks,
Charles D Clayton Jr