Want Running / Grand Total excluding supressed values

Dear All,
I have made a report in Crystal Report where there is 1 Group which contains database fields as Document No, Document Date, Customer Name and Sales Order Document Total and in the detail section I have database fields as Row Status of Sales Order Line Items as Open or Closed.
Now I have put a formula in the Group database fields that if any row status which is in the detail section has 'C' means closed then it should supress it. The formula is - if {Command.LineStatus} = 'C' THEN TRUE ELSE FALSE. This is supressing and I am having the report as per the desired requirement. Now I want to have a Total of the report which should show me the rand Total of Only what is shown in the report but the problem is that if I am putting the running total then in the grand total the Document Total which are supressed also are adding up. How to resolve it.
Means I only want a running or grand total of what data is been fetched and not the supressed values.
Please help and advise.
Regards,
Swamy

Dear
No there seems to be still the problem.
I once again try to explain my report. I am trying to make a Sales Order which are open. Open for me means for Sales Order whose no Delivery or A/R Invoice is made. Meams all lines items are open. To check this I made a Group and placed the document numer, Document Total in the Group Header and used the supress formula in this field as in format > supress as if {Command.LineStatus} = 'C' THEN TRUE ELSE FALSE.
The field Command.LineStatus is in the detail section. By the above formula I am able to bring only the sales order whose target document is not made for any single line or in other words the sales order is open.
The SQL query is :
SELECT T0.[DocNum], T0.[DocStatus], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocTotal], T2.[LineNum], T2.[TargetType], T2.[TrgetEntry], T2.[LineStatus] FROM ORDR T0  INNER JOIN NNM1 T1 ON T0.Series = T1.Series INNER JOIN RDR1 T2 ON T0.DocEntry = T2.DocEntry WHERE T1.[SeriesName] = 'KSAPRJ' and  T0.[CANCELED] = 'N' AND    T0.[DocStatus] = 'O'
As per your advise I made a new formula field 'Total' and used If {Command.LineStatus} <> 'C' then {Command.DocTotal} else 0
and then placed it in the same Group Header beside Document Total and then run the report then its showing corectly the values but when I sum up the 'Total' field the Adding is wrong.
Can you advise is my report making process wrong or any advise.
Regards,
Swamy

