Row Total Query

Hi All,
I want to calculate the total expense amount from the Service call screen. I have one UDF U_amt and I want to have total expense amount in it. I am using following stored procedure,
IF @transaction_type = 'U' AND @Object_type = '191'
BEGIN
UPDATE OSCL SET
U_amt = (SELECT SUM(T2.[DocTotal]) FROM OSCL T0 , SCL4 T1, OINV T2 WHERE T1.[SrcvCallID] =  T0.[callID] and  T2.[DocNum] =  T1.[DocNumber] and DOCENTRY = @list_of_cols_val_tab_del)
END
But its not working properly. It shows amount but the amount is not correct. Can anybody help me out with this.
Regards,
Siddiq

Hi Muhammad
As mentioned countless times on the forum, updating SAP Business One Tables directly is not allowed or supported even if it is a User Defined Field. As suggested, rather use the formatted search functionality to achieve this or consider an SDK development if unsuccessful. The risk of updating fields incorrectly is not worth it.
Try the following query in a formatted search:
SELECT SUM(T0.[DocTotal]) AS [Amount] FROM OINV T0 INNER JOIN SCL4 T1 ON T0.[DocNum] = T1.[DocNumber] WHERE T1.[SrcvCallID]  = $[OSCL.callID] GROUP BY T0.[CardCode]
Kind regards
Peter Juby

