can you count and retrieving by periods?

  • Thread starter Logsheet pencil pusher
  • Start date
L

Logsheet pencil pusher

I have report data that I want to retrieve by periods for specific locations.
Each report period is six months in length, and I want to retrieve location
performance data for 24 months at a time.

Ideally; if I select May 2009 and New Zealand, the serach starts with the
most recent report period (March) and retrieves data for previous four
periods or 24 months.

Directions on how to do this would be greatly appreciated.
 
S

Stefan Hoffmann

hi,
Ideally; if I select May 2009 and New Zealand, the serach starts with the
most recent report period (March) and retrieves data for previous four
periods or 24 months.
Directions on how to do this would be greatly appreciated.
Use the DatePart() functions to create a number and use the Partition()
function to generate your periods. E.g. something like this:

Partition(
DatePart("m",dateField)+(DatePart("yyyy",dateField))*12,
1, 9999999, 6)

You can then create a group based on that partitioned value.


mfG
--> stefan <--
 
S

Stefan Hoffmann

hi,
Ideally; if I select May 2009 and New Zealand, the serach starts with the
most recent report period (March) and retrieves data for previous four
periods or 24 months.
Directions on how to do this would be greatly appreciated.
Use the DatePart() functions to create a number and use the Partition()
function to generate your periods. E.g. something like this:

Partition(
DatePart("m",dateField)+(DatePart("yyyy",dateField))*12,
1, 9999999, 6)

You can then create a group based on that partitioned value.


mfG
--> stefan <--
 
L

Logsheet pencil pusher

thanks

Stefan Hoffmann said:
hi,

Use the DatePart() functions to create a number and use the Partition()
function to generate your periods. E.g. something like this:

Partition(
DatePart("m",dateField)+(DatePart("yyyy",dateField))*12,
1, 9999999, 6)

You can then create a group based on that partitioned value.


mfG
--> stefan <--
 
L

Logsheet pencil pusher

thanks

Stefan Hoffmann said:
hi,

Use the DatePart() functions to create a number and use the Partition()
function to generate your periods. E.g. something like this:

Partition(
DatePart("m",dateField)+(DatePart("yyyy",dateField))*12,
1, 9999999, 6)

You can then create a group based on that partitioned value.


mfG
--> stefan <--
 

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

Top