How to create a grand total

My query works fine. I am just wondering if I could add another row to create a grand total for all rows returned running this query. please help
SELECT DISTINCT 'Q'||(TRUNC (TO_CHAR (B.DATELET, 'Q')))||' - ' || :year QuarterYear ,TRUNC (TO_CHAR (B.DATELET, 'Q')) Quarter,
to_char (sum(l.contamt) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) ,   '$999,999,999.99') AwardedDollarAmount ,
       count(P.CPROJNUM) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) ProjectAwarded,
     ---  to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
       SUM (COUNT (C.VENDOR))OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q'))))  NumberOfBidders,
       to_char(SUM (COUNT (C.VENDOR))OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) /  count(P.CPROJNUM) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '999.99') AverageNumberOfBidder
    FROM BIDDERS C,
         BIDLET B,
         LETPROP L,
         PROPOSAL P
   WHERE     C.LETTING = B.LETTING
         AND P.CONTID = L.LCONTID
         AND C.LETTING = L.LETTING
         AND C.CALL = L.CALL
         AND l.lcontid IN
                (SELECT lcontid
                 FROM letprop c, PROPOSAL d
                 WHERE     datestat IS NOT NULL
                        AND UPPER (letstat) <> 'R'
                        AND UPPER (letstat) <> 'B'
                        AND TRIM (UPPER (TIMELET)) = TRIM ('9:30 A.M.')
                        AND c.LCONTID = d.CONTID)
         AND B.DATELET >=
                ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
                            (:from_quarter - 1) * 3)
         AND B.DATELET <
                ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
                            :to_quarter * 3)
GROUP BY  TRUNC (TO_CHAR (B.DATELET, 'Q')), P.CPROJNUM, l.contamt
order by  TRUNC (TO_CHAR (B.DATELET, 'Q'));
Q1 - 2011     1      $174,950,864.40     71     278        3.92
Q2 - 2011     2      $196,470,118.71     96     329        3.43
Q3 - 2011     3       $56,552,583.92     30     116        3.87
Q4 - 2011     4       $25,497,261.10     17     84        4.94
Total  Amount:            35000047800.00       214           807******************************Here is what I would like to create a new row to show grand total.Edited by: 893601 on Dec 30, 2011 12:07 PM

Hi,
Can you please try this.. check this before you execute.. may be u need to change the datatype of the second half of union all statement
WITH tmp AS
(SELECT DISTINCT 'Q'
|| (TRUNC (TO_CHAR (b.datelet, 'Q')))
|| ' - '
|| &year quarteryear,
TRUNC (TO_CHAR (b.datelet, 'Q')) quarter,
TO_CHAR
(SUM (l.contamt) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
'$999,999,999.99'
) awardeddollaramount,
COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
)) projectawarded,
--- to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
numberofbidders,
TO_CHAR
( SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
/ COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
'999.99'
) averagenumberofbidder
FROM bidders c, bidlet b, letprop l, proposal p
WHERE c.letting = b.letting
AND p.contid = l.lcontid
AND c.letting = l.letting
AND c.CALL = l.CALL
AND l.lcontid IN (
SELECT lcontid
FROM letprop c, proposal d
WHERE datestat IS NOT NULL
AND UPPER (letstat) = 'R'
AND UPPER (letstat) = 'B'
AND TRIM (UPPER (timelet)) = TRIM ('9&30 A.M.')
AND c.lcontid = d.contid)
AND b.datelet >=
ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
(&from_quarter - 1
) * 3
AND b.datelet <
ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
&to_quarter * 3
GROUP BY TRUNC (TO_CHAR (b.datelet, 'Q')), p.cprojnum, l.contamt
ORDER BY TRUNC (TO_CHAR (b.datelet, 'Q')))
SELECT *
FROM tmp
UNION ALL
SELECT 'Total Amount: '
|| SUM (awardeddollaramount)
|| ' '
|| SUM (projectawarded)
|| ' '
|| SUM (numberofbidders)
|| ' '
|| SUM (averagenumberofbidder)
FROM tmp;
--------------------------------------------------