Similar Messages

  • Discoverer Report Row Total

    We are running Oracle BI Discoverer Viewer version 11.1.1.4.0. When we upgraded to this version we lost some functionality. In the previous version the report displayed the number of rows the query returned. Now the row totals display only under certain conditions. For instance, I have a inventory report name INV-REP-120 and it prompts the user for 6 parameters & displays 6 columns of data. One of the parameters is named ‘Keyword' and I’ll use this one in the problem description. When I set the keyword parameter to ‘HINGE’ The bar at the top of the results sheet it displays:
    ‘Rows 1-25 of 81, Columns 1-6 of 9’
    When I change the keyword to ‘TUBE’ the viewer displays:
    ‘Rows 1-25, Columns 1-6 of 9’
    The total rows are not displayed but the number of pages. It appears that if the total number of rows is less than 200 then the row total is displayed. I changed the rows displayed from 25 to 100 and scrolled down to the last page and now the reports displays:
    ‘451 – 458 of 458, Columns 1-6 of 9’
    When I use the key word TEE I get :
    ‘Rows 1-50, Columns 1-6 of 9’
    There are 596 tees, which would be about 12 pages of 50 rows. I noticed that at the top of table there is a field ‘Page 1 of 5.’ It looks like if there are more than 5 pages it does not display the total number of rows.
    There seems to be some interaction between the total number of rows the number of rows per page and perhaps a setup on the back-end that determines whether or not the row total is displayed. How can I configure the viewer at the front-end and/or back-end to consistently display the row total for a report? Is there a Discoverer preference located in the pref.txt in the apps server that controls this?

    Hi,
    You can inform to your SP to edit the table EUL4_documents
    and ask him to modify the name of the report that is stored in the column DOC_NAME .There is absolutely no necessary to open the work book that is stored in the database and change the work book name
    Regards
    Swamy!

  • BP Aging Anamolies (Period amounts and Row total anamoly)

    Hi All,
    Is there a known bug with the Customer Receivables Ageing Report and Suppliers Liabilities Ageing Report in SAP B1 v2005A PL 18?
    When trying to produce Backdated BP Aging report;
    1. The Total amount for several BP accounts reflected on the ageing report match the respective BP account balance as at the selected date, but the ageing amounts across the page (ageing intervals) do NOT correctly cross-add to the row Total
    2 The Grand total of the Total column of the ageing report does NOT agree to the balance of the corresponding GL control account as at the "Posting date: To"
    3.  The rogue BP accounts involved all seem to have had some "reversing" transactions which give rise to the variance, such as: JE debits which have been included in the calculation of the account balance/row Total (often = Nil) of  the BP report, but do NOT appear to have been included in the total of the interval in which the JEs occurred.
    Incoming Payments that have been cancelled, such that the debit transaction (the reversal) has been included in the calculation of the account/row Total (often = Nil) of the BP report, but does NOT appear to have been included in the total of the interval in which the cancellation occurred.
    Report Selection Criteria:
    Customer/Supplier group: All
    Interval: Periods
    Ageing date:
    From: blank
    To: prior end-of-period date
    Posting date:
    From: blank
    To: prior end-of-period date
    Due date
    From: blank
    To: blank
    Document date:
    From: blank
    To: blank
    By Journal postings:
    Display Customers/Suppliers  with Zero Balance = Yes
    Display Reconciled Transactions = No
    Consider Reconciliation Data = Yes
    Thanks in advance
    Regards
    Devinder

    Hi Gordon,
    Thannks a lot for pointing to the thread; however this thread does not answer my query. I am sure there must be SAP Note that explains my issue however I am waiting for someone to point me in the right direction.
    Thanks once again
    Regards
    Devinder

  • Stored procedure for Total in Header from row totals

    Hi Experts,
    I have read all notes written before regarding that how can we solve that problem if we would like to display on header a rowtotal. But i cannot solve it when i need it dinamically.
    I copy the following query into SBP_SP_Transactionnotification but while im adding the document it doesnt refresh . I have to go back then i can see the row totals in my field.
    IF @object_type = '18'
    BEGIN
    UPDATE OPCH SET U_ONELT =
    (SELECT SUM(U_ONELTR) FROM DBO.PCH1 T0 WHERE T0.DOCENTRY = @list_of_cols_val_tab_del)
    WHERE DOCENTRY = @list_of_cols_val_tab_del
    END
    How shall I modify this query?
    Thanks in advance.
    Eszter

    This is the code you could use
    IF @transaction_type = 'A' AND @object_type = '18'
    BEGIN
    UPDATE OPCH SET U_ONELT =
    (SELECT SUM((T0.QUANTITYT0.PRICE)-(T0.QUANTITYT0.U_ONELTR)) FROM [DBO\].[PCH1\] T0 WHERE T0.DOCENTRY = @list_of_cols_val_tab_del)
    WHERE DOCENTRY = @list_of_cols_val_tab_del
    END
    You can access this Stored Procedure from SQL Server Management Studio......Click on Databases...Select your database...Programmability.....Stored Procedure dbo.SBO_SP_TransactionNotification...Right click....select Modify
    Copy the above code in the body ...You would probably see some thing like ADD YOUR CODE HERE....
    Once you copied this code. Click the Execute button  and you see should get the message
    Command(s) completed successfully.
    Close SQL Server and you should be good to go...
    Suda

  • To show Local Currency row total in FC documents

    Hi All
    is there any possible to show LC row total on the screen when I enter a FC document in SAP B1?
    Thanks in advance.
    Regards,
    Catea k
    Edited by: Catea k on Aug 31, 2010 6:55 AM

    Hi,
    You could use UDF for header level and assigned query formatted search to the udf so that the value in the udf is automatically entered.
    You could also use SDK code to display LC total of document beside FC total document. The same solution is applicable for row level of document.
    JimM

  • Row total percentage of Column

    Have a request to display both the row and column totals in a pivot table, no problem. But what about also including a the percentage that each row total represents of the column total:
    Example:
    orders
    Item jan feb march total % of total
    a 1 3 5 9 40%
    b 2 2 3 7 33%
    c 3 1 2 6 27%
    total 6 6 10 22 100%
    Thanks.....

    In the pivot table view click on the measures and "Duplicate" the measures column and display the total as percentage of the row or column based on your requirement. That way you will be able to display both the toals and percentages together
    hope it helps
    Thanks
    Prash

  • Row Total issue in table view

    Hi,
    I am using 11.1.1.5. In table view we have 4 dim and 5 facts. I need row total only for 3 facts. Whenever I set total using sigma(E) I am getting total for all 5 facts. How to calculate row total only for 3 facts only?.
    Thanks.

    977610 wrote:
    Hi,
    I am using 11.1.1.5. In table view we have 4 dim and 5 facts. I need row total only for 3 facts. Whenever I set total using sigma(E) I am getting total for all 5 facts. How to calculate row total only for 3 facts only?.
    Thanks.In Criteria mode, click on the fx button and change the aggregation rule from "Default" to "None."

  • SSRS - % percentage ROW TOTALS don't calculate correctly in a Table Matrix

    SSRS - Report Builder 3.0
    I have created a report with a MATRIX table with a TOTAL ROW and a TOTAL COLUMN and the total column is calculating correctly but the ROW totals is not calculating correctly
    The screen shot below is of the Matrix table in the Report Builder 3.0 "Designer view" 
    When I run the report the column totals the percentage is averaged correctly, but the ROW TOTALS do not, some are close but i need them to be accurate.
    If you take the same data into excel the total percentage calculates correctly - if you compare the excel with the SSRS some rows do calculate close, but not accurate. the total column calculates correctly
    FY13-Q4
    FY14-Q1
    FY14-Q2
    FY14-Q3
    Total
    100%
    89%
    65%
    68%
    80%
    50%
    72%
    43%
    45%
    52%
    100%
    91%
    63%
    69%
    81%
    10%
    17%
    29%
    31%
    22%
    100%
    96%
    67%
    76%
    85%
    70%
    70%
    53%
    64%
    64%
    90%
    93%
    90%
    82%
    89%
    74%
    75%
    59%
    62%
    68%
    I Need the totals rows and columns to average the percentage correctly in the SSRS report.
    Please help...
    -Isaack

    Hi Katherine Xiong,
    The formula (SSRS Expression) i am using is the following
    =Sum(IIf(Fields!AnswerText.Value = "Yes", 1, 0)) / (Sum(IIf(Fields!AnswerText.Value = "No", 1, 0)) + Sum(IIf(Fields!AnswerText.Value = "Yes", 1, 0)) + Sum(IIf(Fields!AnswerText.Value
    = "n/a", 0, 0)))
    Basically if field value = "YES" it counts, if the answer = "No" if the value is = "n/a" it should not count in the total score percentage
    I get the correct PERCENTAGE on the 1st aggregate, but when the table has multiple aggregates the percentage is never accurate. 
    The Table below is using the above formula, the 1st aggregate is correct but if you get the average percentage from the 1st column it should be 86.2% is the accurate number, sometimes close but i want to report accurate numbers and not doubt SSRS reports
    compared to excel reports. 
    TOTAL ROW (highlighted on the screenshot in Yellow) is incorrect aggregate averages %, the correct average are the following
    [86.2%]      [71.5%]      [75.5%]     [87.87%]   [90.2%]     [69.9%]     [92.8%]
    -Isaack

  • Showing Zero Unit Price/Row Total

    Hi,
    We currently allow posting rows for item sales with zero unit price. I am having trouble showing the unit price and row total as "$0.00" instead of a blank field with PLD. Both of these fields are system variables (80 and 84), neither field is linked to itself, and neither field has the 'Suppress zeros' box checked. Any possible solution to this? Thank you.

    Hi there,
    You could try using a formula type field and multiplying your system variable field by 1.
    - Say for example your Unit Price field has a Unique ID of F_100.
    - Create a new line Formula field and set its value to Round(F_100*1,2).
    - This will display your zero value unit price as 0.00.
    - Note that I'm only using Round() to display zeros after the decimal place, otherwise the zero value unit price would appear as 0. So change the number of decimals as required.
    - Unfortunately this removes the currency code display from the value so you will need to re-display it if required, you can do this using a database type field and selecting the Price Currency field.
    Do the same for row total. Hope that helps.
    Regards,
    Andrew.

  • ORA-01427:single-row sub query returns more than one row (group by)

    Hello every one, I am very new to this field , and Right now I am working with this sql, where BEG_BAL_WKST,WKST_RECEIVED_NUM,WKST_PROCESSED_NUM,WKST_CANCELED_NUM are needs to be grouped by,but I am getting the "single-row sub query returns more than one row".
    This is the query I am using in my source qualifier:
    select
    SUM(tmp.WIP_TO_BILL_LOC_AMT) AS WIP_TO_BILL_LOC_AMT,
    sum(tmp.REALIZATION_LOC_AMT) AS REALIZATION_LOC_AMT,
    SUM(tmp.NEG_REAL_LOC_AMT) AS NEG_REAL_LOC_AMT,
    sum(tmp.POS_REAL_LOC_AMT) AS POS_REAL_LOC_AMT,
    sum(tmp.BILL_IN_ADVANCE_LOC_AMT) AS BILL_IN_ADVANCE_LOC_AMT,
    sum(tmp.CARRY_FORWARD_LOC_AMT) AS CARRY_FORWARD_LOC_AMT,
    sum(tmp.BILL_TO_CLIENT_LOC_AMT) AS BILL_TO_CLIENT_LOC_AMT,
    sum(tmp.REMAIN_WIP_TO_BILL_LOC_AMT) REMAIN_WIP_TO_BILL_LOC_AMT,
    sum(tmp.AR_INV_AMT) AS AR_INV_AMT,
    sum(tmp.AR_TAX_AMT) AS AR_TAX_AMT,
    tmp.BEG_BAL_WKST_NUM AS BEG_BAL_WKST_NUM,
    tmp.WKST_RECEIVED_NUM AS WKST_RECEIVED_NUM,
    tmp.WKST_PROCESSED_NUM AS WKST_PROCESSED_NUM,
    tmp.WKST_CANCELED_NUM AS WKST_CANCELED_NUM,
    tmp.DURATION AS DURATION,
    tmp.NUM_DAYS AS NUM_DAYS,
    tmp.NUM_HOURS AS NUM_HOURS,
    tmp.NUM_MINUTES AS NUM_MINUTES,
    tmp.NUM_SECONDS AS NUM_SECONDS,
    tmp.LEAD_PROJECT_OFFICE_CODE AS LEAD_PROJECT_OFFICE_CODE,
    tmp.LEAD_PROJECT_TEAM_CODE AS LEAD_PROJECT_TEAM_CODE,
    tmp.ORG_ID AS ORG_ID,
    tmp.RPT_DATE AS RPT_DATE,
    tmp.RPT_DATE_WID AS RPT_DATE_WID,
    tmp.LOCAL_CURR_CODE AS LOCAL_CURR_CODE,
    tmp.USD_EXCH_RATE AS USD_EXCH_RATE,
    tmp.EUR_EXCH_RATE AS EUR_EXCH_RATE,
    tmp.GBP_EXCH_RATE AS GBP_EXCH_RATE
    from(
    SELECT
    WIP_TO_BILL_LOC_AMT as WIP_TO_BILL_LOC_AMT ,
    REALIZATION_LOC_AMT AS REALIZATION_LOC_AMT,
    NEG_REAL_LOC_AMT AS NEG_REAL_LOC_AMT ,
    POS_REAL_LOC_AMT AS POS_REAL_LOC_AMT,
    BILL_IN_ADVANCE_LOC_AMT AS BILL_IN_ADVANCE_LOC_AMT ,
    CARRY_FORWARD_loc_AMT AS CARRY_FORWARD_LOC_AMT,
    bill_to_client_LOC_AMT AS BILL_TO_CLIENT_LOC_AMT ,
    REMAIN_WIP_TO_BILL_LOC_AMT AS REMAIN_WIP_TO_BILL_LOC_AMT,
    AR_inv_AMT AS AR_INV_AMT,
    ar_tax_amt AS AR_TAX_AMT,
    (SELECT count(distinct(RPAD(INTEGRATION_ID,32)))
    FROM wc_twfs_olb_invoice_history_f
    WHERE ((inv_status_type='FIN'AND inv_status_code NOT IN ('COMPLETE','PROCESSED'))
    OR (inv_status_type='WS' AND inv_status_code NOT IN ('PRC'))) --COMPLETED
    AND to_char((sysdate-5),'YYYYMMDD') between to_char(status_start_dt,'YYYYMMDD') and to_char(status_end_dt,'YYYYMMDD')group by rpad(integration_id,32)) AS BEG_BAL_WKST_NUM ,
    (SELECT count(distinct(RPAD(INTEGRATION_ID,32)))
    FROM wc_twfs_olb_invoice_history_f
    WHERE (inv_status_code='NEW')
    AND to_char((sysdate-4),'YYYYMMDD') between to_char(status_start_dt,'YYYYMMDD') and to_char(status_end_dt,'YYYYMMDD')group by rpad(integration_id,32))AS WKST_RECEIVED_NUM ,
    (SELECT count(distinct(RPAD(INTEGRATION_ID,32)))
    FROM wc_twfs_olb_invoice_history_f
    WHERE ((inv_status_type='FIN' and inv_status_code IN ('COMPLETE','PROCESSED'))
    OR (inv_status_type='WS' AND inv_status_code IN ('PRC'))) --COMPLETED
    AND to_char((sysdate-4),'YYYYMMDD') between to_char((status_start_dt),'YYYYMMDD') and to_char((status_end_dt),'YYYYMMDD')group by rpad(integration_id,32))AS WKST_PROCESSED_NUM ,
    (SELECT count(distinct(RPAD(INTEGRATION_ID,32)))
    FROM wc_twfs_olb_invoice_history_f
    WHERE (inv_status_type='FIN' AND inv_status_code='CANCELLED')
    AND to_char((sysdate-4),'YYYYMMDD') between to_char((status_start_dt),'YYYYMMDD') and to_char((status_end_dt),'YYYYMMDD')group by rpad(integration_id,32)) AS WKST_CANCELED_NUM,
    DURATION AS DURATION,
    NUM_DAYS AS NUM_DAYS,
    NUM_HOURS AS NUM_HOURS,
    NUM_MINUTES AS NUM_MINUTES,
    NUM_SECONDS AS NUM_SECONDS,
    lead_project_office_code AS LEAD_PROJECT_OFFICE_CODE,
    lead_project_team_code AS LEAD_PROJECT_TEAM_CODE,
    org_id AS ORG_ID,
    trunc(sysdate-1) AS RPT_DATE,
    to_char((sysdate-1),'YYYYMMDD') AS RPT_DATE_WID,
    --last_day(a.report_date) mth_end_dt,
    LOC_CURR_CODE AS LOCAL_CURR_CODE,
    usd_exch_rate AS USD_EXCH_RATE,
    eur_exch_rate AS EUR_EXCH_RATE,
    gbp_exch_rate AS GBP_EXCH_RATE
    FROM Wc_twfs_olb_invoice_history_f
    Where
    RPT_DT_MCAL_PERIOD_WID =(select max(RPT_DT_MCAL_PERIOD_WID)from Wc_twfs_olb_invoice_history_f))tmp
    group by BEG_BAL_WKST_NUM,WKST_RECEIVED_NUM,WKST_PROCESSED_NUM,WKST_CANCELED_NUM,DURATION,NUM_DAYS,NUM_HOURS,NUM_MINUTES,NUM_SECONDS,
    LEAD_PROJECT_OFFICE_CODE,LEAD_PROJECT_TEAM_CODE,ORG_ID,RPT_DATE,RPT_DATE_WID,
    LOCAL_CURR_CODE,USD_EXCH_RATE,EUR_EXCH_RATE,GBP_EXCH_RATE;
    Can you please suggest me what to do next, and what would be the solution to this.
    Thanks a lot in advance. please show me some direction.

    you may want to change it something like
    SELECT SUM(Wip_To_Bill_Loc_Amt) AS Wip_To_Bill_Loc_Amt,
           SUM(Realization_Loc_Amt) AS Realization_Loc_Amt,
           SUM(Neg_Real_Loc_Amt) AS Neg_Real_Loc_Amt,
           SUM(Pos_Real_Loc_Amt) AS Pos_Real_Loc_Amt,
           SUM(Bill_In_Advance_Loc_Amt) AS Bill_In_Advance_Loc_Amt,
           SUM(Carry_Forward_Loc_Amt) AS Carry_Forward_Loc_Amt,
           SUM(Bill_To_Client_Loc_Amt) AS Bill_To_Client_Loc_Amt,
           SUM(Remain_Wip_To_Bill_Loc_Amt) AS Remain_Wip_To_Bill_Loc_Amt,
           SUM(Ar_Inv_Amt) AS Ar_Inv_Amt,
           SUM(Ar_Tax_Amt) AS Ar_Tax_Amt,
           COUNT(DISTINCT CASE
                   WHEN ((Inv_Status_Type = 'FIN' AND
                        Inv_Status_Code NOT IN ('COMPLETE', 'PROCESSED')) OR
                        (Inv_Status_Type = 'WS' AND Inv_Status_Code NOT IN ('PRC'))) --COMPLETED
                        AND To_Char((SYSDATE - 5), 'YYYYMMDD') BETWEEN
                        To_Char(Status_Start_Dt, 'YYYYMMDD') AND
                        To_Char(Status_End_Dt, 'YYYYMMDD') THEN
                    Rpad(Integration_Id, 32)
                 END) AS Beg_Bal_Wkst_Num,
           /*(SELECT COUNT(DISTINCT(Rpad(Integration_Id, 32)))
              FROM Wc_Twfs_Olb_Invoice_History_f
             WHERE ((Inv_Status_Type = 'FIN' AND
                   Inv_Status_Code NOT IN ('COMPLETE', 'PROCESSED')) OR
                   (Inv_Status_Type = 'WS' AND Inv_Status_Code NOT IN ('PRC'))) --COMPLETED
               AND To_Char((SYSDATE - 5), 'YYYYMMDD') BETWEEN
                   To_Char(Status_Start_Dt, 'YYYYMMDD') AND
                   To_Char(Status_End_Dt, 'YYYYMMDD')
             GROUP BY Rpad(Integration_Id, 32)) AS Beg_Bal_Wkst_Num,
           (SELECT COUNT(DISTINCT(Rpad(Integration_Id, 32)))
              FROM Wc_Twfs_Olb_Invoice_History_f
             WHERE (Inv_Status_Code = 'NEW')
               AND To_Char((SYSDATE - 4), 'YYYYMMDD') BETWEEN
                   To_Char(Status_Start_Dt, 'YYYYMMDD') AND
                   To_Char(Status_End_Dt, 'YYYYMMDD')
             GROUP BY Rpad(Integration_Id, 32)) AS Wkst_Received_Num,
           (SELECT COUNT(DISTINCT(Rpad(Integration_Id, 32)))
              FROM Wc_Twfs_Olb_Invoice_History_f
             WHERE ((Inv_Status_Type = 'FIN' AND
                   Inv_Status_Code IN ('COMPLETE', 'PROCESSED')) OR
                   (Inv_Status_Type = 'WS' AND Inv_Status_Code IN ('PRC'))) --COMPLETED
               AND To_Char((SYSDATE - 4), 'YYYYMMDD') BETWEEN
                   To_Char((Status_Start_Dt), 'YYYYMMDD') AND
                   To_Char((Status_End_Dt), 'YYYYMMDD')
             GROUP BY Rpad(Integration_Id, 32)) AS Wkst_Processed_Num,
           (SELECT COUNT(DISTINCT(Rpad(Integration_Id, 32)))
              FROM Wc_Twfs_Olb_Invoice_History_f
             WHERE (Inv_Status_Type = 'FIN' AND Inv_Status_Code = 'CANCELLED')
               AND To_Char((SYSDATE - 4), 'YYYYMMDD') BETWEEN
                   To_Char((Status_Start_Dt), 'YYYYMMDD') AND
                   To_Char((Status_End_Dt), 'YYYYMMDD')
             GROUP BY Rpad(Integration_Id, 32)) AS Wkst_Canceled_Num,*/
           Duration AS Duration,
           Num_Days AS Num_Days,
           Num_Hours AS Num_Hours,
           Num_Minutes AS Num_Minutes,
           Num_Seconds AS Num_Seconds,
           Lead_Project_Office_Code AS Lead_Project_Office_Code,
           Lead_Project_Team_Code AS Lead_Project_Team_Code,
           Org_Id AS Org_Id,
           Trunc(SYSDATE - 1) AS Rpt_Date,
           To_Char((SYSDATE - 1), 'YYYYMMDD') AS Rpt_Date_Wid,
           --last_day(a.report_date) mth_end_dt,
           Loc_Curr_Code AS Local_Curr_Code,
           Usd_Exch_Rate AS Usd_Exch_Rate,
           Eur_Exch_Rate AS Eur_Exch_Rate,
           Gbp_Exch_Rate AS Gbp_Exch_Rate
      FROM Wc_Twfs_Olb_Invoice_History_f
    WHERE Rpt_Dt_Mcal_Period_Wid =
           (SELECT MAX(Rpt_Dt_Mcal_Period_Wid)
              FROM Wc_Twfs_Olb_Invoice_History_f)
    GROUP BY Beg_Bal_Wkst_Num,
              Wkst_Received_Num,
              Wkst_Processed_Num,
              Wkst_Canceled_Num,
              Duration,
              Num_Days,
              Num_Hours,
              Num_Minutes,
              Num_Seconds,
              Lead_Project_Office_Code,
              Lead_Project_Team_Code,
              Org_Id,
              Rpt_Date,
              Rpt_Date_Wid,
              Local_Curr_Code,
              Usd_Exch_Rate,
              Eur_Exch_Rate,
              Gbp_Exch_Rate;Edited by: 986006 on Mar 4, 2013 1:08 PM

  • Remove the word "Total" in Row Totals in Pivot Tables

    Hi,
    Is it possible to remove the word "Total" that appears in Row Totals in Pivot Tables?
    Eg. If there are 2 Dimension Columns -- Year and Month .... and if we do row totals on Year
    The total appears as *'2008 Total'* or *'2009 Total'* etc. i.e. Each of the Values is followed by the word 'Total'.
    However, i would like the totals to display only the values '2008' or '2009' without the word 'Total'.
    Is this possible in OBIEE 11.1.1.5.0 ?
    Thanks,
    Ab

    Hi ,
    Goto Total -> Format label and type in @.This will remove the word"Total". I have tested this in 10g, try this and let me know if it works in 11g.
    Rgds,
    Dpka

  • Inserting empty row in query designer

    Hi Gurus
    Can any one advice me on how to insert a empty row in Query designer
    I'm using structure
    Thank you

    Refer - /thread/814122 [original link is broken]

  • Row totals in datagrid

    Hi,
    I have a datagrid with 5 rows and 3 columns and i am able to
    load data into it using http service but i want to calculate totals
    of each row and i have to print them on the labels placed below the
    datagrid for each column
    i want to calculate the row totals and display it on the
    label
    plz find me some solution
    thanks

    I guess one way to do it would be to calculate the total from
    your webservice (I am guessing you're using php to generate an xml
    file) and then pass that to your flex project using the http
    service.
    or you could simply write a script for it within your
    project.

  • Single row sub query error

    Hi All
    I'm having the following query and its giving me "single row sub query returns more than one row". I did some research and all i could come across is using IN,ALL,ANY,NOT IN.... with the WHERE clause but not in the CASE statement so can any one please point me in the right direction?
    SELECT ROW_NUMBER () OVER (PARTITION BY traffic_sample_id ORDER BY bin_data_id)
                                                                  AS row_number_1,
           COUNT (bin_data_id) OVER (PARTITION BY traffic_sample_id) AS count_1,
           (CASE
               WHEN days != 2
                  THEN (SELECT traffic_sample_id
                          FROM (SELECT ROW_NUMBER () OVER (PARTITION BY traffic_sample_id ORDER BY bin_data_id)
                                                                            AS rn,
                                       traffic_sample_id
                                  FROM bin_data)
                         WHERE rn <= 48)
               ELSE (SELECT traffic_sample_id
                       FROM bin_data)
            END
           ) traffic_sample_id
      FROM (SELECT ROW_NUMBER () OVER (PARTITION BY t1.traffic_sample_id ORDER BY t1.bin_data_id)
                                                                    AS ROW_NUMBER,
                   COUNT (t1.bin_data_id) OVER (PARTITION BY t1.traffic_sample_id)
                                                                         AS COUNT,
                   t1.traffic_sample_id, t1.bin_data_id, t1.end_intv_time,
                   (  TO_DATE (t2.end_date, 'mmddyy')
                    - TO_DATE (t2.start_date, 'mmddyy')
                   ) AS days
              FROM bin_data t1, traffic_sample t2
             WHERE t1.traffic_sample_id = t2.traffic_sample_id(+))Thanks

    Hi,
    One of these two SELECT statements must be bringing back more thean one row:
                  THEN (SELECT traffic_sample_id
                          FROM (SELECT ROW_NUMBER () OVER (PARTITION BY traffic_sample_id ORDER BY bin_data_id)
                                                                            AS rn,
                                       traffic_sample_id
                                  FROM bin_data)
                         WHERE rn <= 48)
               ELSE (SELECT traffic_sample_id
                       FROM bin_data)

  • BAM : Crosstab : Need to get percentage of row total for each cell

    Hi,
    I am new to BAM. I have a requirement for which I am using crosstab. Basically, I need to show number instances per human task per user. Human Task is the row header, user is the column header, and I am using count(instance id) to fetch the count of instances. I am able to show the sum of values for each row and column, but I also need to show the percentage for each cell(based on row total).
    I do not know if it is possible to fetch the total for further calculations. I believe the calculated field will be processed for each cell, and hence there will be no sum available.
    Also, crosstab does not have a percent of total aggregate function.
    Kindly advise.
    Regards,
    Himanshu

    Hi,
    For constructing summary, COLLECT is very useful.
    1. Create one new internal table STAB having two fields.
       a) licensetype
       b) cnt
    2. Suppose your original internal table is itab.
    Loop at ITAB.
    STAB-licensetype = itab-licensetype.
    STAB-CNT = 1.
    COLLECT STAB.
    EndLoop.
    3. In this way, you will get DISTINCT license types, and their count.
    Hope this helps.
    regards,
    amit m.