Similar Messages

  • When Requested for a Grand Total the column values changes to zeroes

    Hi,
    I have a report with 2 dimensions and 4 facts. The report is showing the correct data when compared with EBS, but when we are applying grand total in Table View then for fact values are displaying zeroes. However the grand total is correct but for some dimensions the measures are displaying zeroes.
    At this point i have modified the Aggregation rule of 1 measure from Default to SUM and when i clicked results Wonder, i can see grand total and the zeroes were replaced with actual values. When i have compared logical queries before applying the aggregation and after, the measure is surrounded with function REPORT_AGGREGATE and REPORT_SUM respectively.
    Can anyone explain me why is this behavior occurred, i got the solution but i am not in stage to explain to client why it happened.
    Kindly help and i will make sure it is definitely marked.

    Re:  Bottom Line Grand Total
    Use the Subtotal function instead of the Sum function for all totals.
    The Subtotal function ignores other Subtotal functions in the column you are summing.
    Your three "Sum" functions would look something like...
    =SUBTOTAL(9,J3:J7)    '300
    =SUBTOTAL(9,J8:J14)  '900
    =SUBTOTAL(9,J3:J14)  '1200
    '--- Info
    1    AVERAGE
    2    COUNT
    3    COUNTA
    4    MAX
    5    MIN
    6    PRODUCT
    7    STDEV
    8    STDEVP
    9    SUM
    10    VAR
    11    VARP
    Jim Cone
    Portland, Oregon USA
    free and commercial excel programs at...
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Formulated Grand total as percentage value

    Hi,
    Here is my sample data
    Val1 Val2 Percentage( Val2/Val1 )
    59 16 27%
    19 4 21%
    78 20 26% (now instead of getting 26% i'm getting 48%). How to get formulated grand total value based on previous two columns ?
    Thanks

    Try this: on your Percentage column, change the aggregation rule to "server complex aggregate."

  • How to display subtotals in every page and the grand total in the last page

    Hello Abapers,
                         I am working with Smartforms. I am not able to print the subtotal in every page ie the Price for that particular page alone should be summed and in the final page I want the grand total also to be displayed. I tried the Total option in the Calculations tab but the value is just getting incremented on every page..How can I achieve this..
    With Regards,
    Bennet.

    Hi,
    Declare two different variables for subtotal and total
    Use them in the calculation tab of the table node.
    After displaying the subtotal create a program lines node to clear the value of the subtotal. And dont forget to mention the condition in the condition tab of the text node of your subtotal as only before end of main window.
    display the grand total in the text another text node with condition... only after end of main window.
    regards
    padma

  • Grand total based on blocks ..??

    Hi all
    My req. is like, I have 3 blocks, each block I have sum and each block data has on different filters. Now I want put Grand total by summing of all blocks sum. I tried to create variable and putting all filter conditions (3 blocks conditions) in where clause. But it returns last block sum value only. Is there a way to achieve this grand total?
    Regards
    swetha

    Hi Swetha,
    Lets consider two objects in report.
    1. Year  (Available values : 2004,2005,2006)
    2. Sales Revenue
    Created three different variables in report for year.
    2004, 2005 , 2006
    And placed in different blocks.
    And then applied the Total sum of Sales revenue in the third block.Please  find attached snapshot for the same.
    Let me know if you have any issues.
    Regards,
    Pranay

  • SSAS grand total behavior

    Hi all,
    Is there any documentation over there with SSAS total behavior?
    When you explore the data is there any way to change the grand total behavior?
    As you can see in the "cantidad" measure, it shows the total by sum() of all the values.
    "% dto linea" its a calculated member and it does average.
    "importe total pedido" should be 4200 instead of 23275,31.
    I think we need SCOPE() but not sure how to implement it.
    As usually, thanks a lot for your help

    Hi Chris:
    I´ve been trying something but it dodnt work.
    I want to do the following:
    Purchid its the order Id (pc-13/00473)from purchtable, estado its status but from inventTransTable, and recid it´s the recordID as shown in the first screen capture.
    In the first screen capture shows 7.5 for "discount %". I want it to show 10.
    The screen shows discount % by purchtable."order no.", inventtrans."transaction status", inventtrans."recid".
    the values are stored also in inventtrans table, it´s filled by a join with several tables.
    A purchline can hold several transactions.
    In this case, I want to grand total 10 for discount%, not 7.5 (30/4 it´s what the cube is doing) or 40.
    For "importe total pedido" (total order amount) column I´d like to show 4200 instead of 23275.31.
    how could I do this?
    i´ve been trying this, but it doesnt work.
    the calculation was PL_LINEPERCENT (from inventrans, it´s also a fact. table)/ (number of rows count measure)
    SUM(
    DESCENDANTS([PurchTable].[PURCHID].CURRENTMEMBER,[PurchTable].[PURCHID])
    AND
    DESCENDANTS([InventTrans].[Estado].CURRENTMEMBER,[InventTrans].[Estado])
    AND
    DESCENDANTS([InventTrans].[RECID].CURRENTMEMBER,[InventTrans].[RECID])
    [PL LINEPERCENT]/[Recuento Fact Invent Trans])
    thanks a lot!

  • (Smartform) Print grand total on the last page

    Hi everyone,
    I'm trying to print the Grand Totals on the last page of my Smartform. I have two pages - FIRST and SECOND.
    What I did was I created a Text to display the grand total, and I specified that this text should be printed 'Only After End of Main Window'. However, the total is not being printed out.
    I can't change the condition to 'Not on First Page', because my form has more than two pages, and I only want the grand totals on the last page.
    Any help would be appreciated.

    hi,
    we have a window type called final window if u define this type window in second page . create a table in the window and go to calculations tab and define an internal table. i think u can get the grand totals.
    if u want maore clearly go throuh this link
    https://www.sdn.sap.com/irj/sdn/forums
    hope this will help you.
    REWARD ME IF USEFUL.
    thanks,
    gupta
    Edited by: gupta pullipudi on Apr 9, 2008 9:23 PM

  • Urgent Grand total Issue

    Hi Experts,
    In my Dashboard has 5 different table report with a Filter option, when I click the clear filter option it affect all the (5) reports.
    1. But I want to clear filter for each reports separately, is it possible means pls tell me how to fix this issue.
    2. Then I want display Grand total at the top of the Table report ie First Grant total then Table report (Usually table report has Grant total is in bottom of that report)
    Thanks in advance
    Balaa...

    1. I donot think this is possible.
    2. This is possible in Pivot but not possible in normal Tabular view. When you click on the 'Sigma' signs there is an option that enables you to specify the position of the Grand Total
    Regards

  • Incorrect GRAND TOTAL (with COUNT DISTINCT)

    Hi,
    I'm getting wrong results in the GRAND TOTAL of a COUNT DISTINCT measure column.
    I have 5 distinct customers in Paris and 10 distinct customers in NYC, I want the grand total to retrieve the sum of both, that's 15.
    But OBIEE is calculating the distinct customers for all cities, so if there are customers in both Paris and NYC the result is wrong.
    This is the result I'm getting:
    City Number_Distinct_Customers
    Paris 5
    NYC 10
    GRAND TOTAL 12
    12 is the number of all the distinct customers.
    The correct GRANT TOTAL should be 5+10=15
    Thanks
    Regards

    So just as a weird question...from a business standpoint, what does the "15" mean?
    It's not a count of distinct customers, which is what this measure is supposed to be.
    If I were to come up with a business description for what's being described, it's "a count of distinct customers by city....summed up so that it is no longer a count of distinct customers". What and/or how exactly would anyone use such a number?
    Not trying to be a pain, just trying to figure out how this would be used.
    Thanks,
    Scott

  • Grand total feeding from Multiple Subjects Area

    Hi,
    I have to create a report that displays Grand total = sum of values from one subject area + sum of values from another subject area. How do i achieve this.
    Thanks

    Create a prompt based on the report(incl criteria) from SA1, include the measure column in the prompt, the value of the measure is based on the 'contrain' of each column in the prompt and assign to Presentation variable.
    Call Presentation variable in the report which is from SA2.
    ex: Report 1 from SA1 is like: $amount by year, by prodcut,by org
    Report 2 from SA2 is like: $OrderAmount by year, by prodcutType,by org
    Report1 by Prompt: Year->constrain, PRoduct->Constrain, Org-Constrain, $Amount as PS Var 'amt'
    Report 2 as reqular report, try to call @{amt} in the report for addition.

  • Create Grand total in smartform

    Hi,
    I am using the calculation tab in table folder of my smartform. But i am not getting the result ,all blank. Plz help me to solve this issue.
    Thanks in advance.

    Hi Snehashis,
    It will be difficult to visualize your situation .
    But see the following pictures, where Grand Total was computed.
    Individual totals
    For Grand Total calculation, Program lines was created as under, where you want this Grand Total.
    Then
    Obviously SUM1 is flown from another field.  (Calculation filed)
    SUM1, GTOT will be Global Variables. and S_TPREV will be from interface. (s_tprev can be in the form wa_ekpo-ebeln )
    This post just gives you some idea of calculating Grand Totals, to get some clues to apply to your case.
    Jogeswara Rao K

  • Remove Grand total in ALV

    Hi Gurus,
    In my ALV output,
    I have used subtotals.
    i.e i have sorted  PO Number.
    and with respect to that i am calculating sub total to Amount field
    Now the code works perfectly and subtotal of the amount displayed for each PO Number.
    But along with that a GRAND TOTAL is displayed at the end of the ALV List.
    I dont want the grand total and need to remove it.
    How to remove the grand total.
    Kindly help on this.
    Thanks
    deepan M

    Hi deepan adhi ,
    Do not check the option DO_SUM in the catalog.
      DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
                 LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    *Amount
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-TABNAME       = 'IT_DATA'.
      LS_FIELDCAT-FIELDNAME     = 'BETRH'.
      LS_FIELDCAT-SELTEXT_L     =  'Amount.
      LS_FIELDCAT-JUST                =  'R'.
    LS_FIELDCAT-DO_SUM          =  'X'.*
      APPEND LS_FIELDCAT TO LT_FIELDCAT.
    Hope this information is help to you.
    Regards,
    José

  • 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.

  • Measures and Grand Total

    Hello,
    I have a power pivot table as follows (note that OwnSquareFeet is a measure = SquareFeet * OwnPercent):
    Identifier    Address                  SquareFeet   OwnPercent  OwnSquareFeet
        a1          123 Somewhere            50               
    100%             50
        a2          456 Anywhere               80                 
    40%             32
    Grand Total                                   130               140%            182
    Is it possible to:
    - suppress the Grand Total for OwnPercent
    - have the Grand Total for the OwnSquareFeet be the sum of the OwnSquareFeet column as opposed to the Grand Total of the SquareFeet * Grand Total of the OwnPercent (130 * 140%)
    - In certain cases I may want the Grand Total of the OwnPercent to be Grand Total of OwnSquareFeet/ Grand Total of SquareFeet
    In a previous question which was similar in some aspects, I received an answer that included the isfiltered function.  I tried using this with limited success.
    Thanks for any help
    ihorwitz

    Would you please provide more detail on your data model? A copy of the workbook on OneDrive or similar would be most helpful, followed by screenshots/text copied, or a detailed description.
    Further, we cannot suggest a solution if you do not provide the full details of your requirements. What are the certain cases that determine when Grand Total of OwnPercent should be [OwnSquareFeet] / [SquareFeet]
    What are the solutions you have tried and where are you hitting issues?
    Please peruse this link to ask better questions that can get you answers faster.

  • Running Aggregate on grand totals

    Hi,
    We have requirement where user wants to view running aggregate only on the grand total,when we use running aggregate in OBIEE 11g it calculates running totals each row, however we want the running totals on grand totals.
    Another issue is can we show grand total row and running total on the grand total in the same report like the following report.
    This is how the report should look however when we apply running aggregate it is calculating the totals for all the cells in OBIEE, Could any one let us know how we can achieve this.
    Current report
    Branch        W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total  100   11        16       51
    Expected report with Running aggregate on grand total
    Branch            W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total 100 11 16 51
    Running Total   100    111    127     178
    ---------------------------------------------------------

    So having this:
    Branch W1 w2 w3 w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    To achieve what you want you should add a union on the analysis where you set the Branch Column to 'Running Total'.
    In the metric you just have to do a RSUM(facts) and they will be aggregated as an RSUM by Week.
    Let me know if it works.

Maybe you are looking for