Query on Cube Property.

Hi All,
As per reporting requirement, most of the reports are daily reports and it is based on status. For each service Order they will be changing of different status.As per BW, only the finalized data can upload it into the cube. Most of reports in BW is keep on changing the status and this requirement can achieve only with ODS level. Compared to Info Cube, ODS will have less performance in reporting side. But this reporting requirement can achieve only in ODS.
With this requirements, can we able to use info cube ? 
I have analysed and got some inputs from my friend.
Can you suggest whether this will workout in the cube or not.
If i am loading data at Service_order level into infocube, Create a KYF and use it as a flag (1 or -1). Then for every new status, load data with the KYF as 1, then on change make the old status as -1 and the new status as 1.
When Status A,
        Status = "A", KYF = 1.
When Status B,
        Status = "A", KYF = -1.
        Status = "B", KYF = 1.
and so on .....
So at any point of time, the Status whose sum(KYF) = 1 is the active status, that you can manage at the report level through a global Calc KYF.
My query is how can i set (1 and -1) for each record and how the record will update in the cube.
Pls suggest on this..
Thanks,
Ram.
Edited by: Ram Siva on Mar 5, 2009 6:39 AM

Hi Ram,
As your friend suggested you can work out that way, But Before loading directly into the Infocube , Just load it to DSO, then from there populate into the Infocube, Add a Keyfigure in the Infocube. For the First time load it into the Infocube , make the KF as 1 . then in the second load or the delta load, check the record modes if a status is changed, if you are getting after image and before image then you can always multiply the before image with -1 for the same KF. In this way you can nullify the value 1 for the old record and your new record always comes with 1 giving you the latest record.
Thanks,
VSK

