PC Review


Reply
Thread Tools Rate Thread

calendar weeks - nls api settings?

 
 
=?Utf-8?B?S2xhdXMgQXNjaGF1ZXI=?=
Guest
Posts: n/a
 
      6th Mar 2005
i have a very simple and though complex problem:

i have a table with a date field ([date_field]), and some value
([value_field]). now ia want to create a pivot-chart with calendar weeks on
the x-axis going from e.g. cw 50/04 to cw 5/05.

now to my problem:

if i choose in the field list "data_field by week" and drag the entry year
and week to the x-axis access is calculating the cw-number wrongly (first cw
is week with 01.01.05)

if i am using the format function (int(format([date_field];"ww";2;2))) i get
the correct numbers for the calendar week. dragging this field to the chart
results in incorect sorting (cw 01/05, 02/05, 53/04). so i added the year out
of the "data_field by week" to the x-axis and got: 2004/53, 2005/01, 2005/02
but then also 2005/53 for the 01.01.05 and 02.01.05 which is incorrect of
course.

how can i show calendar weeks sorted correctely with a range moving over 2
years?

thx for your help - as always it's somehow urgent!
 
Reply With Quote
 
 
 
 
Ed Kopta
Guest
Posts: n/a
 
      10th Mar 2005
I haven't tried this going from one year to the next, but similar sorting
issues can be fixed by converting the Format function back to a date, i. e.:

CDate((Format([date_field];"ww";2;2)))

-Ed Kopta

"Klaus Aschauer" <(E-Mail Removed)> wrote in message
newsE24B864-0E82-443C-A566-(E-Mail Removed)...
>i have a very simple and though complex problem:
>
> i have a table with a date field ([date_field]), and some value
> ([value_field]). now ia want to create a pivot-chart with calendar weeks
> on
> the x-axis going from e.g. cw 50/04 to cw 5/05.
>
> now to my problem:
>
> if i choose in the field list "data_field by week" and drag the entry year
> and week to the x-axis access is calculating the cw-number wrongly (first
> cw
> is week with 01.01.05)
>
> if i am using the format function (int(format([date_field];"ww";2;2))) i
> get
> the correct numbers for the calendar week. dragging this field to the
> chart
> results in incorect sorting (cw 01/05, 02/05, 53/04). so i added the year
> out
> of the "data_field by week" to the x-axis and got: 2004/53, 2005/01,
> 2005/02
> but then also 2005/53 for the 01.01.05 and 02.01.05 which is incorrect of
> course.
>
> how can i show calendar weeks sorted correctely with a range moving over 2
> years?
>
> thx for your help - as always it's somehow urgent!



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with weeks on calendar Rodolfo Fontes Microsoft Outlook 2 26th Jul 2005 10:43 PM
OWA calendar: 52 or 53 weeks =?Utf-8?B?S1JJ?= Microsoft Outlook Calendar 1 6th Feb 2005 03:05 PM
Calendar 13 Periods 4 weeks each =?Utf-8?B?Q0hhd2tATWNj?= Microsoft Excel Misc 2 10th Dec 2004 04:27 PM
Weeks in a Calendar GregR Microsoft Excel Misc 2 9th Dec 2004 12:55 AM
Fiscal Calendar Weeks ak Microsoft Excel Worksheet Functions 1 29th Jul 2003 08:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 PM.