Display formula

hi
can anyone help me with creating a formula for the following query
select (SUM(case when F.ITEM_UOM = 'Cubic Feet' then
            ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD))ELSE 0 end)*(0.047) +
      sum(case when F.ITEM_UOM =  'Pound' then
           Ceil((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )ELSE 0 end)*0.0005)*(j.opn_value/2)transport,
        SUM(case when F.ITEM_UOM = 'Cubic Feet' then
            ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD))end)sload ,
      e.opn_job_desc,J.OPN_VALUE---e.invoice_ref,e.invoice_ref_m,f.item_number,f.item_name,f.item_uom,f.description,J.OPN_VALUE
     FROM xxnp_opn_joblog_001 E,
          XXNP_OPN_JOBLOG_EST_002   F,
          XXNP_OPN_JOBLOG_STAGE_002 G,
          XXNP_OPN_JOBLOG_SLURRY_003 H,
            XXNP_OPN_JOBLOG_RES_005 J
      WHERE E.OPN_JOB_DESC   = 'KOC/KDC-26/RA-277/6' AND E.MANUAL='N'
       and J.opn_resource_desc='4X4  PICK-UP OR LIGHT VEHICLES'
        AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
      AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
        AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
        AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
        AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
        AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID group by e.opn_job_desc,J.OPN_VALUE
          output is
TRANSPORT  SLOAD  OPN_JOB_DESC                       OPN_VALUE
12900.396     1997     KOC/KDC-26/RA-277/6                251
i am giving an example of what i meant with the following query
select     CASE
     WHEN  f.item_uom = 'Cubic Feet'
     THEN  h.slurry_vol_actual     ||
           ' * 5.6146 / '          ||
           DECODE ( h.slurry_yield
               , 0 , NULL
                , h.slurry_yield
                when F.ITEM_UOM =  'Pound'
then h.slurry_vol_actual ||
'*5.6146/'           ||
DECODE ( h.slurry_yield
               , 0 , NULL
                , h.slurry_yield
               )           ||
'*94*'                    ||
( F.ITEM_PERCENT  )        ||
    '/100'
     when F.ITEM_UOM =  'Gallon'
then h.slurry_vol_actual ||
'*5.6146/'           ||
DECODE ( h.slurry_yield
               , 0 , NULL
                , h.slurry_yield
               )           ||
'*' ||     F.ITEM_PERCENT           
END     AS formula,case when F.ITEM_UOM = 'Cubic Feet' then
            ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD))
        when F.ITEM_UOM =  'Pound' then
            ceil((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )
          when F.item_uom='Gallon'
     THEN ceil(ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*F.ITEM_PERCENT )
       end MAT_ACT,E.MANUAL,
       e.opn_job_desc,e.invoice_ref,e.invoice_ref_m,f.item_number,f.item_name,f.item_uom,f.description,H.SLURRY_VOL_ACTUAL,H.SLURRY_YIELD,F.ITEM_PERCENT,E.RIG,E.WELL
     FROM xxnp_opn_joblog_001 E,
          XXNP_OPN_JOBLOG_EST_002   F,
          XXNP_OPN_JOBLOG_STAGE_002 G,
          XXNP_OPN_JOBLOG_SLURRY_003 H
      WHERE E.OPN_JOB_DESC   = 'KOC/KDC-26/RA-277/6' AND E.MANUAL='N'
      AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
        AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
        AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
output
FORMULA                                         MAT_ACT            OPN_JOB_DESC                           ITEM NAME             ITEM UOM
345 * 5.6146 / 2.36                           821                       KOC/KDC-26/RA-277/6                NP CM07                Cubic Feet
345*5.6146/2.36*94*.45/100           348                         KOC/KDC-26/RA-277/6              NP     FL02                             Pound
345*5.6146/2.36*.01                       9                              KOC/KDC-26/RA-277/6                 NP AF01                           Gallon
THE FORMULA  as to how data is coming in mat_act column is given,these are run time values
similarly can anyone help me to obtain formula for SLOAD and TRANSPORT in first querythanking in advance
Edited by: makdutakdu on Feb 15, 2010 2:07 PM

hi
i tried the following
select case when F.ITEM_UOM = 'Cubic Feet' then
           H.SLURRY_VOL_ACTUAL ||'* 5.6146)/' || H.SLURRY_YIELD ||'* 0.047  +' ||
      case when F.ITEM_UOM =  'Pound' then
           H.SLURRY_VOL_ACTUAL || '* 5.6146 /' || DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD )||'*94' ||'*' ||
             F.ITEM_PERCENT||'/100 ' || '*0.0005 *' ||(j.opn_value/2) end transport,
         SUM(case when F.ITEM_UOM = 'Cubic Feet' then
            ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD))end)sload ,
      e.opn_job_desc,J.OPN_VALUE---e.invoice_ref,e.invoice_ref_m,f.item_number,f.item_name,f.item_uom,f.description,J.OPN_VALUE
     FROM xxnp_opn_joblog_001 E,
          XXNP_OPN_JOBLOG_EST_002   F,
          XXNP_OPN_JOBLOG_STAGE_002 G,
          XXNP_OPN_JOBLOG_SLURRY_003 H,
            XXNP_OPN_JOBLOG_RES_005 J
      WHERE E.OPN_JOB_DESC   = 'KOC/KDC-26/RA-277/6' AND E.MANUAL='N'
       and J.opn_resource_desc='4X4  PICK-UP OR LIGHT VEHICLES'
        AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
      AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
        AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
        AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
        AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
        AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID group by e.opn_job_desc,J.OPN_VALUE
          i am getting missing keyword