Maybe you are looking for

  • Imovie unable to capture DV, apple support told me that a pc is better!!!

    I recently bought an apple imac with a view to editing DV footage taken previously. I had captured some of these tapes on to a PC previously using Pinnacle studio. These files I was able to edit on imovie (once I had transferred them from the pc hard

  • Running forms 6i on client without installed runtime !

    Dear proffesionals, what do you think about code below-we tried to enable our users to run applications developed in Forms 6i, without installed runtime on their machines. Is this solutions good, and why ? We installed forms6i runtime on the server,

  • New Nano Won't Install - Its Searching for Drivers

    Hey, I'm on a Dell Latitude running XP, I've got every Windows update and am running iTunes 7.2. My shuffle worked (and works) fine, but I upgraded to a nano and Windows refuses to recognize it - it tells me it can't find the drivers. (I get the foun

  • Much Higher Temps after 10.5.2 Update! Help, SR 2.2GHz MBP

    After installing 10.5.2 this afternoon, I've noticed my SR 2.2GHz MBP is running at about 120F instead of it's usual 90F or less. I've also heard another user on a different site say this. It's been several hours since update (no finder or spotlight

  • Net value in billing doc not matching as in sales order

    Hi, I have a scenario wherein the net value in billing document does not match as in the sales order for 2 item categories maintained in the sales order. The net value in sales order has one line item category as 10 and the other as 20 but the same i