group by week, display as date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a chart and datatable showing values grouped by week,
however displaying only the week numbers isn't very easy to read. Is there a
way to show a representative date for the week? I.E. group all data from the
week of 5/21/07-5/25/07 and display it as 5/25/07 on the chart/table?
 
You can change your week number expression to something like:
Week Of: DateAdd("d",-Weekday([DateField])+1,[DateField])
 
I had tried something similar, causing another problem. When I use a full
date like that in the row, it leaves spaces on the chart for all the unused
dates in between, creating a very empty looking and hard to read graph. Is
there a way to remove those gaps?

Duane Hookom said:
You can change your week number expression to something like:
Week Of: DateAdd("d",-Weekday([DateField])+1,[DateField])
--
Duane Hookom
Microsoft Access MVP


Robert said:
I am trying to create a chart and datatable showing values grouped by week,
however displaying only the week numbers isn't very easy to read. Is there a
way to show a representative date for the week? I.E. group all data from the
week of 5/21/07-5/25/07 and display it as 5/25/07 on the chart/table?
 
I'm not sure if you can remove the gaps. I would have to build the chart and
then play with various properties in much the same way that you would need to
test.
--
Duane Hookom
Microsoft Access MVP


Robert said:
I had tried something similar, causing another problem. When I use a full
date like that in the row, it leaves spaces on the chart for all the unused
dates in between, creating a very empty looking and hard to read graph. Is
there a way to remove those gaps?

Duane Hookom said:
You can change your week number expression to something like:
Week Of: DateAdd("d",-Weekday([DateField])+1,[DateField])
--
Duane Hookom
Microsoft Access MVP


Robert said:
I am trying to create a chart and datatable showing values grouped by week,
however displaying only the week numbers isn't very easy to read. Is there a
way to show a representative date for the week? I.E. group all data from the
week of 5/21/07-5/25/07 and display it as 5/25/07 on the chart/table?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

crosstab query? 12
Crosstab Query by Week with Dates as Headers 5
Count Weeks Between Start and End Date 3
Date Formats-Weeks in Date No 2
Group by week 3
Sort Formatted Date 1
dates into week total 3
Sum query 5

Back
Top