Similar Messages

  • How to create a Grand Total on a Multiple Page Document

    I have created a form that is 4 pages long. I created the form in WordPerfect and then converted it to pdf. Then I opened it into Adobe Professional 8. I had it automatically converted into LiveCyle. I would like to just add the total of the four pages to a grand total on page one but whenever I use FormCalc is says it doesn't recognized page 2. Have I done something wrong or am I missing a step somewhere. In the Hierarachy area it sees the form and the four pages. For some reason it doesn't seem to recognize it as one whole form. I'm not sure what the deal is. I have now created a subtotal for each individual page and each page will total separetly. But I can not get a grand total.
    I just purchased Adobe LiveCycle Designer book by J.P. Terry. It doesn't say anything about this. AHHHH! I need some help.

    Hi Carolin,
    You can check Purchase Order. It is a sample that Adobe delivers with LiveCycle Designer. It has a script that takes care about a calculation trough a multiple pages form.
    You should find the sample under :\Program Files\Adobe\......\Designer ES\8.2\EN\Samples\Forms\Purchase Order\Dynamic Interactive\Forms

  • How to create a grand total row wise in obiee reports

    Hello every one,
    Can any one please suggest me how can I achieve the below scenario
    Presently I have
    Total_bill_to_client Total wip_to_bill total_realization_amount total_carry_forwardamount
    123334523234.00 4532423334.00 5324323234343434.00 3243242324324343324.00
    I want this to be displayed in PIE graph,but before that I need to change the format, can you help me how to get this.
    Total_bill_to_client 123334523234.00
    Total_wip_to_bill 4532423334.00
    total_realization_amount 5324323234343434.00
    total_carry_forwardamount 3243242324324343324.00
    Help me.
    Thanks,
    Ven
    Edited by: 991688 on Mar 15, 2013 11:04 AM

    Is'nt there any dimension in your analysis here .? I see only measures but what are you asking OBIEE to base its pie and slices on to show the Pie Graph?
    Let us know.
    Thanks,
    SVS

  • How to get the Grand Total in Module pool Screen

    Hi Frds.
         How to get the Grand Total in Module pool Screen
    Example i have 10 different materials
    for each matarial has different moving . But in my case matarials is doesnt matter here
    10 material Moving Average price to do Frand total and display in one column...
    Please Help me out Frds.
    Regards,
    Kabil

    Hi
    You need to calculate the total in a module of PAI (or PBO) event:
    PROCESS PAI.
       LOOP.....
       ENDLOOP.
      MODULE CALCULATE_TOTAL.
      MODULE CALCULATE_TOTAL.
        GRAND_TOTAL = 0.
         LOOP AT ITAB,
            GRAND_TOTAL = GRAND_TOTAL + ITAB-PWB.
        ENDLOOP.
    ENDMODULE.
    In this way the grand total will be calculated as soon as the user presses enter or another command.
    You can't insert the calculation in the loop of table control, because this loop runs the visible lines only, so it's better to calculate the total out of those loop,

  • How to create a sub total and grand total using my query.

    How can I create a sub total for each section and grand total for using my query like this.  your help is appreciated. I am working with 9g
    WITH  BidItemsInformation  AS
    ( SELECT DISTINCT q.iplineno "Line Number", q.section "Section Number",
             i.item "Item Number",
             initcap(i.idescr) "Description" ,
             i.iunits "Unit",
             q.qty "Quantity" ,q.price  "Engineers Unit Price",
           (q.price * q.qty) "Engineers Estimate"
         FROM letprop l,
            proposal p,
            propitem q,
            bidlet b,
            bidtabs c,
            itemlist i,
            vendor v,
            bidders d 
         WHERE(l.letting = b.letting
                And b.letting = c.letting
                And p.cspecyr = i.ispecyr)
                AND q.prpitem = i.item
                AND p.contid = l.lcontid
                AND q.contid = p.contid
                AND c.vendor = l.avendor
                AND l.CALL = c.CALL
                AND q.lineflag = c.lineflag
                AND q.iplineno = c.iplineno
                AND l.letting = d.letting 
                AND c.letting = l.letting
                AND c.CALL = d.CALL
                AND v.vendor = d.vendor
                --  AND AND l.letstat = 'A'
                AND c.lineflag = 'L'
                AND  l.letting ='&letting'
                AND l.CALL = '&call'
    ), BiddersInformation  AS
    -- This is where you make your changes for vendor name and vendor number Do not touch the above code
    -- It is always the same for any call number and letting date
    ( SELECT IPLINENO "BLine Number",
            MAX(CASE WHEN VENDOR='K020'  THEN bidprice ELSE NULL END) "K020:: Unit Price",
            MAX(CASE WHEN VENDOR='K020'  THEN bidprice ELSE NULL END) K,
            MAX(CASE WHEN VENDOR='H438'  THEN bidprice ELSE NULL END) "H438:: Unit Price",
            MAX(CASE WHEN VENDOR='H438'  THEN bidprice ELSE NULL END) H,
            MAX(CASE WHEN VENDOR='U010'  THEN bidprice ELSE NULL END) "U010:: Unit Price",
            MAX(CASE WHEN VENDOR='U010'  THEN bidprice ELSE NULL END) U,
            MAX(CASE WHEN VENDOR='G110'  THEN bidprice ELSE NULL END) "G110:: Unit Price",
            MAX(CASE WHEN VENDOR='G110'  THEN bidprice ELSE NULL END) G,
            MAX(CASE WHEN VENDOR='H530'  THEN bidprice ELSE NULL END) "H530:: Unit Price",
            MAX(CASE WHEN VENDOR='H530'  THEN bidprice ELSE NULL END) H1
        FROM  BIDTABS
        WHERE LETTING='&letting'
              AND CALL='&call'
              AND BIDPRICE <> 0
        GROUP BY IPLINENO
    SELECT BidItemsInformation."Line Number",
           BidItemsInformation."Section Number",
           BidItemsInformation."Item Number",
           BidItemsInformation."Description",
           BidItemsInformation."Unit",
           BidItemsInformation."Quantity",
           BidItemsInformation."Engineers Unit Price",
           BidItemsInformation."Engineers Estimate",
           BiddersInformation."K020:: Unit Price",
            (BidItemsInformation."Quantity" * K) "KGM CONTRACTORS INC",
           BiddersInformation."H438:: Unit Price",       
            (BidItemsInformation."Quantity" * H) "HOFFMAN CONSTRUCTION COMPAN",
           BiddersInformation."U010:: Unit Price",       
            (BidItemsInformation."Quantity" * U) "ULLAND BROTHERS INC",
           BiddersInformation."G110:: Unit Price",      
            (BidItemsInformation."Quantity" * G) "GLADEN CONSTRUCTION INC",
           BiddersInformation."H530:: Unit Price",      
            (BidItemsInformation."Quantity" * H1) "HOOVER CONSTRUCTION CO"
    FROM   BidItemsInformation,BiddersInformation
    WHERE  BidItemsInformation."Line Number" = BiddersInformation."BLine Number";
    Line Number     Section Number     Item Number     Description     Unit     Quantity     Engineers Unit Price     Engineers Estimate     K020:: Unit Price     
    0010     0001     2011601/00003     Construction Surveying     LS       1     143,000     143,000     75,000     75,000     67,080     67,080
    0013     0001     2013601/00010     Survey Equipment     LS       1     25,000     25,000     25,000     25,000     30,000     30,000
    0020     0001     2015601/00030     Blast Monitor/Survey     LS       1     50,000     50,000     30,000     30,000     35,000     35,000
    0030     0001     2021501/00010     Mobilization     LS       1     382,250     382,250     809,000     809,000     704,000     704,000
    0040     0001     2021602/00010     Well Survey     EACH     60     500     30,000     2,150     129,000     1,600     96,000
    0050     0001     2031501/00040     Field Office Type D     EACH     1     6,367     6,367     4,000     4,000     25,000     25,000
    sub total:
    1610     0002     2401501/01143     Structural Concrete (1a43)     C Y      46     350     16,100     408     18,768     400     18,400
    1620     0002     2401501/01362     Structural Concrete (1c62)     C Y      68     200     13,600     204     13,872     200     13,600
    1630     0002     2401501/03643     Structural Concrete (3y43)     C Y      60     600     36,000     592     35,520     580     34,800
    1640     0002     2401512/03633     Bridge Slab Concrete (3y33)     S F      1,876     24     45,024     28     51,778     27     50,652
    1650     0002     2401521/00030     Structure Excavation Class R     C Y      17     125     2,125     1,000     17,000     500     8,500
    1660     0002     2401541/00010     Reinforcement Bars     LB       2,490     2     3,735     1     3,312     1     3,237
    1670     0002     2401541/00011     Reinforcement Bars (Epoxy Coated)     LB       12,380     2     18,570     1     17,703     1     17,332
    1680     0002     2401601/00010     Structure Excavation     LS       1     2,500     2,500     2,000     2,000     5,000     5,000
    1690     0002     2402583/00020     Ornamental Metal Railing Type Special     L F      284     150     42,600     194     55,096     190     53,960
    sub total
    1820     0003     2401513/00346     Type Curb Railing Concrete (3y46)     L F      135     25     3,375     16     2,093     15     2,025
    1830     0003     2401513/07447     Type Mod P-4 (Tl-4) Railing Conc (3y46)     L F      302     85     25,670     72     21,593     70     21,140
    1840     0003     2401541/00010     Reinforcement Bars     LB       14,780     1     18,475     1     13,598     1     13,302
    1850     0003     2401541/00011     Reinforcement Bars (Epoxy Coated)     LB       76,720     1     103,572     1     85,926     1     84,392
    1860     0003     2401601/00010     Structure Excavation     LS       1     10,000     10,000     116,000     116,000     115,000     115,000
    1870     0003     2402583/00020     Ornamental Metal Railing Type Special     L F      132     150     19,800     184     24,288     180     23,760
    sub total
    total

    You can accomplish that using decode with the grouping function. It returns 1 when that column passed as argument was grouped (or is in some total) and 0 otherwise.
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> with t as
      2  (select 'New York' city, 'US' country, 1 num from dual
      3  union all select 'Los Angeles' city, 'US' country, 2 num from dual
      4  union all select 'London' city, 'GB' country, 2 num from dual
      5  union all select 'London' city, 'GB' country, 2 num from dual
      6  union all select 'London' city, 'GB' country, 7 num from dual)
      7  select decode(grouping(country), 0, country, 'GRAND TOTAL') country,
      8         decode(grouping(city), 0, city, decode(grouping(country), 0, 'SUBTOTAL')) city,
      9         sum(num) num_total
    10   from t
    11  group by rollup(country, city)
    12  /
    COUNTRY     CITY         NUM_TOTAL
    GB          London              11
    GB          SUBTOTAL            11
    US          New York             1
    US          Los Angeles          2
    US          SUBTOTAL             3
    GRAND TOTAL                     14
    6 linhas selecionadas.
    SQL>

  • How to get the grand total ?

    Hi all,
    I got 1 main query say Q1 link to another 3query, Q2, Q3 & Q4. In Q2, Q3 & Q4, I got the difference qty display based on individual repeating frame. Now if I need to sum the grand total of Q2, Q3 & Q4 ? how should I do ?
    I try to put the sumary up in Q1, but the system has given REP-1517 error.
    Any idea please help me. Thanks.
    Rgds
    Lim

    Add summary columns in your data model. Where to put them exactly depends on your report. E.g. if you want a grand total at the end of the report, you create the column outside the query. The Object Navigator shows a Summary Columns node beneath the Queries node for these columns.

  • HOW TO GET THE GRAND TOTALS IN  ALV USING GRID FM

    Hi,
    I would like to know that am getting the sub totals using the ALV_GRID FM,
    But I need Grand totals how i can get and what is the paramater to keep = x to get this Grand totals\.

    Hi,
    If you have the DO_SUM = 'X' in the field catalog internal table for the corresponding column..Then you will get the grand total..
    Thanks,
    Naren

  • How to create a running total formula for different calendar years

    Hello everyone,
    I am looking for some help in creating a running total formula for different calendar years in Oracle. This is what I currently have organized in the crosstab report: vertically I have the cities from our database organized, then horizontially have the following information for each city:
    2006 /2007 /2008
    Amount /Amount Spent /Unspent Amount Amount Recieved/Amount Spent /Unspent Amount Amount Recieved/Amount Spent/Unspent Amount
    Recieved
    I am trying to create a formula that will specify each calendar year. For example, I'd like to have a formula in 2007 which would total the: 2007= {2006 unspent amount + the unspent amount in 2007} and same for 2008= {2007 unspent amount + the unspent amount in 2008}. I hope this is clear, I have simplified the report into a basic interpretation of what i've been trying to accomplish.
    Would anybody know if this is possible and how to approach this?
    Really appreciate it! Thanks.
    Alex

    Hi,
    you can try and define a running total as a calculation in the crosstab as:
    sum(Unspent Amount) over (partition by city order by year)
    i find the crosstab format comfusing sometime since the aggregation is auto applied.
    I would start with a flat table and then "duplicate is as a cross tab"
    for your running total you can sort the data by the city,year and get it to 3 lines for each city, for example:
    city year Unspent Amount all other amount...
    X 2007 10
    X 2008 20
    X 2009 30
    Y 2007 5
    Y 2008 15
    Y 2009 25
    then you can use a funtion to calculate the amount :
    sum(Unspent Amount) over (partition by city order by year)
    this is the sql i used just to check it:
    SELECT city,year,"Unspent Amount"
    ,SUM("Unspent Amount") over (PARTITION BY city ORDER BY YEAR)
    FROM (
    SELECT 'X' city, 2007 YEAR, 10 "Unspent Amount" FROM dual UNION ALL
    SELECT 'X', 2008 ,20 FROM dual UNION ALL
    SELECT 'X', 2009 , 30 FROM dual UNION ALL
    SELECT 'Y', 2007 , 5 FROM dual UNION ALL
    SELECT 'Y', 2008 , 15 FROM dual UNION ALL
    SELECT 'Y', 2009 , 25 FROM dual
    Tamir

  • How to create a overall total or sum for structures created?

    Dear all expert,
    I have a BW query as below.
    Rows:
    Structures
    - Product A
    - Product B
    - Product C
    - Product D
    Diameter
    Description
    Columns:
    Storage Location
    Key Figures:
    - Total Quantity
    - Daily Quantity
    How can I obtain the total or sum at the rows for all the structures?
    Thank You.

    Create a formula in the structure as sum of all the elements of the structure. It is not clean and you won't get just a total row below the list of elements of the structure, but that is the best option with structures and characterisitics mixed in the rows.
    Thanks
    Vineet

  • How to format the Grand Total with condition?

    Dear All,
    I found the XML for Total as below:
    <saw:edgeLayer type="column" columnID="c523314f1e2a401c3">
    <saw:levels>
    <saw:level>
    <saw:displaySubTotal id="t1" subTotalPosition="before">
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec wrapText="true" borderColor="#999999" borderPosition="18"/></saw:displayFormat>
    <saw:caption>
    <saw:text>Total</saw:text></saw:caption></saw:memberFormat>
    <saw:dataBodyFormat>
    <saw:displayFormat>
    <saw:formatSpec borderColor="#999999" wrapText="true"/></saw:displayFormat></saw:dataBodyFormat></saw:displaySubTotal></saw:level></saw:levels>
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec height="25" wrapText="true" hAlign="center" vAlign="middle"/></saw:displayFormat></saw:memberFormat></saw:edgeLayer>
    And I tried to use some conditional format since I want the Total for Ratio can be shown as 0.0 not 0. Thus, I tried to alter the XML by adding the condition to it.
    <saw:edgeLayer type="column" columnID="c523314f1e2a401c3">
    <saw:levels>
    <saw:level>
    <saw:displaySubTotal id="t1" subTotalPosition="before">
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec borderColor="#999999" borderPosition="18" wrapText="true"/></saw:displayFormat></saw:memberFormat>
    <saw:dataBodyFormat>
    <saw:displayFormat>
    <saw:formatSpec borderColor="#999999" wrapText="true">
    <saw:dataFormat xsi:type="saw:number" minDigits="0" maxDigits="0" commas="true" negativeType="redParen"/></saw:formatSpec>
    <saw:conditionalDisplayFormats>
    <saw:conditionalDisplayFormat>
    <saw:formatRule>
    <saw:condition>
    <sawx:expr xsi:type="sawx:comparison" op="equal">
    <sawx:expr xsi:type="sawx:columnRefExpr" columnID="c881e0b4d32235233"/>
    <sawx:expr xsi:type="xsd:string">Ratio</sawx:expr></sawx:expr></saw:condition>
    <saw:formatSpec wrapText="true">
    <saw:dataFormat xsi:type="saw:number" commas="false" negativeType="redParen" minDigits="1" maxDigits="1"/></saw:formatSpec></saw:formatRule></saw:conditionalDisplayFormat></saw:conditionalDisplayFormats></saw:displayFormat></saw:dataBodyFormat></saw:displaySubTotal></saw:level></saw:levels>
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec height="25" wrapText="true" hAlign="center" vAlign="middle"/></saw:displayFormat></saw:memberFormat></saw:edgeLayer>
    It shows some Error Message as "DXE compiler error. No table 'GTGT' found in DXE. Source name: DxeAPI. XML: None". It it possible to add some condition for Grand Total? If so, how I alter my XML??
    Thanks a lot!!!
    Best Regards,
    Martin

    Hi Martin,
    Try to change *" minDigits="1" maxDigits="1"* values from 1 to 2.
    It may help you.
    Thanks,
    Suresh.

  • How to calculate the Grand total

    Hi all,
    I have a table that has three column as Instrument_Name, Instrument_Currency , Value.
    I am using the "table view" to show the data on dashboard.The table shows instrument name , its currency and a value(in that currency).
    Could it be possible that while displaying the grand total of "Value", i should convert the value in a single base currency as USD.
    Thanks

    Hi,
    Well you can and should create a total on the calculation of the Margin%
    But you have to define the calculation correctly, for example if you will use in the calculation the fields without aggregation
    you will get wrong output but if you'll define the calculation as something like:
    CASE WHEN ( SUM(Revenue)+SUM(Cost)) = 0 THEN 0 ELSE SUM(Margin)/( SUM(Revenue)+SUM(Cost)) END
    and then create a total with SUM Aggregation I think you'll get what you asked for

  • Oracle Reports : How to Create Filtered Running Totals

    I need to create a column in a group to represent a running total. But I want that running total to only count rows that meet specific criteria, such as [Field_Value_1] = 'Yes'. How can I accomplish this?

    make a hidden (hidden) column in select like decode(Field_value_1, 'Yes', Val_to_Sum, 0) and make running total on that column ...
    Hope This Helps

  • How to create a "running total" by Quarter and Month

    I need a report that will display 3 columns of monthly summary data and then a total column for that quarter.  I need this to repeat for an entire year.  Here is what the final result should resemble:
    The fields I will bring into the crystal report are:
    Unit
    Code
    Month
    Quarter
    Sum (which is the summary value - let's pretend it's number of apples picked)
    I can probably find a way to get SQL to spit this result out or something similar, but I had hoped Crystal would be able to slice and dice this dataset into the end result above.  Would make my life easier!  Thanks.

    Hi Jack,
    If you're using CR 2008 or higher, you can easily do this with a Crosstab.
    You can add the 'Date' field in the Crosstab's column and the Unit and Code field in the Rows.
    The Date field can then be set to print 'For Each Quarter'.
    To show the summaries after each quarter, you can have a look at the example in this thread:
    Crosstab - column subreports
    and create a formula that inserts a column before a new quarter starts.
    The only complicated part is the insertion of the subtotal columns after each quarter and the formula that actually calculates the subtotals.
    If you think this is too complex or unmanageable, the SQL method of bringing each month (in a quarter) alongwith the totals would also be fine.
    -Abhilash

  • How much is the grand total of all the packages arch supports?

    The title says it all. Estimated, how many gigs of pkgs is their on the i686 repo, and x86_64 repo.
    I was thinking of making a "reserve" of packages on a dedicated package machine. All packages would be downloaded/updated on the machine, when the internet connection is idle. When needed for my main computer to upgrade, it would just grab it from that machine at a blazing fast speed.

    moljac024 wrote:
    daf666 wrote:
    Procyon wrote:I ran awk on the autohtml page of a mirror. For i686 I came out on:
    core: 170MB
    extra: 5500MB
    community: 6200MB
    Woh.. ur saying u need like 3 DVD's to contain Arch? isnt that like 'larger than Debian'? nice..
    How is that larger than Debian ? Last I knew the number of DVDs needed for Debian was 10+ or something like that...
    I remember Etch was shipped with 3 DVDs . Lenny is shipped with 5 DVDs with the last one sized at 1.2 GB .
    We should remember that *-debug packages are huge in size . I came from Debian Sid(unstable) to Arch and I honestly think that Arch has a wider selection of packages in its repositories . The odd package you wouldn't find in the repos can be easily found in the AUR or built from scratch .
    Last edited by Nezmer (2009-04-14 10:13:54)

  • OBIEE 11g - How to display Grand Total in graphs

    hi ,
          I am using obiee 11.1.1.6 version . In a report I have a requirement to display the grand total (present in the table) to be shown in the graph also . Kindly help.
    Regards,
    Niv

    Hi Niv,
    One quick question here.How are you creating Grand Total?
    I have created using grand total by row summing and inserting that value in the Group By Function.
    Attached the screen shot for your reference.
    GT - Download - 4shared
    Mark if helps
    Thanks,

Maybe you are looking for

  • Itunes 64 bit  and windows 7 blue screen of death

    Just installed Itunes 64bit on my new HP laptop and after a restart the computer had to be rolled back to start again. Is there a fault in Itunes....? The very first problem with Windows 7.

  • Error message when running script via package

    Hi there, I have a problem I can't understand - I am running a script from a package, and I get this error message: CopyCatFinanceError Invalid dimension ALL_FCSTPRICING in Lookup rule where CopyCatFinance is the name of the package, and ALL_FCSTPRIC

  • Hooking up the PowerBook to a TV.

    I've hooked up my PowerBook to a TV using the S-Video out port to connect to a yellow video wire which is plugged in at the front of the TV. It is only giving me a fuzzy black and white image. Any ideas why?

  • Can you freeze the audio tracks in 6.0.3

    I have students that are using voice-overs in their projects and every time they move a piece of video all of the audio shifts with the clip. These two pieces - audio and video - were each imported seperately and aligned on the tracks. Is there any w

  • Eleminating duplicate entries in table

    How to remove the duplicate entries from the tables or internal tables. Thankyou for your time in giving the answers. Bhaskar.