Similar Messages

  • Java.sql.SqlRecoverableException error while querying the cube

    Hi
    I get the following error when I try to query the cube from a Java program
    java.sql.SqlRecoverableException: no more data to read from the socket.
    This error occurs sometimes and sometimes it does not occur.
    We observed that if many people simultaneously try to query the cube the error crops up.
    Is this a bug or is there a solution or a method to deal with this sort of situation

    That sounds like the connection to the database is not there, or was dropped. Check that you are not maxed out on the number of processes.

  • Query on Cube jumps to Query on ODS ; Query on ODS takes Long time

    Hi All,
    Perormance Issue:  Query on Cube jumps to Query on ODS.
    Query on ODS taking long time.(JumpQuery)  
    Specific to ODS Query: When i have checked the Query on ODS(individually) also taking longer time
    Actually ODS contains quite huge data. Indexes already maintained.
    I have checked the RSRT- Execute SQL and Debug Option also. Indexes maintained Perfectly .
    Order of objects in ODS indexes are matching the order of Objects in SQL stat of RSRT Trans. Inspite of that taking long time.
    I have checked both the ways jumpquery aswellas individually .
    My question is when the query is jumping from cube to query on ODS how to check the performance, how the query is executing in background when switching over to the second query, Moreover calculated keyfigure has been used for jumping to the target query.
    How can query(ods query)  time is optimized or improve performance when jumping  from query on Cube ?
    can any body help?
    Rgds,
    C.V.
    Message was edited by:
            C.V. P

    What i understand is that you need to optimise the Query jumping time . But this will be very less compared to the time taken by the query on the ODS.
    Ideally you shouldnt be making a BEx Query on the ODS , as this takes a long time. What you can do is try executing the Bex Query on the ODS to find out as to where the issue lies. If this query is taking a long time , there is not muich that you can do here.

  • Can't filter community query by custom property

    I'm trying to search for a community through the objectManager based on a custom property value (part of a LoginPEI that redirects the user on login to a personalized community).  The Query() call is failing with the following exception:
        ParseQueryFilter error on clause #0
        (0x80070057) Invalid property ID specified (0xc8)
    where 0xc8 is the ID of the property I'm filtering by.
    The same code works correctly if I filter by PT_PROPIDS.PT_PROPID_NAME instead, making me think it's something about either that property in particular, or just filtering managed objects by extended props in general.   I've confirmed that the property has been added to the community object through the Global Object Property tool.
    Code shown below (and, yes, I'm aware that the results if there are more than one matching object are undefined).  Any advice appreciated.
    Thanks,
    Pete
        private int lookupObjectBySingleProperty(IPTSession session, int classId, int propertyId, Object value) {
          IPTObjectManager objectManager = session.GetObjectManagers(classId);
          Object[][] filter = {
                                new Object[] { propertyId },
                                new Object[] { PT_FILTEROPS.PT_FILTEROP_EQ },
                                new Object[] { value }
          IPTQueryResult results = objectManager.Query(
            PT_PROPIDS.PT_PROPID_OBJECTID, //Property properties
            -1, // search all folders -- might want to restrict this later
            PT_PROPIDS.PT_PROPID_OBJECTID, //sort
            0, // start at first result
            -1, // return all results
            filter); // filter
          if (results.RowCount() == 0) {
            return -1;
          return results.ItemAsInt(0, PT_PROPIDS PT_PROPID_OBJECTID);

    can you try filter this way:
    var sURI = 'http://<host>:<port>/sap/opu/odata/sap/ZTESTODATA_SRV/';
      oModel = new sap.ui.model.odata.ODataModel(sURI, false),
      sap.ui.getCore().setModel(oModel);
      var sRead = "/pdfset(customer='" + oTF.getValue() + "')"  ;
    oModel.read( sRead, null, null, true, function(oData, oResponse){
      var pdfURL = oData.url;

  • Sample needed to query BW cube

    I have two BW(BPC) cubes which are HANA enabled. I have heavy data processing logic currently in BADI and I am trying to push that into HANA DB layer, possibly as a SQL procedure.
    1) Can someone point me to some sample/direction to achieve this
    2) Any samples on how to query BW cubes and update them back
    3) Is this the right forum for this question?
    Appreciate any leads
    ~Dilkins

    Hi,
    Sorry coz i didn't tell you that I'm using Business Object, crystal report . Thru crystal report I want to extract data from BW cube or Query.  In other word, the database connection is from BW server.
    I try to design the report thru OLAP report and extract multiple cube from BW, and i'm only can see one of the cube. The others cube I can't see. And then i try to retrieve data from existing cube that i can see, and i got this error 'Database Connector Error: 'Function module "/CRYSTAL/MDX_GET_STREAM_INFO" not found. Where can i get the function module.
    Can you help me on this.
    Thank you in advance for your help
    Regards,
    Akma

  • How to query a cube using SQL ?

    Hi I have a MOLAP cube say CubeA with dimensionA having Attribute A1 and dimensionB having attribute B1
    the measure of cube is M1.
    Any idea how i can query the cube using SQL dislaying both the dimensions with the measure interlinking them.
    I just need a general overview of how to sql query a cube .. I have the dimensions and sttributes and name of the cube but i ineed to know how to query it... I was given an example
    SELECT
    t.time_long_description,
    p.product_long_description,
    c.customer_long_description,
    f.sales,
    f.sales_ytd
    FROM
    time_calendar_view t,
    product_std_view p,
    customer_std_view c,
    sales_cube c
    WHERE
    t.dim_key = f.time
    AND p.dim_key = f.product
    AND c.dim_key = f.customer
    AND t.level_name = 'CALENDAR QUARTER'
    AND p.level_name = 'BRAND'
    AND c.level_name = 'STATE';
    but i cant understand it.. i cant figure out what are the dimensions and where are the attributes...
    Any idea would great...

    There's a nice tutorial here: http://st-curriculum.oracle.com/obe/db/11g/r1/olap/cube/querycubes.htm
    Here are a few basics. Note that the link between the dimensions is the join between the dimension or hierarchy views and the cube.
    * The primary key to every dimension and hierarchy view is DIM_KEY.
    * The primary key to the fact table is dim1, dim2, dim3, so all joins are between dim_keys and dim1, dim2, etc.
    * Dimension, hierarchy and cube views contain rows for both leaf (detail) and summary rows (that means cubes can return very, very large numbers of rows is you aren't careful)
    * You typically want to query for the aggregate level data rather than use SUM ... GROUP BY. Let the cube do the work and let it manage calculations.
    * Dimension views contain rows for all dimension member. hierarchy views contain rows for only members of the hierarchy.
    * You typically select one of the long or short description columns to display data within an application.
    Here's a commented version of your query:
    SELECT
    t.time_long_description, -- long descriptions
    p.product_long_description,
    c.customer_long_description,
    f.sales, --measures
    f.sales_ytd
    FROM
    time_calendar_view t, --hierarchy views
    product_std_view p,
    customer_std_view c,
    sales_cube c --cube view
    WHERE
    t.dim_key = f.time ; -- joins between hierarchy and cube views
    AND p.dim_key = f.product
    AND c.dim_key = f.customer
    AND t.level_name = 'CALENDAR QUARTER' -- Filters to ask for data at the quarter
    AND p.level_name = 'BRAND' -- brand
    AND c.level_name = 'STATE'; -- and state levels.
    You want to have a filter on every dimension to avoid return all rows in the fact table for that dimension (remember, the cube contains summary rows). If you want to drop a dimension from a query (e.g., you don't want product in the query, intending for the query to be the aggregate of all products), filter to an all/total level.
    e.g.,
    and p.level_name = 'ALL PRODUCTS'
    or
    and p.long_description = 'All Products'
    There are many variation of this query, but if you understand the basics you'll work your way there.
    And, never do a select count(*) from a cube. Doing so will select the entire cube, detail and summary data.

  • Trouble displaying Period Depreciation in query against cube 0FIAA_C02

    Hello,
    I'm quite familiar with writing queries, however and I'm having trouble displaying "Period Depreciation" in a query against cube 0FIAA_C02.
    All charactertistics and most of the the key figure values appear with values displayed in the query....however any key figure that is to be related to "Period Depreciation" displays a zero.
    Any thoughts on how I can display "Period Depreciation" from this cube?
    Jim

    Hi,
    is the field "Period Depreciation" added to the cube or was it already in the business content ?
    If it was added you can check if the value for "Period Depreciation" is correctly filled from within the update rule to the cube.
    regards,
    Raymond Baggen
    Uphantis bv

  • How to use property file - sql query define in property file

    Hi All,
    Anybody please tell me how to use property file.
    I have placed sql query in propery file and I have to access this in my file.
    well so far this is my code but don't know how to implement in the following ...
    pstmt = con.prepareStatement("select * from registration where username=?");
    instead of writting the query I want to use the property file.
    so far I have developed the following code...
    FileInputStream fis = new FileInputStream("querysql.property");
    Properties dbProp = new Properties();
    dbProp.load(fis);is the code correct... or is there another way to access property file
    Please help.
    please reply soon....
    Thanks

    Before answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182

  • Create SSRS report using DMV for querying SSAS cube.

    I am trying to create a SSRS Report to find the Cube/Dimension Status (when was Cube/Dimension last processed and is Failed/Success), for example I have below DMV query for the same.
    SELECT CUBE_NAME, LAST_DATA_UPDATE FROM $System.MDSCHEMA_CUBES
    When i execute the above query in MDX query window it comes up with results, when i try to create a data using the above query in report server its coming up with error.
    Error : Please verify that the query is an MDX one and not DMX. (Microsoft.AnalysisServices.Controls)
    Can we use DMV querys for createing SSRS report and what should be the datasource.
    Thank You.
    Praveen

    Hi Praveen,
    Glad to hear that the issue had been solved. Thank you for sharing the useful information.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Content query using linked property [WLP 9.2]

    Hi -
    I've set up a content type in WLP 9.2 that consists of three properties:
    - linkedDevice (Link-Property -> to Node of type Device)
    - linkedTariff (Link-Property -> to Node of type Tariff)
    - combinedPrice (Double-Property)
    Now I'm trying to get the price for such a combination of Device and Tariff by using the <cm:search> like this:
    <cm:search id="prices" query="linkedDevice contains '${device.id}'>
    I've made sure that ${device.id} is initialized to contain something like "/BEA Repository/12345" before calling cm:search.
    Unfortunately, I've not been able to query for Nodes using the tag libs / API so far - and I don't get any errors in the logs for the com.bea.content.manager.* classes.
    Any hints? Anybody? :-)
    Thanks,
    Alex

    Currently we dont support linked property in the metadata search(SQL search). So your search query will not work. But if you want to find out the nodes that link to a particular node, you can use our INodeManager.getNodeReferences(). Please refer to the javadoc of INodeManager for more information.

  • Error after Copying Query from Cube to Multiprovider

    Hi ,
    I have One cube which  is running fine . Now I have created one Multiprivider  which has only the Cube . Copied the Query in the Cube to the Multiprovider through RSZC transaction .
    Now the Query copied to Multiprovider  is giving error while executing .some SALAR etc ...
    Not sure what does this error mean .
    can anyone help me pls ?
    Thanks
    pankaj

    Hi
    While copying the query using RSZC it will list all the calculated keyfigures you can select the specific keyfigure and click on transfer selections.
    Thanks

  • Query fromOne cube to another

    Hai Experts,
    A query is working on one cube 1. and i we have created the cube 2 with the same properties and i want to work this query on that cube 2  also.
    Can we copy the query and work the query on the Cube 2
    How  can i do this?
    Thanks,
    Vikram

    Dear Hi,
    Go to the transaction code RSZC
    There mention the Source infoprovider name (Cube 1) and destination infoprovider name(Cube 2).
    and execute it.
    this will copy all the query components you have created on Cube1 to Cube2
    Assign Points if useful
    Regards
    Pradeep $.

  • Issue creating planning query on cube partitioned by fiscal period

    I have a cube that is partitioned by fiscal period (0FISCPER).  This requires that there is a constant value for fiscal year variant (0FISCVARNT).  When I try to create an agg level on this cube 0FISCVARNT is automatically pulled into the agg level.  However, because 0FISCVARNT is set to a constant value it is not available in query designer to add into a planning query...as such, I cannot create a planning query on this cube.
    I can repartition the cube (i.e. remove the partitioning), but does anyone know of any other work arounds?
    Thanks.

    We resolved this.

  • Exporting result of query to another input query (Write Cube )?

    Hello BI experts,
    Is it possible to send a result of a read cube / query to be saved into other write cube  / query ?
    If yes , how to do ?
    thx in advance

    Hello srini,
    I am tring to update ODS from a query as per your suggestion.
    But there is a Error
    ==========
    Error in the definition of the analysis process: See long text
    Node: Query 1
    The technical field name KYF_0002 for field 4CKMVZCDCO7A6PK7FT0GB7WCV may only appear once per input or output structure
    My quries is based on multiprovider and also has cell definition in it. Therefore i m not able to update result of query ods.
    what should be done?
    Thanks for your earlier siggestion.

  • How to Query SSAS Cube Size Including Each Fact and Dimension Sizes?

    Microsoft recommends: “In general, the number of records per partition should not exceed 20 million. In addition, the size of a partition should not exceed 250 MB.” http://blogs.msdn.com/b/sqlcat/archive/2009/03/13/analysis-services-partition-size.aspx
    I am not able to find any queries that would show how many records/size in MB I have per partition?  
    Please advise.

    To see how big your partitions are simply open Visual Studio/BIDS and go to
    File --> Open --> Analysis Services Database ...
    Now navigate to your cube and to your partitions and you will see some additional columns showing Size of each partition which are only available if you connect to an online-database (opposed to offline development)
    The RowCount is a bit more tricky. The easiest thing would be to use BIDS Helper and update the estimated counts:
    https://bidshelper.codeplex.com/wikipage?title=Update%20Estimated%20Counts
    but be aware, this might take some time as it is querying all relational tables again!
    regarding the 250MB/20M rule: this is a just a guideline and the actual sizes depend on your data and your requirements
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

Maybe you are looking for

  • Bindable XML not working consistently...

    Hi, I've started on an element for a game I'm developing, and I encountered a problem: JavaScript was not gonna get the job done, so I went for Flex. The element in question consists of boxes with items in. Kind of like a storage area. Each box is an

  • File associations not roamed using Remote Desktop Server 2012 R2 Standard

    Hello everyone, As the title mentions, some File Associations does not seems to roam on a RDS 2012 R2 server. We use the following configuration: Windows Server 2012 R2 Remote Desktop Server(s) Roaming Profiles to a user based network share Delete ca

  • Parallel workflows in CUP

    Hello Experts, our environment has SAP HR , GRC CUP (5.3) and Active directory(connected to IBM tivoli Manager). I have a requirement where I need to provision user IDs to SAP systems through GRC CUP after the Hire event is completed in SAP HR.  To p

  • Upgrade logic for the projectmix

    I'm using logic pro 7.01 and i was wondering if i should get the upgrade 7.1 because i have a projectmix now and have some really annoying problems with it. Do you think it will help or is there not that much difference? Thanks

  • Recovering a clip from a Crashed iMovie project?

    I was recording a clip from iSight when the machine froze.... upon a reboot, my project was empty - although it is 900MB!! I found a clip (900MB big) in the Media folder within the project, but when I double click it, quicktime says it can't read it.