Is it possible to sum up amounts in report scripts?

Hi - is this possible? If so, can you give me an example? I have not been able to find a commend for this. I am using Essbase 6.5
I have a cost center with many accounts. I need to pull that cost center and sum up the accounts into one number. the accounts do not all belong under 1 parent.
Thanks
Edited by: CLAU on Nov 11, 2009 1:47 PM

The commands Gary gave you are valid for 6X versions. But I would wonder why you are not creating a rollup in accounts that sums your accounts and then pulling that member. It seems like this would be something that would be used often
CLAU are you a consultant or do you work for a company? your profile says Essbase developer, but that is pretty vague.
Edited by: GlennS_2 on Nov 11, 2009 4:58 PM

Similar Messages

  • Is it possible to sum across groups

    Dear all,
    I want to define a template for AP cash requirement report to sum amount to be paid by vendor. The XML tree structure is to first group by Due Date and then group by Vendor. Therefore, the invoices to be paid can be under different Due Date groups. My question is, is it possible to sum by Vendor name regardless which Due Date group (the parent group) it belongs to?
    Thanks!
    Sandy

    Hi,
    Seems the XML tree is not allowed to be posted here. Please find it in the link below. G_Date is a parent group of G_Vendor. I want to be able to sum by vendor regardless of the which G_Date group it is belonged to. Please advise. Thanks!
    https://communities.oracle.com/portal/server.pt/community/view_discussion_topic/216?threadid=80778&aggregatorResults=T80778T79511T79424T78340T78009T76654T70958T47945T46834T45020&returnUrl=https://communities.oracle.com/portal/server.pt/community/discussions/209#80778

  • Query to update T1.TotalAmount from sum(T2.Amount)

    I have 2 tables T1 and T2 such that
     T2.TotalAmount=sum(T1.Amount) where T1.BillType=T2.BillType and T1.BillNo=T2.BillNo  
    as shown below
    Table T1
    BillType
    BillNo
    ItemName
    Amount
    Sale
    156
    Rice
    100
    Sale
    156
    Vegetables
    20
    Purchase
    13
    Rice
    50
    Purchase
    13
    Vegetables
    10
     Table T2
    BillType
    BillNo
    TotalAmount
    Sale
    156
    120
    Purchase
    13
    60
    i have updated T1 with query 
    update T1 set Amount=Amount+100
    BillType
    BillNo
    ItemName
    Amount
    Sale
    156
    Rice
    200
    Sale
    156
    Vegetables
    120
    Purchase
    13
    Rice
    150
    Purchase
    13
    Vegetables
    110
    now i want to update T2.TotalAmount  with new values of T1.Amount such that
    T2.TotalAmount=sum(T1.Amount) where T1.BillType=T2.BillType and T1.BillNo=T2.BillNo 
    as shown below
    BillType
    BillNo
    TotalAmount
    Sale
    156
    320
    Purchase
    13
    260
    i tried this query
    update T2 set TotalAmount=(select sum(Amount) from T1 inner join T2 on T1.BillType=T2.BillType and T1.BillNo=T2.BillNo where T1.BillType=T2.BillType and T1.BillNo=T2.BillNo)
    this returned table T2 as below
    BillType
    BillNo
    TotalAmount
    Sale
    156
    580
    Purchase
    13
    580
    What should i do to get T2.TotalAmount correctly

    Try this: (not tested)
    update T2 set T2.TotalAmount= O.TotalAmount From T2 Inner join
    (select BillType,BillNo,sum(Amount) As TotalAmount from T1 Group by BillType,BillNo ) O on O.BillType = T2.BillType and O.BillNo = T2.BillNo
    Thanks
    Bharath

  • Is it possible to programmatically replace a Sub Report in a crystal report

    We create crystal reports via the crystal report designer (not in any IDE) , and attach the reports directly to the database via stored procedures. Each report contains a page header and a page footer with patient demographic data. We distribute these reports to our customers and they may edit the templates and alter the page header and page footers specific to their needs.
    We are looking at using sub reports to build a "model" page header and page footer that would be inserted into each template at design time. What we would like to do is allow the customers to create their own sup reports to contain their custom page header / page footer and then programmatically replace the " model" sub reports with the custom sub reports. Please note that these sub reports would not contain any data access and would not be linked to the main report, rather the main report would assign the data that is displayed in the page header/page footer data to shared variables,  and the sub reports would use the shared variables as their data source to display the data.
    Is it possible to programmatically replace 1 sub report with another ? If so are there any code snippets to review -

    Yes it is. Submit your post to which ever SDK you are using into the Developer forums. But search the posts first and look in our samples. This is relatively easy to do.
    Thank you
    Don

  • Is it possible to export the page activity report to a pdf file?

    Is it possible to export the page activity report to a pdf file?and is there any api or samples to be reference

    Do you mean audit history?   One method would be similar to the following sample that you could extend to create a PDF from the data returned:
    http://www.eyelock.net/blog/archives/533
    BUT the method used above via JCR Query is an implementation detail.  For future proofing, you should use the ReplicationStatus status = page.adaptTo(ReplicationStatus.class in your code to get the audit logs for a particular page, rather than a straight JCR query. (recommended by Jörg Hoh @ http://forums.adobe.com/message/5253760).

  • Is it possible to write text in a REPORT in the required font and style

    Hi everyone,
    I have got a requirement from the client,where he asks to write some text in the report with some font size and style,Is it possible to do that in a report,if so plz reply back with piece of code.
    Thanks & Regards,
    Rajeev.N

    Try
    NEW-PAGE PRINT ON.
    PRINT-CONTROL FONT 2 LPI 6.
    WRITE: / 'Bold Letters'.
    This program will print "Bold Letters" in BOLD.
    You cant see the difference on the screen.But when you actually print ,you will see the difference.

  • Struggling with Comma for an amount in sap script

    Hi Experts
    I am strugling with comma for an amount in sap script .
    For ex: 1234.56  and i need 1,234.56
    I tried  system->userprofile->owndata->Default(Tab)->Decima Notation 1,234,567..89(Selected)
    and i did use /:Edit Mask Field name  but i am not getting comma.
    Thanks & Regards
    Reddy

    Hello,
    In the driver program, assign the amount to a variable of type P and use that variable to display in the script. You will get the commas.
    Vikranth

  • Output Format for Amount in SAP Script PO

    Hi,
    In my Standard SAP Script PO Form 'MEDRUCK', all amount values are getting printed in the form 1.234.567,89 but I want them to be in the Form 1,234,567.89 .
    For doing this I have gone in T-Code SU3 and set the default decimal notation as
    X 1,234,567.89 . 
    I have also tried by giving the command
    /: SET COUNTRY 'IN'
    But still the amounts in the ouput format is coming in the same way 1.234.567,89 .
    If anyone has faced similar situation, plz tell how to change the output format of amount in SAP Script.
    Thanks and Regards,
    Nitin Gupta

    I have tried using SU3 but it's not worknig. Is their any other method also of which maybe I am not aware of?

  • Is it possible to a coloured background in sap script Form.

    Hi all,
    Is it possible to a coloured background in sap script Form.
    Point is guranted

    Hi,
    In Sap Scripts Colouring is not Possible.
    But We Can do Colouring  In Smartforms.

  • Is it possible without datasource can i generate report.

    Hi,
    I want to generate jasper report in adf11g. Is it possible without datasource can i generate report.
    Map<String, Object> params = new HashMap<String, Object>();
    params.put("reportTitle", "Hello Report World");
    params.put("author", "Craig Conover");
    params.put("startDate", (new java.util.Date()).toString());
    JasperPrint jasperPrint =
    JasperFillManager.fillReport(
    jasperReport, params); so i dont want to use Datasource.or empty datasource.
    I m getting some error if i dont use datasource then i m getting errot-- There is no document message.
    Thanks

    Not the good forum to ask for.
    I don't remember it is possible. Test it in iReport. Simply don't define any datasource in your template and execute it. If it is executing it may be possible to do the same with jreport librairies by calling api. If it is not possible in iReport, it will not be possible in your application too.
    Hope its help

  • If I check the sum box on a report item, the words "report total:" appear..

    I would like it to read: Report Total With capital letters.
    Any up would be appreciated.

    Hello,
    Take a look at the "Display this text when printing report sums" setting in the Report Attributes.
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • Is it possible to create a cmdlet using PS script ?

    Mostly cmtlets are compiled code which are written in c#. Is it possible to create powershell cmdlets using powershell script ? 
    -Pranav

    That's what Advanced Functions are.  (The original name for Advanced Functions was "Script Cmdlets".)  Check out the about_Functions_Advanced, about_Functions_Advanced_Methods, and about_Functions_Advanced_Parameters help files for more information
    on this topic.
    I'm not surprised, once more, that this rubbish-ell coder spreads wrong concepts about PowerShell. 
    If this rubbish-ell coder cared to read the about_* mentioned, he would have read that
    advanced functions and
    compiled cmdlets have differences!
    If the two halves of his brain are not 'smoked' he may conclude that two things that have differences cannot be considered the same (I don't know if his brain has been completely 'smoked').
    It's my obligation to mark this post as ABUSIVE for spreading wrong PowerShell concepts.
    David is a pro and you are a troll. The OP's original question was:
    "Is it possible to create powershell cmdlets using powershell script ?"
    He did not ask whether it was possible to create Compiled Cmdlets with Powershell code. If an advanced function works exactly like a compiled cmdlet at the command line then it qualifies as a cmdlet. I spend a lot of time writing such cmdlets
    and they are exactly that - cmdlets!
    Conceptually, David is exactly right. No one said there are absolutely no differences between the two, but expounding on the concepts of using Powershell is not the same as trying to call out everyone here on tiny little nitpicks, which
    is what you are doing (abuse).

  • Sum an amount between a certain date range

    Hello,
    I am working out a home budget and want to know how to calculate what is due this month.
    I have two columns - "Amount" and "Due Date". Some content for an example is:
    Amount,Due Date
    20,15/05/2009
    300,16/05/2009
    40,1/06/2009
    What I want is a formula which will sum the total amount of items due within this months' date range. If the date range could be as automatic as "This Month" that would be great otherwise I would say IF "Due Date" between 1/05/2009 and 31/5/2009.
    Is this possible?

    In column D, the formula is:
    =YEAR(C)*100+MONTH(C)
    In B8 and in B9 the formula is:
    =SUMIF(D,YEAR(A)*100+MONTH(A),B)
    Yvan KOENIG (from FRANCE jeudi 14 mai 2009 15:30:56)

  • How to Sum the amounts for calculating rates.

    Hi,
    I have a requirement in Apps 11i (OAB) that I need to code in PL/SQL. I would be calling a procedure in order to complete this task. When an Extract is run, this code gets executed and should return the amount for that person.
    I need to calculate sum of all the amounts for each of the months between START date to the END date.
    Ex: Amount = Amount + (for each of the months between START and END date) x Rate.
    This START and END date would be calculated in the procedure itself.(dynamic).
    Once we get the START date and END date, we need to loop thru some records and find person's rate between those START date and END date.
    For rate calculation:
    15th day of any month is used as the cut off date for rate calculation.
    Suppose from 01-JAN-2006 to 15-MAR-2006 Rate is Rs 10 AND
    16-MAR-2006 to 01-JUL-2006 rate is Rs 20 AND person died on 01-JUL-2006
    Then rate = Rs(3x10) + Rs(3x20) + full month of July Rs.20 (P.S Here person's death needs to evaluated for the whole month) =30 + 60 + 20 = Rs.110
    Typically the start date and end date would be in one particular YEAR. And person may have different rates for different amounts as mentioned above.
    Let me if you need any more details..Thank You!
    Additional Info:
    This data comes from 2 tables in OAB Application where it can be joined with a common ID.
    One table lets say Coverage table contains the usual columns Eff_start_date, Eff_end_date along with this it has Coverage_start_date and Coverage_end_date (Dates specifying duration of the person enrolled in particular coverage.)
    P.S Rate Changes ONLY when the person enrolls in different coverage.
    2nd Table lets say Rate table contains the usual columns Eff_start_date, Eff_end_date along with this it has rate_start_date and rate_end_date and RATE(column) for that duration.(may vary depending upon the coverage).
    All the records should be between the START and END date, which will be calculated at runtime.
    Unable to submit any sample records.:-(
    Well, IF I had given the exact requirement, I would have got the solution by this Time!!! Your comments (and solutions) would definitely help me. Thank You
    Message was edited by:
    user559682

    If i understand you correctly it can be possible with :
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> drop table dates;
    Table dropped
    SQL> create table dates( "start" date, "end" date, "rate" number);
    Table created
    SQL> insert into dates values( to_date('01.01.2006', 'DD.MM.YYYY'), to_date('30.05.2006', 'DD.MM.YYYY'), 10);
    1 row inserted
    SQL> insert into dates values( to_date('01.06.2006', 'DD.MM.YYYY'), to_date('15.09.2006', 'DD.MM.YYYY'), 15);
    1 row inserted
    SQL> insert into dates values( to_date('16.09.2006', 'DD.MM.YYYY'), to_date('31.12.2006', 'DD.MM.YYYY'), 20);
    1 row inserted
    SQL> SELECT * FROM dates;
    start       end               rate
    01.01.2006  30.05.2006          10
    01.06.2006  15.09.2006          15
    16.09.2006  31.12.2006          20
    SQL> SELECT t.i, d."rate"
      2    FROM (SELECT add_months(to_date('01.01.2006', 'DD.MM.YYYY') /* start*/, LEVEL - 1) i
      3            FROM dual
      4          CONNECT BY LEVEL <= 12) t
      5        ,dates d
      6   WHERE t.i BETWEEN d."start" AND d."end";
    I                 rate
    01.01.2006          10
    01.02.2006          10
    01.03.2006          10
    01.04.2006          10
    01.05.2006          10
    01.06.2006          15
    01.07.2006          15
    01.08.2006          15
    01.09.2006          15
    01.10.2006          20
    01.11.2006          20
    01.12.2006          20
    12 rows selected
    SQL> SELECT SUM(d."rate") rs
      2    FROM (SELECT add_months(to_date('01.01.2006', 'DD.MM.YYYY') /* start*/, LEVEL - 1) i
      3            FROM dual
      4          CONNECT BY LEVEL <= 1 +
      5                     extract(MONTH FROM to_date('10.10.2006', 'DD.MM.YYYY') /*death*/) -
      6                     extract(MONTH FROM to_date('01.01.2006', 'DD.MM.YYYY') /* start*/)
      7          ) t
      8        ,dates d
      9   WHERE t.i BETWEEN d."start" AND d."end";
            RS
           130
    SQL>

  • Is it possible to deduct the amount of old A/R Credit Memo from new Sales invoice against the same customer ?

    Dear Friends,
    this issue is for my client which is in Retail Industry.
    In sales when customer is buying items of Price 1000 and want's adjustment of Credit Memo Of Price 700 in this Invoice we have to do the following process :
    1) Change The Payment Terms Immediate To Another like Net 30 (Because there is a default payment terms Immediate for all customer)
    2) Add that invoice of Price 1000.
    3) Open Incoming Payment-->Select Customer-->Select Credit Memo of 700-->Select that price 1000 invoice and collect remaining payment by payment means.
    But this process is difficult to follow in Retail Industry. In all cases they collect the payment by Payment Means in A/R Invoice because there is a Payment Terms Immediate for all customers.
    Is there any process by which we can select the credit memo like process in which we use for advance payment ?
    or   any other way to simplify this process ?

    Hi Swapnil Vichare...
    Create a credit Note 1st , then make a invoice with the credit note amount open.. and using the reconcilation you need to reconcile all the trascation...
    No other possible ways, but using sdk you can develop..
    Regards
    Kennedy

Maybe you are looking for