Running complex calculations

Hi all
My question has 2 parts
1) I will need to run a rather complex calculation which involves searching through a rather large dimension (30000 members) and using an allocation % unique to each member, allocate that percentage to other members. So my questions are 1) would this be better in a BSO or ASO cube (my guess is BSO)
and 2) seeing as the cube will have 10 dimensions and (as I stated earlier) 3 of the dimensions will have large numbers of members, will this calc be time intensive? (I know there are other variables such as server size and speed etc, but I am just looking for a ball park guess right now)
We are currently using version 11 essbase.
As always thanks for your expertise

Hi,
have you checked the default trace? Do you get a timeout error from the backend? Maybe the calculation is too complex and the iView times out.
Anja

Similar Messages

  • Sap Query sq01: how to combine substrings in complex calculations

    I made a query with sap query. I made 1 local field: name1. I have 2 fields firstname and lastname and a field named class.
    In the complex calculations screen I made the following calculation for that field:
    Condition: CLASS='1'
    Formula: firstname' 'lastname
    When I try to run this query I get an Abap error saying "unable to interpret [firstname] as a number". It looks like the + expression can only be used here for numeric calculations.
    Does anyone know how to solve this?
    Edited by: J S on Jan 27, 2009 11:52 AM

    Hi,
    i think its better to concatenate in the infoset code section.... you create a local filed in infoset of type char and then write the concatenate statement of abap and keep first name and last name in the local field .... write this code in the record processing section and take this local filed and display it in the  query i think this clears you ..
    by the way if you still want any information let me know

  • How do I write JavaScript for a complex calculation in a PDF?

    Is there a way to create a more complex calculation in a PDF? I have created an order form that has separate fields for quantity, price and subtotals. For every item on the order form, the first two quantities are no charge. Each quantity after that is .25/each. How do I write the JavaScript to accomplish this calculation?
    e.g. 6 items ordered, first 2 are No Charge,
    =(2*0.00)+(Qty-2*0.25), should equal $1.00
    =(2*0.00)+(6-2*0.25)
    =0.00+1.00
    =1.00

    Not quite. You still need to use the eval function otherwise the numbers are just strings.
    Try this in the JavaScript Debugger:
    var Qty = 4;
    if (Qty>2) {
        var subtotal = eval ((Qty-2)*0.25);
    } else {
        var subtotal = 0;
    app.alert (subtotal);
    Steve

  • Need help regarding complex calculation using Max value and limiting data after Max date in MDX

    I am working on a bit complex calculated measure in SSAS cube script mode.
    Scenario /Data Set
    Date
    A
    B
    C
    A+B
    5/29/2014
    Null
    34
    Null
    34
    6/30/2014
    Null
    23
    45
    68
    7/15/2014
    25
    -25
    Null
    0
    8/20/2014
    -34
    Null
    Null
    -34
    9/30/2014
    25
    Null
    60
    25
    10/15/2014
    45
    -45
    Null
    0
    11/20/2014
    7
    8
    Null
    15
    a) Need to capture latest non-null value of Column C based on date
    with above example it should be 60 as of 9/30/2014
    b) Need to capture column A+B for all dates.
    c) Add values from column (A+B) only after latest date which is after 9/30/2014. 
    with above example it's last 2 rows and sum is 15
    d) Finally add value from step a and step c. which means the calc measure value should be = 75
    I need to perform all this logic in MDX. I was able to successfully get step a and b in separate calc measure, however i am not sure how to limit the scope based on certain date criteria. In this case it's, date> Max date(9/30/2014) . Also how should
    i add calculated members and regular members?
    I was able to get max value of C based on date and max date to limit the scope.
    CREATE MEMBER CURRENTCUBE.[Measures].[LatestC] AS
    TAIL( 
      NONEMPTY(
        [Date].[Date].CHILDREN*[Measures].[C]),1).ITEM(0) ,visible=1;
    CREATE MEMBER CURRENTCUBE.[Measures].[MaxDateofC] AS
    TAIL( 
      NONEMPTY(
        [Date].[Date].CHILDREN,[Measures].[C]),1).ITEM(0).MemberValue ,visible=1;
    Please help with Scope statement to limit the aggregation of A+B for dates > MaxDateofC? Also further how to add this aggregation value to LatestC calc measure?
    Thank You

    Hi Peddi,
    I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
    return blobDomain;
    } catch (XDOException xdoe) {
    System.out.println("Exception in XDO :");
    throw new OAException("Exception in XDO : "+xdoe.getMessage());
    catch (SQLException sqle) {
    System.out.println("Exception in SQL :");
    throw new OAException("SQL Exception : "+sqle.getMessage());
    catch (OAException e) {
    System.out.println("Exception in OA :");
    throw new OAException("Unexpected Error :: " +e.getMessage());
    Thanks and Regards,
    Myvizhi

  • What are the custimization steps to run interest calculations for customers

    Hi,
    I need a full custimization steps to configure the interest calculations for customers. i created interest indicators, g/l accounts and account determinations also. but no interest is calculating for customers and customers are having no of days to calculate the interest. So please guide me on this regard.

    Hi,
    Configuring the Interest Calculations Procedure
    This configuration allows you to charge interest on overdue customer accounts.  Interest can be calculated by using the line items or overall account balances. SAP keep tracks of the date of the last interest run and stores it in the customer master record.
    First create an Interest Indicator.
    OB46 - Interest Settlement Calculation Type
    Int Calc. Type
    P - calculate interest based on line items.
    S - calculate interest based on account balances.
    Secornd, make it avaliable to the interest run program.
    OB82 - Interest Terms
    Third, determine the interest rate that will be used by the calculation.
    OBAC - Define Reference Interest Rates
    OB83 - Enter the Reference Interest Rates Value
    Fourth, assign the interest indicator to the reference interest rate.
    OB81 - Define Time Dependent Terms
    Finally, determine the how and to which accounts the interest program will post.
    OBV1 - Prepare Interest on Arrears Calculation
    Please check out the following link also:
    http://help.sap.com/saphelp_erp2004/helpdata/en/41/37b8e7455b11d182b40000e829fbfe/frameset.htm
    Hope this helps.
    Please assign points as a way to say thanks.
    Regards,

  • Issue for running complex insert statement

    Hello expert,
    I have a complex insert statement in store procedure. when I run this statement in toad, it takes only 1 minute. but when I monitor execution of this procedure, it takes about 2 hours. this insert statement is as " insert into table select......". can you tell me the possible reason for that ? by the way , index for these two running are always existing there.
    Many Thanks,

    Thanks for all you reply, I create another procedure using statements from issue procedure. it takes 3 minutes compared with 2 hours for this insert statement in the issue procedure. I find out a statement before this insert statement in the issue procedure as follows, I wonder if this is the reason for low performance:
    EXECUTE IMMEDIATE 'ALTER SESSION SET OPTIMIZER_MODE=RULE';
    at the end of the issue procedure, having another statement:
    EXECUTE IMMEDIATE 'ALTER SESSION SET OPTIMIZER_MODE=ALL_ROWS';
    please tell me if these statement will affect the performance. I know little about DBA, so I post it overhere without advanced investigation. Appreciate very much for your help.

  • How to Handle Large Dumps and Complex Calculations in OBIEE

    Hi,
    We are working on some reports in OBIEE and we are unable to optimize performace. Please consider following scenerios:
    1) Detail Report
    In this particular report we have essentaily data dump. That is there are 5 Dimentions and a Fact table and we are just selecting
    fields from various Dimentions and facts. But the problem is there are over 5000 records. I guess that is making report very slow.
    Another issue is when we click on PAGE Contols, they simply dont work, that is if we click on (>>) to see all records its takes lots
    of time but show only first 25 records. Any idea what is the problem.
    2) Calculated Report
    We have one calculated report where there are 7 calculated columns. Because every column contains different Measures and we have to
    use lots of Filter expressions
    Eg: Filter (Measure1 USING {@VarDate} BETWEEN DIM1.FromDate and Dim1.Todate AND {@VarDate} BETWEEN DIM2.FromDate and Dim2.Todate AND <SOME OTHER FILTERS> )
    The Granuality of data is at employee level and there are around 1388726 records in Fact table.
    Is there is any way to optimize above except to create a summary table instead?
    kindly guide us on above scenerios

    Hi,
    Thanks for your reply, I was trying things suggested, I found that the actual physical SQL (which I can get from "Manage Session" link) run in like 4-5 seconds in Query analyzer but: when I studied SQL carefully it does not contain some fiters which we I have applied in report.
    From example i have a filter in report <Measure.Present = 1 > but in Physical SQL i cannot see that filter. However, the results it gives on dashboard are correct that is after it applies the fillter.
    Any idea why is this happening?
    My guess is because above filter is not being applied at physical sql level thats why query fetches like 20000 recors in server cache and then it applies <Measure.Present = 1 >. Thats why it might be taking time ?
    Please give me your suggestions.
    Thanks !

  • Run a calculation and keep Log-GUI uptodate

    Hello,
    I have some troubles trying to run a thread and keep the GUI uptodate at the same time. The idea initial idea is:
    - In the "normal" GUI there are two buttons to "Start" and "Cancel" a bigger calculation task.
    - Once the "Start" Button is clicked, the calculation is started
    - Since the user might want to cancel it, the "Cancel" Button should be able to abort the calculation process
    - The Calculation itself should be able to write results into a log-JTable which is also part of the "normal" GUI
    I tried to put the calculation in a separate Thread and then wait for the results:
    startTheThread();
    while threadNotFinished() {
    this.wait(500);
    Sadly- the GUI isn't refreshed neither can the user click the Cancel Button :-(.
    I guess this problem is quite common, but I haven't found anything helpful yet. Can someone help me with this please?
    Regards,
    Peter Vincent

    Make sure you are doing your calculation out side the event thread and updating via invokeAndWait or invokeLater.
    Probably better was to handel the threading, but here is an example...
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    public class ThreadedTable extends JFrame implements ActionListener, Runnable
        DefaultTableModel model;
        Thread t;
        JButton start;
        JButton stop;
        int lastEntry;
        boolean kill;
        public ThreadedTable()
            this.setDefaultCloseOperation( EXIT_ON_CLOSE );
            String[] names = {"Col - 1","Col - 2"};
            model = new DefaultTableModel(names, 0  );
            JTable table1 = new JTable( model );
            Container pane = getContentPane();
            pane.setLayout(new BorderLayout());
            JScrollPane s1 = new JScrollPane( table1 );
            JPanel buttonPanel = new JPanel();
            start = new JButton( "Start");
            start.addActionListener( this );
            buttonPanel.add( start );
            stop = new JButton( "Stop");
            stop.addActionListener( this );
            buttonPanel.add( stop );
            pane.add(s1, BorderLayout.CENTER);
            pane.add(buttonPanel, BorderLayout.SOUTH );;
            pack();
        public static void main(String args[])
            ThreadedTable test = new ThreadedTable();
            test.show();
        public void run()
            Vector v = new Vector();
            v.addElement( "col 1 Data");
            v.addElement( "counter = "+lastEntry++);
            model.addRow(v);
         * Invoked when an action occurs.
        public void actionPerformed(ActionEvent e)
            if( e.getSource().equals( start ) )
                if( t != null )
                    while( t.isAlive() )
                        kill = true;
                        try
                            Thread.sleep( 120 );
                        catch( Exception exc )
                            exc.printStackTrace();
                kill = false;
                Runnable runner = new Runnable()
                    public void run()
                        while( !kill )
                            try
                                SwingUtilities.invokeAndWait( ThreadedTable.this );
                                Thread.sleep( 1000 );
                            catch( Exception exc )
                                exc.printStackTrace();
                t=new Thread( runner );
                t.start();           
            else if( e.getSource().equals( stop ) )
                kill = true;

  • Can't seem to run SketchUp calculations without stalling.

    I've recentely freed up some disk space, about 38 of the 74,2G is available now. And things have been running more smoothly.
    It puzzles me though why SketchUp stalls with practically every calculation, while Photoshop (which i thought requires quite some computing space) runs as smooth as silk.
    Any suggestions as to how i can resolve this?

    never mind people, just found out that my video card is horribly outdated. gdmn.

  • Can not run complex report with ReportClientDocument using POJO beans.

    Hi All,
    Any help would be very appreciated I have been stack on this issue for the last 4 hours.
    My report has parameters, a ResultSet and subreports that themselves have both parameters and ResultSet.
    The report runs well in Crystal Report Designer but not on my application with ReportClientDocument API.
    The excpeiton I am getting is:
    ======================================================================
    Caused by: java.lang.NullPointerException
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.do(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.bs.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.bs.byte(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.a3.if(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.else(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.for(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.h.for(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.tramada.documents.businessobjects.BODocumentProvider.generateDocument(BODocumentProvider.java:178)
    16:22:56,796 INFO  [STDOUT]      at com.tramada.documents.service.impl.DocumentServiceImpl.generateDocumentContent(DocumentServiceImpl.java:125)
    16:22:56,796 INFO  [STDOUT]      ... 58 more
    This is my class that is trying to do the work.:
    ======================================================================
    BODocumentProvider.java Created on 19/05/2008
    This software is the confidential and proprietary information of Tramada
    Systems Pty Limited.
    package com.tramada.documents.businessobjects;
    import java.io.ByteArrayInputStream;
    import java.util.List;
    import java.util.Locale;
    import com.businessobjects.samples.pojo.POJOResultSetFactory;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObject;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.occa.managedreports.IReportAppFactory;
    import com.crystaldecisions.sdk.occa.report.application.ISubreportClientDocument;
    import com.crystaldecisions.sdk.occa.report.application.ParameterFieldController;
    import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.application.SubreportController;
    import com.crystaldecisions.sdk.occa.report.data.Fields;
    import com.crystaldecisions.sdk.occa.report.data.IField;
    import com.crystaldecisions.sdk.occa.report.data.ITable;
    import com.crystaldecisions.sdk.occa.report.data.Tables;
    import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
    import com.crystaldecisions.sdk.occa.report.lib.IStrings;
    import com.tramada.core.utils.SoftMap;
    import com.tramada.documents.DocumentDataProvider;
    import com.tramada.documents.DocumentDescriptor;
    import com.tramada.documents.DocumentFormat;
    import com.tramada.documents.DocumentProvider;
    import com.tramada.documents.SubDocumentDescriptor;
    import com.tramada.documents.businessobjects.model.Template;
    import com.tramada.documents.model.DocumentContent;
    import com.tramada.persistence.home.GenericHome;
    Business Objects specific Document Provider.
    public class BODocumentProvider implements DocumentProvider {
        private static final String BO_AUTH_TYPE = "secEnterprise";
        private boolean connect;
        private String userName;
        private String userPassword;
        private String boURL;
        private String documentsFolder;
        private GenericHome home;
    Local cache. Keeps track of document source for better performance.
        private SoftMap<String, ReportClientDocument> cachedSources = new SoftMap<String, ReportClientDocument>();
        // SETTERS & GETTERS
        // SETTERS & GETTERS
        public GenericHome getHome() {
            return home;
        public void setHome(GenericHome home) {
            this.home = home;
        public boolean getConnect() {
            return connect;
        public void setConnect(boolean connect) {
            this.connect = connect;
        public String getBoURL() {
            return boURL;
        public void setBoURL(String boURL) {
            this.boURL = boURL;
        public String getUserName() {
            return userName;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getUserPassword() {
            return userPassword;
        public void setUserPassword(String userPassword) {
            this.userPassword = userPassword;
        public String getDocumentsFolder() {
            return documentsFolder;
        public void setDocumentsFolder(String documentsFolder) {
            this.documentsFolder = documentsFolder;
        // PUBLIC INTERFACE
    Generates a document given its descriptor.
    @param descriptor
               valid document descriptor
    @return Document (generated document).
        public DocumentContent generateDocument(DocumentDescriptor descriptor, DocumentFormat format) throws Exception {
            if (descriptor == null) {
                throw new IllegalArgumentException("descriptor==null");
            if (format == null) {
                throw new IllegalArgumentException("format==null");
            // get the document source.
            // Can not use setDataSource() error code 2147483648?
            ReportClientDocument document = getDocument(descriptor.getDocumentName());
            ParameterFieldController parameterController = document.getDataDefController().getParameterFieldController();
            // insert the main document parameters and there values
            populateParameters(document.getDataDefController().getDataDefinition().getParameterFields(),
                    parameterController, descriptor, "");
            // insert into the main document all the required data.
            Tables tables = document.getDatabaseController().getDatabase().getTables();
            for (int i = 0; i < tables.size(); i++) {
                ITable table = tables.getTable(i);
                String tableAlias = table.getAlias();
                DocumentDataProvider provider = descriptor.getDocumentDataProvider(tableAlias);
                POJOResultSetFactory factory = new POJOResultSetFactory(provider.getDataType());
                document.getDatabaseController().setDataSource(factory.createResultSet(provider.getData()), tableAlias,
                        tableAlias);
            // go through all the sub-documents and do the same thing as for the
            // main document.
            SubreportController subReportController = document.getSubreportController();
            IStrings names = subReportController.getSubreportNames();
            for (int i = 0; i < names.size(); i++) {
                String subDocumentName = (String) names.get(i);
                SubDocumentDescriptor subDescriptor = descriptor.getSubDocument(subDocumentName);
                // get the actual sub document.
                ISubreportClientDocument subDocument = subReportController.getSubreport(subDocumentName);
                // insert the subdocument parameters.
                populateParameters(subDocument.getDataDefController().getDataDefinition().getParameterFields(),
                        parameterController, subDescriptor, subDocumentName);
                // insert into the main document all the required data.
                Tables subTables = subDocument.getDatabaseController().getDatabase().getTables();
                for (int j = 0; j < subTables.size(); j++) {
                    ITable subTable = subTables.getTable(j);
                    String tableAlias = subTable.getAlias();
                    DocumentDataProvider subProvider = subDescriptor.getDocumentDataProvider(tableAlias);
                    POJOResultSetFactory subFactory = new POJOResultSetFactory(subProvider.getDataType());
                    subDocument.getDatabaseController().setDataSource(subFactory.createResultSet(subProvider.getData()),
                            tableAlias, tableAlias);
            // generate the report in the specified format
            ByteArrayInputStream bais = (ByteArrayInputStream) document.getPrintOutputController().export(
                    getReportFormat(format));
            byte[] content = new byte[bais.available()];
            bais.read(content);
            return (new DocumentContent(content));
    Refreshes the connector and all its cached document sources.
        public void refresh() throws Exception {
            cachedSources.clear();
        // PRIVATE ROUTINES
    Populates the document parameters with there values.
        private void populateParameters(Fields parameters, ParameterFieldController controller,
                DocumentDescriptor descriptor, String documentName) throws Exception {
            for (int i = 0; i < parameters.size(); i++) {
                IField parameter = parameters.getField(i);
                String parameterName = parameter.getName();
                if (!descriptor.getParameters().containsKey(parameterName)) {
                    throw new IllegalStateException("missing parameter entry for '" + parameterName + "'");
                Object value = descriptor.getParameter(parameterName);
                if (value != null) {
                    controller.setCurrentValue(documentName, parameterName, value);
    Retrieves the document source. If the source is not cached get it from
    BO. First get the template name that is stored on BO.
        private ReportClientDocument getDocument(String documentName) throws Exception {
            ReportClientDocument source = cachedSources.get(documentName);
            if (source == null) {
                String templateName = getTemplateName(documentName);
                if (userName == null) {
                    throw new IllegalArgumentException("user-name==null");
                if (userPassword == null) {
                    throw new IllegalArgumentException("user-password==null");
                if (boURL == null) {
                    throw new IllegalArgumentException("boURL==null");
                if (documentsFolder == null) {
                    throw new IllegalArgumentException("documents-folder==null");
                // login to BO
                IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userName, userPassword,
                        boURL, BO_AUTH_TYPE);
                IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
                // get the application folder.
                IInfoObjects folders = iStore.query("Select SI_ID From CI_INFOOBJECTS Where SI_PROGID='CrystalEnterprise.Folder' And SI_NAME = '"
                        + documentsFolder + "'");
                if (folders.size() != 1) {
                    throw new IllegalStateException("documents folder '" + documentsFolder + "' not found on BO Server '"
                            + boURL + "'.");
                IInfoObject folder = (IInfoObject) folders.get(0);
                // get the document identified by the template name.
                IInfoObjects templates = iStore.query("select SI_ID, SI_NAME From CI_INFOOBJECTS "
                        + "where SI_PROGID = 'CrystalEnterprise.Report' " + "And SI_INSTANCE_OBJECT = 0 "
                        + "And SI_PARENT_FOLDER = " + folder.getID() + " And SI_NAME= '" + templateName + "'");
                if (templates.size() != 1) {
                    throw new IllegalStateException("template with name '" + templateName + "' not found in folder '"
                            + documentsFolder + "'on BO Server '" + boURL + "'.");
                source = ((IReportAppFactory) enterpriseSession.getService("RASReportFactory")).openDocument(
                        ((IInfoObject) templates.get(0)).getID(), 0, Locale.getDefault());
                cachedSources.put(documentName, source);
            return (source);
    Returns the associated template name for the given document descriptor.
        @SuppressWarnings("unchecked")
        private String getTemplateName(String documentName) {
            Template example = new Template();
            example.setDocumentName(documentName);
            List<Template> templates = (List<Template>) home.findByExampleExcludingAssociations(example);
            if (templates == null || templates.size() != 1) {
                throw new IllegalStateException("no template defined for document name '" + documentName + "'");
            return (templates.get(0).getTemplateName());
    Get the equivalent BO format for the given document format.
    @param format
               document format.
    @return ReportExportFormat
        private ReportExportFormat getReportFormat(DocumentFormat format) {
            if (format.equals(DocumentFormat.PDF)) {
                return (ReportExportFormat.PDF);
            } else if (format.equals(DocumentFormat.WORD)) {
                return (ReportExportFormat.MSWord);
            } else if (format.equals(DocumentFormat.EXCEL)) {
                return (ReportExportFormat.MSExcel);
            return (ReportExportFormat.MSWord);
    Best Regards
    Khalef  Bessaih

    Hello,
    If I understand correctly, you create a local report which choose report from Report Server. You have two query parameters in the report which are returned by stored procedure. Currently, you cannot get default values for these parameters when run the report.
    Based on my test, if we haven’t configure these parameter with Available Values, we can reproduce the same issue. Also, caching issue may cause the same issue. If the issue is persist, please delete the corresponding report in the report server. Then, redeploy
    it to check.
    There is a similar issue, you can refer to it.
    http://social.msdn.microsoft.com/Forums/en-US/6a548d65-35d0-4a3e-8b64-3b7b655c76ee/ssrs-2008-report-parameter-default-value-doesnt-work-when-deployed
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to select specific rows in rtf template for complex calculation

    Hi,
    I want custom calculation in my rtf template and for this i need to select specific cell's value OR specific row's value. Any one please suggest how can I get this. Below is the example i have plotted using excel. My target is to get field 8 and 9 using sum and minus. We can calculate column over column, is there any way to calculate row over row? If I use variables, then i have to create so many variables because I have more columns and rows to calculate (here i posted one sample table). Any one please help me how can I get expected result other than using variables! If "Using variables" is the only way then also give your valuable opinions.
    Row No
    Curr Qtr
    PQtr1
    PQtr2
    3
    B3
    C3
    D3
    4
    B4
    C4
    D4
    5
    B5
    C5
    D5
    6
    B6
    C6
    D6
    7
    B7
    C7
    D7
    8
    B8=SUM(B4:B7)
    C8=SUM(C4:C7)
    D8=SUM(D4:D7)
    9
    B9=B8-B5
    C9=C8-C5
    D9=D8-D5
    Thanks.

    Hi AlexAnd,
    Thanks for the reply, I got 0 using both codes. This is a dummy table and I plotted 3,4 to give an idea of row number (as like as excel). Rows are individual data sets combining different measures and dimensions with different values.
    Account
    Curr_Qtr
    PQtr1
    PQtr2
    Deposit
    10
    15
    20
    Loan
    15
    20
    25
    Earning
    20
    25
    30
    Assets
    25
    30
    35
    Total
    =SUM(15,20)
    =SUM(20,25)
    =SUM(25,30)
    Expense
    =SUM(15,20)-25
    =SUM(20,25-30
    =SUM(15,20)-25
    Is there any way to identify the range or individual cell's value? Using variables I have to create lots of variables for each cells, I want to avoid that and want to use rows in calculation! Is that possible, Pls share your valuable opinions!
    Thanks.

  • Variable to store a result of a complex calculation in bex query

    Hello all,
    I've got a query in BEX with some key fields to display and also need to perform some calculations not supported in bex formulas.
    I think this could be made in a BEX user exit and I'm trying this by creating a project in CMOD assigning EXIT_SAPLRR0_001... Working with INCLUDE ZXRSRU01 and so on.
    I just want to know if this is possible this way because I execute my query and the variable created never get any value at runtime.
    Could anybody help me or give an idea on how to use BEx user-exits?
    Thank you very much,
    Carlos Hinestrosa.

    Hi!
      I think it should work .here are some links to help topics on using user exits.
    presentations
    https://websmp206.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700005475091999E
    Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    propably they might help you
    With regards
    Ashwin

  • Complex Calculations in Excel 2010 Pivot Tables

    Douglas R. Eckert

    It would be better if you can provide us with more information for this issue....
    In PivotTable reports, you can use summary functions or customer calculations in value field. You can also create your own formulas in calculated fields and calculated items.
    Please refer to:http://office.microsoft.com/en-gb/excel-help/calculate-values-in-a-pivottable-report-HP010382405.aspx?CTT=5&origin=HP005200663

  • What is advisable for complex calculation fields in ADF?

    Hi,
    I am using JDev 11.1.1.2.0 with ADF 11g.
    I have a screen where user is going to select couple of LOVs. Based on this selection one of my "read only field" should get refreshed.
    This field should actually do calculation based on the 2 fields and another column of a table.
    So for such cases is it advisable to build a function and call this from a binding method OR there is a better way of displaying a calulated field.
    NOTE:
    1. using the expression on a transient field is good if the calculated fields are available in the row. Here I have to fetch a value from a completely different table's column that is not present in the row. Again the value that will be fetched will depend on some other parameter which is available to me in the session
    2. I am looking out to make this generic since these combination of fields are repeated in few of the screens and for same calculations
    Kindly advice the ways in which this can be handled. And pls point the best from your view point.
    Thanks in advance.

    Any quick suggestion?

  • Complex Calculations

    Hello,
    I need to create a calculated measure that is the sum of five fields. I know I can do this by creating three intermediate variables (due to the limitation of only being able to add two numbers together in the standard calculated measures), but is their a better way to do this? I would rather not have a bunch of intermediate measure clogging up what the users see in Discoverer.
    Any help would be greatly appreciated.
    Thanks,
    Carl

    You have probably noted that the Calculation Wizard in Analytic Workspace Manager does not offer free from calculations such as Measure_A = Measure_B + Measure_C + Measure_D + Measure_E + Measure F. You have two other methods that you can define calculation: altering the formula of a measure using the OLAP DML and adding the measure through the AW/XML API.
    The OLAP DML is the language of the multidimensional engine. The method of using this language to change the equation of a formula is as follows:
    1. Create a calculated measure (any calculation) in the appropriate cube.
    2. Change the equation using the CONSIDER and EQ commands. Let's say you created the TOTAL_SALES measure in cube UNITS and you want this to be the sum of several other measures. You would using the following command in OLAP Worksheet (which is accessed via AWM's Tools menu).
    CONSIDER UNITS_CUBE_TOTAL_SALES
    EQ UNITS_CUBE_SALES_B + UNITS_CUBE_SALES_C + UNITS_CUBE_SALES_D + UNITS_CUBE_SALES_E + UNITS_CUBE_SALES_F
    UPDATE
    COMMIT
    Note that the measures are all referenced by their formulas (rather than the variables) in the above example.
    To view the altered formula, use the DESCRIBE command. E.g.,
    DESCRIBE UNITS_CUBE__TOTAL_SALES
    This method is pretty easy. The downside is that the equation does not get carried with any templates you create of the measure, cube or AW. Also, if the physical implementation of the AW (that is, the low level objects that make up the phyiscal model) change, you might need to revisit the measure and make adjustements. Neither of this issues are a big deal - you just need to be aware of tthem.
    The other approach is to create an AW/XML template and read it using AWMs Create Custom Measure from Template command (right mouse of Calculated Meaures under cube). A sample follows.
    &lt;Create Id="Action1"&gt;
    &lt;ActiveObject &gt;
    &lt;DerivedMeasure Name="TOTAL_SALES" LongName="Total Sales" ShortName="Total Sales" PluralName="Total Sales" Id="UNITS_CUBE.TOTAL_SALES.MEASURE" DataType="decimal" isInternal="false" UseGlobalIndex="false" ForceCalc="false" ForceOrder="false" SparseType="STANDARD" AutoSolve="DEFAULT" ExpressionText="UNITS_CUBE.SALES_B.MEASURE + UNITS_CUBE.SALES_C.MEASURE + UNITS_CUBE.SALES_D.MEASURE + UNITS_CUBE.SALES_E.MEASURE + UNITS_CUBE.SALES_F.MEASURE"/&gt;
    &lt;/ActiveObject&gt;
    &lt;/Create&gt;
    Note that in the AW/XML XML document all objects are reference to by their logical names.
    The advantage to this approach is that the AW/XML api is fully aware of the measure definition and (a) can carry it in AW, cube and measure templates and (b) it insulates you from the physical implementation.
    If you try this approach, be aware that the syntax is exacting and that error messages from bad syntax is not easy to interpret.

Maybe you are looking for

  • Sound Issues in Mac and Windows

    I'm new to the forums so please don't flame me if there is a solution out there. I have a month old MacPro on 10.4.8. Over the past week my headset sound has been very spotty. Sometimes I can hear music with no vocals. My games play ambient sound but

  • How Can I separate my MIDI Channels with layered instruments in MainStage 2 With my Axiom 61?

    I have been at it for 3 days straight. I want to play an internal instrument (EVB3 for example) and trigger samples with the EXS24 without triggering notes from the other instrument. I have my keyboard set to MIy help meDI channel 1 and my drum pads

  • X2-01 : Blank entry in my call log!!!

    I updated my X2-01 to v08.63 yesterday.It had no other problems.But now there is a blank entry in the call log and i cant delete it.I've tried the backup and restore solution for blank msg bug,but it didnot work. Somebody please help me.....

  • Header text disappearing in PO

    Hi all, I am entering a Header text in PO heading, when when I do enter on a PO field, the text disappears. This is when using "1 Continuous text editor". When I select "2 Line editor", it re-appears ... In customizing, it is defined with a copy rule

  • HT2905 Where is the Display Duplicates option in iTunes 11?

    I just downloaded iTunes 11 and notice that the "display duplicates" option is not available in the Music Library.  Why?