please help

Similar Messages

  • Display Formula Variable in Web Query or RRMX

    Hi, 
         I'm calculating a Formula Variable for Shipping Days in my query.  I would like this to display in my web page in the upper right of my screen.   I'm mostly interested in doing this for the web.  How would I access the value of this variable and display it on the web page outside of the table web item?
    Any ideas are greatly appreciated!...
    Thanks,

    Hi,
    use the web item Text elements
    and specify your variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/frameset.htm
    Heike

  • Problem in % display (formula)

    Hello,
    I have a simple report with one key figure (e.g. Sales in EUR).
    Now I want to create a formula which shows the % sales from result.
    Example:
                               Sales in EUR       Sales in %
    Customer A         30.000                30%
    Customer B         20.000                20%
    Customer C         50.000                50%
    Result               100.000
    I tried with formula %CT, %GT and %RT.
    The result is always wrong.
    How to solve this issue?

    HI,
    you have to use %GT when you want to get the % share of individual values over the over all result.
    Percentage Share of Overall Result (%GT)
    ●      %GT <Operand>
    in your case %GT sales, this should give the correct results. Check once again how you are using this formula.
    This shows how high the percentage share is with regard to the overall result. The overall result is the outcome of aggregating the highest results level. Dynamic filters (filters that were not specified in the Query Designer) also play a role in calculating the overall result
    please go through this for more information
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e2/16f13a2f160f28e10000000a114084/frameset.htm
    Regards,
    rik

  • EPMCOPYRANGE displays formulas outside the report on expanding

    Hi Experts,
    I am facing issue with EPMCOPYRANGE function as follows:
    I have an EPMCOPYRANGE function with certain formulas and save comment in Column M, N, O
    When i execute the report this function works fine (Example: it expands for 100 rows with correct calculations)
    When i refresh it again for a lesser data (Example: with data upto 50 rows) the rest of the 50 cells still contains the formula from previous EPM COPYRANGE and i get error as #REF
    Same is the case when i run the report for a period with no data, i can still see the formulas in the cells in column M, N, O
    is there any settings to be maintained for EPMCOPYRANGE function which i am missing?
    Regards,
    Shweta Salpe

    Hi Vadim,
    Here, when i select period 1 and refresh the report the report has 400 rows populated. With Variance ($) and Variance (%) as caluclated members through EPMCOPYRANGE function.
    When i refresh the report for period 2 the report has rows till 327 and the rest of the rows 328 to 400 still contains the formula for variance but since there are no refrence values it shows as #REF.
    When i refresh the report again for period 3 it will have 450 rows and when i go back to period 2 now, the rows 327 to 450 will contain unwanted formula in the variance column.
    Thanks,
    Shweta Salpe

  • Display "group name" values and their average formulas (calculation of average age) on a single line or row

    <p>I have four groupings, Domain, Area, Priority (3rd level of grrouoping) and then Problem ID. Priority group could have values such as &#39;1&#39;, &#39;2&#39;, &#39;3&#39;, &#39;4&#39; and &#39;5&#39; with corresponding "average" age formula on these group level. values.</p><p>Example:  1         Avg Age= 30</p><p>               2         Avg Age= 45</p><p>               3         Avg Age= 69</p><p>Reguirement:  Display group name values and their corresponding average formula on a single line/row.</p><p>Sample Solution:   Priority 1 = 30, Priority 2 = 45, Priority 3 = 69 </p><p> ***solution above should be displayed/concatenated on one line.</p><p>Your help is greatly appreciated, thank you in advance.</p>

    So right now - your report looks like this
    GroupHeader 1
       GroupHeader 2
           Priority 1 = 50         (actual display of Group 3)
           Priority 2 = 75         (actual display of Group 3)
           Priority 3 = 45         (actual display of Group 3)
           Priority 4 = 9          (actual display of Group 3)
           Priority 5 = 8          (actual display of Group 3)
    And you want to change that so that it displays horizontally.
    If there will only ever be 5 priorities, I think I would cheat the system a bit.  Create a formula that runs at the group 3 level and dumps the values into 5 separate variables (formula below).
    Then create 5 separate display formulas and put them in Group Footer 2 (if you already have a GF2 - then create a second one and move it above your current GF2).  Suppress the G3 section and you should be close to what you are after (unless you also have detail sections, then we'll need to revisit).
    This could also be accomplished with a multi-column subreport at the G2 or G3 level if you need more flexibility.
    formula *******
    numbervar priority1;
    numbervar priority2;
    numbervar priority3;
    numbervar priority4;
    numbervar priority5;
    if {DB.Priority} = 1 then priority1:= {@avgGroupPriorityAvgAge}
    else if {DB.Priority} = 2 then priority2:= {@avgGroupPriorityAvgAge}
    else if {DB.Priority} = 3 then priority3:= {@avgGroupPriorityAvgAge}
    else if {DB.Priority} = 4 then priority4:= {@avgGroupPriorityAvgAge}
    else if {DB.Priority} = 5 then priority5:= {@avgGroupPriorityAvgAge}

  • Chart Expert - Why are some formula fields not available?

    I have a report where I had to do Running Totals with formulas.  Following what I learned long ago from the documentation, I laid in my formulas, and then setup some "Display" formulas to print out the results at the end of my report.
    Now I am adding a chart to show a sort of 'summarized' version of the report - its a simple Pie chart...
    But when I go into the Chart Expert and want to select those Display formula fields (there are 4 of them) - they do not appear in the list?
    FYI - These four Display formulas are in the Report Footer of the report, and my chart is in the Report Header. 
    Why do some of my formula fields appear in the Chart Expert "select field" list - while others do not?
    I checked the documentation on this, but it is very "lite" and does not indicate why this might be...
    Any help is most appreciated!

    Read again -  "Problem has been circumvented" NOT "worked around".  In other words, when you pay a fortune for a poorly documented piece of software and you are dependent on answers from a Forum, where at times no one answers your question(s) and your boss is shouting at you as to how you selected such a lousy piece of software with such "lite" documentation and is hardly going to pay any more money for a support call to answer a simple question that should have been covered (and then some) in the documentation, (let alone support of the problem) - you CIRCUMVENT, i.e. give up and find some other way to do what you were trying to do.
    Hence, problem circumvented, NOT worked around.
    Thanks for asking - here's 10 points for your efforts.

  • How can I show formulas in spreadsheet AW6?

    I did a spreadsheet in Claris Works and was able to switch back and forth between the results of some calulations and the formulas. In a AW6 spreadsheet I can't figure out how to show the formulas. I've gone to Menu>Option>display>formulas (plus all the other display options such as solid lines,etc).
    All I can display is the results of the calculations. I can't check the calculations. I copied the basic spreadsheet from my G3 OS 9.1 and then pasted the whole thing into AW6. It seemed to work OK and I don't think this pasting is the problem.
    Would appreciate comments.

    I've gone
    to Menu>Option>display>formulas (plus all the other
    display options such as solid lines,etc).
    All I can display is the results of the calculations.
    I can't check the calculations. I copied the basic
    spreadsheet from my G3 OS 9.1 and then pasted the
    whole thing into AW6. It seemed to work OK and I
    don't think this pasting is the problem.
    None of the Display options other than Formulas should have any effect on whether formulas or results are displayed.
    Do you actually have the formulas in the sheet? What displays in the entry box when you click on a cell that should contain a formula? If you change data in an entry cell (one used for data entry), does the result change in cells using that data in their calculations?
    Do you still have the original (ClarisWorks) SS and application? If so, I'd try redoing the Copy/Paste operation, this time setting the ClarisWorks file to display Formulas before doing the Copy.
    Regards,
    Barry
    BTW: I've assumed you're currently using Tiger and AW 6.2.9, which is unable to open older ClarisWorks files. Showing information about your computer and OS when posting a question is often useful in narrowing the possibilities.

  • Need Count of Displayed records after suprresion

    Hi All,
    My question is looks very simple but it made me very tough to get it. pls help me if you have any clue.
    I have a report having 20 detail records from Database.
    I used some condition at Section expert to suppress some data, after that I have only 10 records as report out put.
    Now, at the report footer I need the count of the records.So, when I use count function its showing 20 instead of 10.
    How to get the count of available records after suppressing.
    Thank you,
    Krishna Pingali

    Hi Krishna!
    I would try using a conditional Running Total formula to add each record that does not fit the suppression criteria, and then a display formula to display the final total.
    Ex -
    @Non-Suppressed Count Calc
    WhilePrintingRecords;
    NumberVar NSC;
    If <> <suppression criteria> Then NSC := NSC + 1
    Else NSC := NSC
    @Non-Suppressed Count Display
    WhilePrintingRecords;
    NumberVar NSC;
    NSC
    Place the first formula in your Details Section and the Second in the appropriate Footer Section.
    Hope that helps!  

  • DISPLAY RUNNING TOTAL IN GROUP HEADER

    Post Author: sharonmtowler
    CA Forum: Formula
    I know there is a way to do this, just forgot how. i am in version 8.5.  i have a manual running total which calculates order qty for the entire sales order.i (dont like using the rt wizard-buggy)
    the knowledge base says to use a cross tab, but there hit or miss also.
    does anyone know how to show the display formula for a manual runnning total in the group header instead of group footer?

    Post Author: pandabear
    CA Forum: Formula
    Hi Sharon,
    I wanted to try this before I sent it to you, but my Crystal is down because (blah, blah, long story here....yawn....).
    I think I understand.  You want to show the "Total" for each group, in the group header instead of the group footer?
    My experience is that Crystal works from the top down (read: limiting), so I need a work around to do this.
    1 - Do the calculation in the query...sum by group, filter with a "Case" statement, etc.  If there's a reason you can't do that then
    2 - (and this is what I wanted to try first) see if you can group on the same field twice. 
    Group 1 - Test.field
    Group 2 - Test.field (same field)
    If you can,
    then just carry the total from the group footer of the previous group (same field) above you, and bring it down
    (shared var ?) to the group below.
    My 2 cents is up.
    Hope this helps,
    The Panda

  • Running Total Grouping Formula

    I have a running total condition that I need to summarize the field CAWP.BAC. I would typicaly evaluate this total for change of group 4 and reset on change of group 3. I need to condition the evaluation for ".900" in {CAWP.WP} but i also need to evaluate for change of group 4. Does any one have any examples of a formula for evaluation "on change of group"?

    Hi John,
        For this you can try using manual running total formula's.
    1) Create a @reset formula as below and place it in group header 3.
        Formula :
        Whileprintingrecords;
        Numbervar i:=0;
    2) Create an @evaluation formula and place it in detail section.
       Formula:
       whileprintingrecords;
       numbervar i;
       if {CAWP.WP} = ".900" then
          i:= i+ {CAWP.BAC}
    3) Create a @display formula and place it in group footer 4.
        Formula:
        whileprintingrecords;
        numbervar i;
    Hope this will help!!
    Regards,
    Vinay

  • Formula headings in BEx shows UID....

    In the formula description I have "% change vs last year".  When I execute it in BEx the heading displays "Formula 4AN7E9DVTL4EKQ3AKQFJMB7KJ (which is the UID).  I can not get it to display "% change vs last year".  I have checked and unchecked "Use Standard Text" and that does not work.  Is this some sort of bug?  Can anyone help me out with this?
    File Version = 7100.2.8.1039
    Build = 983952
    Patch Level = 8

    HI,
    I am also facing the problem, if u have resolved it can u please tell me how u did it.
    Regards,
    Sandhya.
    Edited by: Sandhya Rani Boya Hussainappa on Oct 14, 2008 11:42 AM

  • How to Incorporate formula in QE51 (result recording screen for insp char)?

    Hi,
        Kindly help me in incorporating a formula field in QE51 screen where we record results for inspection characteristics. I need to add a formula in a field which should be a qualitative characteristics which should make calculations of few quantitative fields
    EX:
    Field 1 = xxx
    Field 2 = yyy
    Field 3 = zzz
    Field 4 = Field 1 - field 2 - field 3
    If the Field 4 has someother value other than zero upon saving the result it should throw some error.
    How can i add this formula in the system.. can anyone help me?
    Thanks in Advance
    Best Regards
    P.K.Senthil Kumar
    Edited by: senthil kumar on Apr 5, 2008 10:55 AM

    See the std sap help, then if you have any aboubt come back
    Formula Evaluation 
    Use
    You can have the measured values of a characteristic (calculated characteristic) automatically calculated from the input and results of other characteristics (calculation input characteristics). The formula is automatically evaluated when the characteristic is valuated. You can trigger the formula evaluation before the characteristic valuation.
    You can determine the weight of a glass bottle, by determining the weight of the empty bottle and the volume of water needed to fill it. Both these measurements are represented as calculation input characteristics; the total weight is then the calculated characteristic.
    Prerequisites
    For formula calculation, the following prerequisites must be fulfilled:
    •     You have defined the formula that is used in the inspection characteristic for the task list.
    You can use standard mathematical functions in this formula, as well as the following operands:
    o     Numerical constants
    o     The specifications and results of other characteristics in the same operation
    o     External function modules
    •     For inspection lots with an assigned serial number profile or units to be inspected with external numbering, the following applies:
    To evaluate the formula for original values, you must ensure that a reference is made to the same serial number for the calculation input characteristics. The "Serial number - original value" assignment is the decisive factor for the first (leading) calculation input characteristic. If a serial number is not available for the first calculation input characteristic in another calculation input characteristic, you cannot evaluate the formula.
    Activities
    To calculate the formula from the valuation, choose:
    •     Evaluate formula on the characteristic overview screen
    •     Extras &#61614; Formula &#61614; Evaluate formula on the characteristic single screen
    If values from other characteristics are used in the formula, these calculation input characteristics must have already been valuated before the formula can be calculated.
    To display the formula, choose Extras &#61614; Formula &#61614; Display formula on the characteristic overview screen or the characteristic single screen.
    The formula printout is then displayed in a window.

  • Displaying DateTime range selected in Select Expert

    I have inherited a report that displays data for a DateTime range that is selected from a tab in the Select Expert. This time period is usually a week, sometimes a day. How can I display in the page header this DateTime range that has already been selected in the Select Expert. It currently displays the Print Date, but that is confusing and worthless. The DateTime displayed needs to match the report data.
    thanks,
    Jeff

    The easiest way is to use Minimum and Maximum functions.
    If DateRange selected by Date range parameter, then you can use the following display formula:
    "From "  + ToText(Minimum({?DateRangeParameterName}) + " To " + Maximum (({?DateRangeParameterName})
    or you can refer to Date field with the same logic
    "From "  + ToText(Minimum() + " To " + Maximum (()

  • Sum of a formula

    Hi,
    I have a formula, @Sum_NonComm_5_POS_BOM, in my Group 5 Footer
    // Sum_NonComm_5_POS_BOM
    whileprintingrecords;
    global numbervar Sum_NonComm_3_Inv;
    global numbervar Sum_NonComm_5_POS;
    global numbervar Sum_NonComm_5_POS_BOM;
    if {@Flag_POS_Non_Comm}
    then Sum_NonComm_5_POS_BOM := Sum_NonComm_5_POS
    else Sum_NonComm_5_POS_BOM := Sum_NonComm_5_POS + {Commission.POS_FI_NETTO_GES};
    Sum_NonComm_3_Inv := Sum_NonComm_3_Inv + Sum_NonComm_5_POS_BOM;
    Sum_NonComm_5_POS_BOM;
    I also have another formula, @CommType_5_POS_BOM_Rate, in Group 5 Footer, which is calculated elsewhere, so very simple.
    // CommType_5_POS_BOM_Rate
    whileprintingrecords;
    global numbervar CommRatePOS;
    CommRatePOS;
    In Group 3 Footer, I need to create a formula that sums @Sum_NonComm_5_POS_BOM only where @CommType_5_POS_BOM_Rate is not 0.
    Syntax is eluding me.
    Thank you,
    Matt

    Hi Matt,
    Try this:
    1) Create a Group Footer 5b section and suppress it
    2) Create a formula with this code and place it on the new Group Footer 5b section:
    whileprintingrecords;
    numbervar subtotal;
    If {@CommType_5_POS_BOM_Rate} <> 0 then
         subtotal := subtotal + {@Sum_NonComm_5_POS_BOM}
    2) Create a reset formula and place it on the Group Header #3:
    whileprintingrecords;
    numbervar subtotal := 0;
    3) Finally, create a Display formula that displays the subtotal on the Group Footer 3:
    whileprintingrecords;
    numbervar subtotal;
    Hope this helps.
    -Abhilash

  • Creation of Sub-Totals within Groups

    Hi - hope this is me just being a plank but I've hit a brick wall whilst trying to recreate a set of management accounts. So far the report has just two Groups - call them A & B for ease. Group B summarizes the detail and Group A neatly collects the results from Group B.
    Group A  comprises 6 parts all doing their bit and all the standard Crystal Sub-Totals (Summaries) work just fine. The problem I encounter is when I need to insert another Sub-Total into Group A which summarizes multiple parts of Group A e.g. Part 1 is Sales, Part 2 is Cost of sales, Part 3 is Labour, Part 4 is Expenses, Part 5 is Other and Part 6 is Depreciation. I need to insert a Sub-Total between Parts 3 and 4 which basically gives a total of Sales minus Cost of Sales minus Labour and to then continue with Parts 4 to 6. This is obviously a huge simplification of the issue but an answer to this would let me proceed with everything else.
    I've tried creating an line so I can add a formula for this by giving it a name of its own in Group A but it fails to appear on the report. I've also tried the 'Insert Section Below' option and whilst I can suppress it where necessary the formula just picks up values from the last entry on the Detail Section.
    Any ideas where I am making some elementary mistakes and is there an easy solution? Many thanks

    Hi,
      Try to create a manual running total formula for summing the fields with a condition.
    Create a @reset formula and place it report header:
    formula:
    whileprintingrecords;
    numbervar i:=0;
    Create a @eval formula and place it in group header A:
    formula:
    whileprintingrecords;
    numbervar i;
    if {groupname.field} = 'Labour' or {groupname.field} = 'Expenses'  then
    i:= i + {summary.field};
    Create a @display formula and place it in report footer;
    formula:
    whileprintingrecords;
    numbervar i;
    Hope this helps!
    Regards,
    Vinay

