Hello friends !!!

  • [font="Arial"]

    my question is -

    what i need in reports-- on dynamic columns for peroid 2009-10, 2010-11 ,so on.. my summary fields are col1, col2 for each period. and on grand total , i want to use formula so row grand total for col1 needs formula like

    in period 2010 (col1) + in period 2009 (col1), in period 2010(col2)+ in period 2009 (col2) like this... means if period like 2005,2006,2007 then i want formula for last year 2007 & previous year 2006.

    How to do this in crystal reports in cross tab or else ???

    or either can do this part in sql procedure ??

    in sql -- for dynamic columns on running , how to get last column * previous column for grouping of fields ???

    e.g.

    output like :

    --this year is dynamic columns

    2009   2010 %change%A change B

    ----------------------------------------------------------------------

    A2 B2 A3 B3 (A3-A2)/A2 (B3-B2)/B2

    ----------------------------------------------------------------------

    dataX 2 1 5 8 1.5 7

    dataY 4 5 5 6 0.25 0.2

    dataZ 4 2 9 8 1.25 3

    -----------------------------------------------------------------------

    plz reply..

    [/font]

  • Two things.

    1) Please use the standard font unless there's a reason otherwise, it's annoying to read.

    2) Please see the first link in my signature below for how to present sample schema, data, and other things we'd need to help you further. It appears that English is a second language for you and it will help clarify things.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • Hi

    I am also finidng it hard to see what you are trying to achieve.

    You can add totals to you selects using "with rollup" or "with cube"

    hope this helps.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply