Data modelling - counter scenrio

I need to report counters for no of sales orders on delivery block, incomplete orders and billing blocks and count backorder line items.
I have a DSO mapped with VAITM, key fields sales doc and item no.
I have all - delivery block, incomplete orders indicator (enhanced in data source), backorder line item indicator (if order qty is less then confirm qty) and billing blocks are mapped 1:1 in between data source and DSO.
Key figures: no of sales orders, no of line items.
Mapped constant = 1 in DSO.
Now, I am thinking of creating a cube, with sales doc nos, item nos, delivery block, billing block, cal day (sys-datum) and
key figures from DSO i.e  no of sales orders, no of line items.
I need to be now split into new key figures : No of orders on delivery block, no of orders on billing block, no of incomplete orders, no of backorders, no of backorder line items.
What should be the conditions in the transformation routine, so I can get correct counters with repect to system date.
I know that I need to put some routine, which will look at change log and multiply by -1 if a delivery block is removed for an order.
That means, I should be able to report all counters as of date (entered by users).
Can any one explain me theoretically as well as technically.
Please help asap.
Thanks
Rajiv.

Help ?

Similar Messages

  • Using CVS in SQL Developer for Data Modeler changes.

    Hi,
    I am fairly new to SQL Developer Data Modeler and associated version control mechanisms.
    I am prototyping the storage of database designs and version control for the same, using the Data Modeler within SQL Developer. I have SQL Developer version 3.1.07.42 and I have also installed the CVS extension.
    I can connect to our CVS server through sspi protocol and external CVS executable and am able to check out modules.
    Below is the scenario where I am facing some issue:
    I open the design from the checked out module and make changes and save it. In the File navigator, I look for the files that have been modified or added newly.
    This behaves rather inconsistently in the sense that even after clicking on refresh button, sometimes it does not get refreshed. Next I try to look for the changes in Pending Changes(CVS) window. According to the other posts, I am supposed to look at the View - Data Modeler - Pending Changes window for data modeler changes but that shows up empty always( I am not sure if it is only tied to Subversion). But I do see the modified files/ files to be added to CVS under Versioning - CVS - Pending Changes window. The issue is that when I click on the refresh button in the window, all the files just vanish and all the counts show 0. Strangely if I go to Tools - Preferences - Versioning - CVS and just click OK, the pending changes window gets populated again( the counts are inconsistent at times).
    I believe this issue is fixed and should work correctly in 3.1.07.42 but it does not seem to be case.
    Also, I m not sure if I can use this CVS functionality available in SQL Dev for data modeler or should I be using an external client such as Wincvs for check in/ check out.
    Please help.
    Thanks

    Hi Joop,
    I think you will find that in Data Modeler's Physical Model tree the same icons are used for temporary Tables and Materialized Views as in SQL Developer.
    David

  • Two data Models in one report

    Hi There,
    I have created two data model for my report. The queries have no relation to each other. Is that possible to put both these in one report with same user parameters. or do u have any better suggestion to do this.
    For Example:
    select count(*) from (select name "Worker" from person
    where start_date between (:P_1) and (:P_2)
    select count(*) from (select name "ADMIN PERSON" from admin
    where start_date between (:P_1) and (:P_2)
    Thanks

    Hi Jagjit,
    I created one report with 2 SQL queries:
    select count(*) from employees where department_id < :P_1
    and
    select count(*) from departments where department_id < :P_1
    And it worked fine. So your report should be OK. By the way, a report has just one "Data Model". It is possible to have 2 or more "Queries" in the data model.
    Navneet.

  • Inheritance in OPA data model

    Hi all,
    I have a problem which OPM does not seem to handle well, but maybe I am lacking knowledge concerning some functionality. I am using a client patched 10.1 version of OPM.
    Situation:
    - I have an attribute in Global, which states the possibility to export an entitlement. This attribute is deducted using multiple compositions of conditions on both "child" level and "applicant" level. These are both entities in my data model.
    - However, some of the conditions are the generic for both roles. Therefore, what I really want to do is check attributes on "person" level and relate these to "the child" and to "the applicant".
    - Now, I've created an entity "the person" with a relation to "the child" and a relation to "the applicant".
    This raises an issue with the For/ForAll operator
    Issue:
    - To use the "For" operator, a -to-one relationship is needed. However, I can have two persons of which one is a child and one is an applicant. So, I need a - to-many relationship for person (from Global)
    - If I use the "ForAll" operator to 'work around' this problem, the goal attribute will stay inconclusive as the relationship from person 1 to the child is known, but from person 2 to the child in unknown (and vice versa for the applicant)
    Question:
    It seems to me that this is an issue of inheritance which OPM cannot handle. I am wondering:
    - has anyone dealt with this problem and/or does anyone have a solution?
    - is it likely that the entity containment functionality of OPM 10.2 + will be able to solve my issue?
    Thanks & regards, Els

    Given that I don’t know the details of your source material, and I don’t know Dutch, perhaps the best option is if I show you how to get a simple inferred relationship set up and working. Hopefully then you’ll see what it’s doing and know how to set it up for your own rulebase.
    1. Create a new empty test rulebase.
    2. Add a Properties file. Add a regular one-to-many containment relationship from Global to ‘the person’.
    3. From within the Properties file, have Global selected and in the right hand pane select the Relationships tab.
    4. Right-click in an empty space in the right hand pane and select ‘New Relationship’. Use these settings:
    - Source: Global (This will already be set, and will be read-only. If it isn’t already set to Global, then you didn’t do Step 3.)
    - Target: the person
    - Relationship type: Inferred (many-to-many)
    - Text: the adults
    5. Save the Properties file.
    6. Create a Word rule doc.
    7. Add a membership rule for the inferred relationship. A membership rule specifies the logic used to decide which instances are members of the inferred relationship. The parts in italics below are just examples of what the red configuration text will look like when the rule is compiled.
    +[IsMemberOf(“person”,adults)]+ the person is a member of the adults if
    +[p1 >= 18]+ the person's age >= 18
    In my example, I’m just basing it on age. It could be based on just about anything. Try to name your inferred relationship appropriately. I called it “the adults” since that’s what the group is. If I needed to have a group of people >= 18 years and who are female, then I’d call it something like ‘the female adults’, and obviously I’d include gender in the membership rule.
    8. Add some simple entity calculation rule such as these:
    the number of adults in the group = InstanceCount(the adults)
    the total amount of savings of the adults in the group = InstanceSum(the adults, the person's savings amount)
    9. Build and Debug. Work in the Data tab, not the OWD tab. You’ll be able to see more detail about what’s going on if in the Data tab.
    10. Add three instances of ‘the person’. Make two people older than 18 years, and one person younger than 18 years. Give each of them a different savings amount.
    11. Look at the Global results and you will see that the InstanceCount rule calculated ‘2’ and the InstanceSum rule only added up the savings from the subset of people who are adults.
    My general advice on this is:
    If the logic you need to do over subsets of entity instances is relatively simple, and can be easily accommodated by existing Instance functions, then don't bother with inferred relationships. Just set up the regular containment relationship and use the existing entity functions. Here are few examples of less complex entity calculations which can easily be handled without inferred relationships:
    - count the number of adults
    - calculate the total income of all household members who are over 25 years
    - find the age of the youngest male child
    So my example rulebase above is actually one for which I wouldn’t use inferred relationships if that was all I needed it for. I just wanted to pick a simple example to explain the concept. To do the example above without inferred relationships, you’d just need to use InstanceCountIf and InstanceSumIf and put the conditional logic in each calculation rule.
    If the logic you need to do over subsets of entity instances is much more complex and either it's not possible without inferred relationships, or it's just easier/more concise with inferred relationships, then add inferred relationships.
    Cheers,
    Jasmine

  • Calling function in data model

    Hello All,
    I am having 1 issues in a report.
    Here is what i am doing.
    I created a type of varchar2 and created a function which will return me the output of type.
    this runs fine in sqlplus but when i put the same query in data model and join another set of tables,the data model is not able to determine the output of the colums.It shoes me a question mark and not the varchar field.
    Due to this my generation to xml is failing.
    Pls help
    Thanks
    Saurabh

    TYPE CREATED.
    create or replace type str2tblType as table of varchar2(4000);
    FUNCTION CREATED.
    create or replace
    function str2tbl
    (date_from in number,date_to in number,v_inter number)
    return str2tblType
    as
    d varchar2(100);
    l_data str2tblType := str2tblType();
    v_date_from varchar2(100);
    v_date_to varchar2(100);
    begin
    v_date_from := date_from/3600;
    v_date_to := date_to/3600;
    IF INSTR(v_date_from,'.')=0 THEN
    v_date_from := v_date_from||':00';
    ELSE
    v_date_from := SUBSTR(v_date_from,1,INSTR(v_date_from,'.')-1)||':'||(v_date_from - SUBSTR(v_date_from,1,INSTR(v_date_from,'.')-1)) * 60 ;
    END IF;
    IF INSTR(v_date_to,'.')=0 THEN
    v_date_to := '0'||v_date_to||':00';
    ELSE
    v_date_to := SUBSTR(v_date_to,1,INSTR(v_date_to,'.')-1)||':'||(v_date_to - SUBSTR(v_date_to,1,INSTR(v_date_to,'.')-1)) * 60 ;
    END IF;
    d := v_date_from;
    WHILE d!=v_date_to
    loop
    l_data.extend;
    d:= to_char(to_date(d,'HH24:MI')+v_inter/60/24,'HH24:MI');
    l_data(l_data.count) :=d;
    end loop;
    return l_data;
    end;
    SELECT QUERY:
    select * from TABLE(cast( str2tbl(36000,21600,20) as str2TblType ) )

  • BC4J Client Data Model Definition Wizard does not dismiss

    I'm a newbie trying to learn JDeveloper on my own to advance my career. I am following examples given in the Oracle9i JDeveloper Handbook by Koletzke, Dorsey, and Faderman. Everything has worked great so far until now. With the BC4J Client Data Model Definition Wizard, I make it all the way to the last screen and press "Finish". The message window displays several lines of compilation type messages concerning my BC4J components and ends with something along the lines of "compilation success, errors = 0". The appropriate .cpx file gets created and appears under the project in the navigator. However the Wizard never dismisses no matter how long I leave it open (30 hours and counting), and if I open the .cpx file in a text editor, it is empty. It's as if the processing gets hung and never completes. What am I missing and/or where do I look for additional error messages or help??

    Anyone know what I'm talking about?

  • Transporting Data models in SAP HANA

    Hi All,
    I was trying to understand how data models can be transported in SAP HANA and came across the different options in the Export option of hana Studio like exporting with Delivery unit, Developer mode, etc.. Can someone please elaborate on the differences between each and the scenrio when each should be used?
    Thanks,
    Sam

    No Justin, haven't used in any "production" environments till now since the client am working for is still to be upgraded to SP7. At internal system we are doing some R&D in those lines and developing artifacts from "Development" perspective.
    Here i shared this link for reference itself.
    Also i think using Development perspective for modelling is what is being suggested going forward in blogs like this
    6 Golden Rules for New SAP HANA Developers
    May be John Appleby and his team are already using "Development" perspective consistently
    Regards,
    Krishna Tangudu

  • How to know if the data model qry is not returning any data

    Hi
    If my report doesn't have data (meaning if the data model qry doesn't retreive any data), I wan't to show this text: "There is no data returned."
    My question is how would I know that the qry is not returning any data. I know I can create a text field, and write a trigger on it, to set it True or False depending on the fact that data is being returned or not.
    Thanks
    Shalu

    Hi,
    In Data Model create a summary column for function=count on one of your columns.
    Then for BeforeReport trigger you can write
    function BeforeReport return boolean is
    begin
    if :CS_RPT_NODATA > 0 then
    return (TRUE);
    end if;
    SRW.MESSAGE(300,'There is no data');
    return (FALSE);
    end;
    Regards, Gicu

  • Two Data models in one tile class

    Hi
    I have a requirement where two data models have to be linked by a
    common field and printed as one record in a tile. Is it possible to
    associate two models directly to one tile class.
    Or could you please tell me the work arround.
    Regards
    Ajai C

    Hi Jagjit,
    I created one report with 2 SQL queries:
    select count(*) from employees where department_id < :P_1
    and
    select count(*) from departments where department_id < :P_1
    And it worked fine. So your report should be OK. By the way, a report has just one "Data Model". It is possible to have 2 or more "Queries" in the data model.
    Navneet.

  • Official release of data modeler is very slow on Linux (64bit)

    I was testing the beta version on Linux (64bit) and it was fast (reverse engineering from database for example), but I found out the official release of the data modeler is slower compared to the Beta version. The same JDK version, the same Linux 64bit distro. Is there a memory leak with the official release ? Has any one else observed such sluggish performance with the official release of the data modeler ?
    thanx

    By itself the buffer hit cache ratio is a meaningless statistic. It can in fact be a misleading indicator since it does not actually reflect application performance.
    Tune the query. Make sure it is running as well as it can.
    Then look at overall machine resources: average and peak cpu, memory, and IO loads.
    If spare resources exist then considering more resources to the more important databases on the system.
    Document any performance changes that occur after each change. It is possible for the database performance problem being latching, that is, shared pool access and you might need space in the shared pool more than the buffers. It depends on the application and user load.
    Why are you using a 2K database block size? I would think 4k or 8k would probably be better even for a true OLTP with almost all access by index.
    To get help on the query you will need to post it, the explain plan, and information on available indexes, table row counts, and perhaps column statistics for the indexed columns and filter conditions.
    HTH -- Mark D Powell --

  • SQL DM - Copy/Export data models - bug?

    SQL DM - Copy/Export data models - bug?
    I am using SQL DM 3.0.0.665. I need your thoughts on following.
    We used saved as/export of the SQL DM copy the model into another location. We kept our models in harddrive as folder. We did not store it in database.
    We opened the copied model from target model. We found all the links to defined domain was lost. We find the data type shows as Varchar2 instead of Varchar2(20)etc. It creates error on sql.
    Why are loosing the domain definition/linkages during export/save as option?
    Is it a bug?
    Did anyone face such issues?
    What is the workaround?
    Thanks in helping us out.

    Hello,
    Thanks for your reply. I followed the steps. I did copy the folders/files as Kent suggested.
    As we installed the SQL developer on new desktop, it showed the domain definitions as unknown and count as 1 in Design Tree --> domain node. We copied all the xml files under C:\datamodeler\datamodeler\types folder of Desktop A to Desktop B. It brought all the domain definitions of Design in Desktop A.
    Why does it not keeping this domain definitions as part of Design folders?
    If we copy or save as the design , then domain also cane be saved as part of design. It will be difficult to make a sync of datamodels among multiple desktops.
    How do we establish a shareable/sync data models using SQL data Modeler on such situations?
    Thanks in helping.

  • Excel Workbook with Excel Data Model stored on SharePoint - daily refresh

    I'm not sure if this is exactly the right forum but I'm hoping that someone here can either answer or point me in the right direction.
    I have an Excel Workbook with an Excel Data Model.
    The Excel Data Model uses SQL to contact our data warehouse and pull through data into tables.
    We are storing the Workbook on a SharePoint site and viewing it using Excel Services.
    The data in our data warehouse is updated daily and so I would like to refresh the workbook daily and remove the option to refresh the data in the browser.
    Is this possible with a workbook that has an Excel Data Model (I've seen lots of posts that relate to workbooks with connections to tabular models).
    Thanks
    Paul

    Hi Paul,
    I have answered this issue in this thread that you posted in SQL Server PowerPivot for SharePoint forum, please see:
    http://social.msdn.microsoft.com/Forums/en-US/9627939c-e9f1-48ae-a6ed-0c238d8f2d69/excel-workbook-with-excel-data-model-stored-on-sharepoint-daily-refresh?forum=sqlkjpowerpointforsharepoint
    Furthermore, this issue is more related to PowerPivot for SharePoint. If you have any more questions about PowerPivot for SharePoint, I would sugget you open a new thread in the forum below for better support:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=sqlkjpowerpointforsharepoint
    Thanks for your understanding.
    Regards,
    Elvis Long
    TechNet Community Support

  • Issue while creating Data Model in BI Publisher and logging into xmlpserver

    Hi All,
    We are facing an issue in OBIEE 11.1.1.5.
    If we are logging with Non Admin Id (other than weblogic) and select New Data Model, a blank screen is coming. Where as, if we use Admin Id, we are getting screen as usual for creating data model. There were some blogs mentioning to change Priviledges for  SOAP access, but that approach is also not working.
    Further, we are also not able to open xmlpserver with Non Admin Id.
    Any help or pointers would be great.
    Regards,

    how about pasting the content of your data template here, so that forum members can see what could be the problem.

  • Data Modeler : Modifying the Table Report layout

    Hi ,
    I'm using SQL Data Modeler (DM) 4.0 EA .
    I used the File -> reports option to generate the reports on Table and in the report
    1) I couldn't see the column data type ? (Refer below table ) , Is there any options to bring on the Data Type in the Report ?
    No
    Column Name
    PK
    FK
    M
    Data Type
    DT
    kind
    Domain Name
    Formula
    (Default Value)
    Security
    Abbreviation
    1
    ID1
    P
    Y
    (10)
    LT
      2
    ID2
    F
    Y
    (10)
    LT
    3
    ID3
    Y
    (1)
    LT
    4
    ID4
    Y
    (10)
    LT
    5
    ID5
    F
    (20,4)
    LT
    2) In options to manage the Table report (Reports -> Manage). Currently I can only remove a heading (like Descriptions Notes ,columns,column comments.). Is there is any way to customize the report in such a way that I can remove some columns (mostly the empty ones) from the report and add the column comments along with the column table than a new column comments table.
    Please let me know  ,is there is an option to customize the report .
    Note: I even tried generating the report using the search then report , but it doesn't give a complete report (i was only able to generate a report on column or table name or constraints , not all together.)
    Thanks,
    Srinivasan.K

    Thanks for the immediate reply.
    I checked on the DM again, the report comes good for the one which has the data type . But now all my data type changed to UNKNOWN and lokks like ,due to this my table report is coming without the "Data Type".
    Can you please help me in fixing this unknown data type issue ?
    Table report for the ones with proper Data type:
    Columns
    No
    Column Name
    PK
    FK
    M
    Data Type
    DT
    kind
    Domain Name
    Formula
    (Default Value)
    Security
    Abbreviation
    1
    ID1
    Y
    NUMERIC (10)
    LT
    2
    SCRIPT
    Y
    VARCHAR (1024)
    LT
    3
    UPGRADE_S
    Y
    VARCHAR (10)
    LT
    4
    UPGRADE_D
    Y
    VARCHAR (250)
    LT
    5
    UPGRADING_F
    Y
    VARCHAR (20)
    LT
    6
    TIMESTAMP2
    Y
    Timestamp
    LT

  • Can "trigger" management be addressed in the data modeler?

    Please add an easier way to add/modify triggers.
    I reverse-engineered my model into the data modeler and my triggers all migrated correctly to the model but, for the life of me, had no idea how to view, modify or create triggers.  After extensive research, I found that they can be accessed in the left-hand Browser by drilling some 8 levels to view the triggers for each table - why?  Why can't this functionality be added to properties context menu for the table.  I'm not a big advocate for triggers but if I need to work on one, the current methodology is tedious at best.
    Of course, if there's some other way to do this, please inform...
    Accessing Triggers via the Browser
    Design -> Relational Model -> APEX_DEMO -> Physical Model -> Oracle Database 11g -> Tables -> ACTIVITY_LOG -> Triggers

    Thanks Joop and Phillip...
    While I occasionally use SQL Developer, I currently use PL/SQL Developer (Allround Automations) as my development tool of choice and bringing a 3rd tool as SQL Developer into the mix, makes no sense to me.
    I completely agree that managing a trigger via a development tool is much easier but one occasionally wants to quickly add a trigger either manually or via a template and this is not easy currently.
    While functions, procedures, package, etc. are all important to a data model, the existence of most triggers are completely dependent on a table and are a critical component in any model that uses them.  The ability to access and modify them easily in Data Modeler is important and shouldn't be an afterthought as is perceived here.  If trigger access cannot be added to the Table Properties (as noted in the image below), at the very least, please provide a shortcut methodology to do so.

Maybe you are looking for

  • How to recover by recovery dvd if dvd rw not working

    I have my recovery DVDs. but my DVD drive is not working properly. In windows dvd can be read very hardly. and while booting from dvd to recover, system fails to read dvd. I have made iso images of dvd.  is ther anyway by which i can boot through iso

  • AS2 Sender and receiver adapter.

    Hi All, I have to develop a scenario where i have to send/receive some GS1 messages to/from our trading partner using AS2 adapters. I have gone through some of the links and blogs realted to as2 adapters but still have some doubts. Request you to hel

  • Getting Error in Method

    Hi All, I have created a Method. and I have a structure named as Person which has First Name and LastName. Now i have a method named as public void InitPerson() so when i write IPersonElement personE1 = wdContext.nodePerson().currentPersonElement();

  • R/3-XI-MDM

    Hello, I have a scenario where I have to send my customer data from R/3 machine to MDM. We are using IDOC from R/3 end to read the data and planning to send the data in XML. I was wondering is it possible for MDM to read the XML file, if we place in

  • Calling Procedure in Form Personalization in R12

    Hi, I'm trying to call a procedure in form Personalization (R12). Tried below versions but getting error, could you suggest ? ='begin XXHI_DFF_NULL(''' || $KANBAN_CARDS.KANBAN_CARD_NUMBER || ''' ); end' ===============================================