12 Months Rolling Data
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: 12 Months Rolling Data

  1. #1
    Join Date
    Nov 2008
    Posts
    1

    Unhappy 12 Months Rolling Data

    Hi,

    I am trying to generate a report where in I should get 12 months rolling data when triggered on that Month ie say when you generate the report in Nov 08, you should get a report from Dec 07 to Nov 08 and so on...

    Also the same should be presented in the graph and on cross tab.

    Could someone guide me step by step to execute this like, what would be my selection cirteria?

    Please check the formula that I have used.

    if {CHG_Change.Create-date} in dateserial(year(currentdate-1), month(currentdate)-11, 1)to
    dateserial(year(currentdate),month(currentdate)+1, 1)-1 then {CHG_Change.Create-date}

    Though the above formula is correct, in one column it gives a blank field.

    Solution for the above would be much appreciated.

    Regards
    Cauvery

  2. #2
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362

    Re: 12 Months Rolling Data

    I would limit my data through the database query.. Syntax for that depends which dbms you are using.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook


    0100 1101 0110 1001 0110 0011 0110 1000 0110 0001 0110 0101 0110 1100 0010 0000 0100 0101 0110 1100 0110 1100 0110 0101 0111 0010

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center