Maybe you are looking for

  • Importing cd into itunes blues

    Hi, I am a new user. First just a little background. When I used itunes to add my music some WAVs I had made with Media player had no names so everything imported as unknown. I went to the music folder and renamed each album from 'unknown' to its cor

  • ServerSocket bind, bug or windows feature

    I wanted to check if a TCP socket was already bound before attempting to use it. I had my own ideas, but looked for other ideas as well. While testing these other ideas I stumbled on the following issue. On Windows XP(SP3), its the work platform of c

  • Vmware troubles (4.5.2-8848)

    For some reason or another the installation goes smoothly until it tries building the vmnet module (vmmon works flawlessly...but vmnet?!) its using the same build path... same kernel (I only have the one 2.6.11-7. If anyone has any suggestions or kno

  • KIMYONG : Forms Client Runaway 발생시 조치사항

    Purpose ========= f60webmx 이 Runaway process 로 남아있을경우 불필요한 자원을 사용할수 있습니다. 이에 대한 조치사항을 기술하고자 합니다. Cause ======= 1. Forms client process (f60webmx ) database server process 와의 socket connection 이 끊겨서 발생하수 있습니다. 2. 어떠한 database server process 도 현재의 Form

  • Oracle 10g Infrastructure database unavailable alert message!!!

    Dear All, I have installed Oracle 10g AS on A machine & Oracle 10g Infrastructure on B machine both are in sync form means Middle-tier A machine configured with Infrastructure B machine well i am facing a problem for few days that in a day 4 or 5 tim