Disaggreation of one data set based on another data set

Hi All,
We are using Hierarchy based IP implementation using disaggregation option in the input ready query definition.
We have a requirement as follows:
1. Disaggregate version 200 based on Version 100.
So, we have defined an input ready query, which would contain two columns one with the restriction tor the version 200 and one with restriction on version 100. We have hidden the column with restriction on version 100.
Now, in the disaggregation properties of the column with restriction on version 200, we have turned on the disaggreation with reference to the column with restriction on version 100.
When the query executed, it is doing always the equal distribution of the toal entered rather than doing the distribution as per the reference column.
We can do work around using Distribution by reference, but not sure, whether the function can handle hierarchies. Best is to solve by the Input Ready Query disaggregation settings.
Please let us know if you have any idea on how you have solved this issue, or is this a bug? I will openup a message with SAP after today.
Thanks in advance,
Best Regards,
- Shashi

Hi Shashi ,
I have used this disaggregate property available in the query. It is working fine. In my case i am not hiding the reference key nor the dependent characteristics, so it is not giving any problem.
There might be some problem in distribution if your reference data has some particular combinations of characteristics and in the planning layout you are trying to hide some of the characteristics that are present in your refernce data.
Please check.
For more details check this link:
http://help.sap.com/saphelp_nw70/helpdata/en/43/0c033316cd2bc4e10000000a114cbd/frameset.htm
You can also try the planning function Distribution by reference, I am not sure whether it will work for hierarchy or not but you can give it a try.

Similar Messages

  • Oracle SQl query to find date range based on another cloumn value

    Hi Folks,
    I want to extract records for the employees who have consecutive vacation/leave from a table. If an emp has vacation of 3 days (MON-WED), the table contains 3 distinct records for him,
    e.g. My table contains records as shown below.
    EmpName Paycode ApplyDate Amt. of Hrs
    emp1 vacation 5/1/2010 8
    emp1 vacation 5/2/2010 8
    emp1 vacation 5/3/2010 8
    I am trying to get the output like this...
    Emp Name Paycode Leave Start Date Leave End Date TotalHrs
    emp1 vacation 5/1/2010 5/3/2010 24
    Note: If the smae emp has sets of vacation in another month, that should come as a separate record with start date and end date(last date of vacation for that set).
    I have a query which does not return any rows. Any help to repair this query or any better one would be of great help.
    ==================================================================
    WITH vpt AS (
    select personnum as empname, paycodename as paycode, applydate, timeinseconds/3600 as numhours from VP_TOTALS
    where applydate between to_date('05/01/2010','MM/DD/YYYY') AND to_date('12/31/2010','MM/DD/YYYY')
    AND paycodename in ('US-Vacation','US-Bereavement','US-Sick','US-Jury Duty')
    select
    empname,
    paycode,
    min(applydate) as startdate,
    max(applydate) as enddate,
    sum(numhours) as totalhours
    from (
    select
    empname,
    paycode,
    applydate,
    numhours,
    -- number the blocks sequentially
    sum(is_block_start) over (partition by empname, paycode order by applydate) as block_num
    from (
    select
    empname,
    paycode,
    applydate,
    numhours,
    -- Mark the start of each block
    case
    when applydate = prev_applydate + 1 then 0 else 1 end as is_block_start
    from (
    select
    empname,
    paycode,
    applydate,
    numhours,
    lag (applydate) over (partition by empname, paycode order by applydate) prev_applydate
    from vpt
    group by empname, paycode, block_num
    ===================================================================
    Thanks,
    Maha

    Hi Dear,
    Can I do reverse I mean I can get output as your question from your output as below:
    I have this table
    FID      STARTD ATE END DATE
    1 01-MAY-10 03-MAY-10
    1 09-MAY-10 11-MAY-10
    1 03-JUN-10 04-JUN-10
    2 03-JUN-10 04-JUN-10
    2 04-AUG-10 04-AUG-10
    2 06-AUG-10 06-AUG-10
    I want like this.
    FID FDATE
    1 01-MAY-10
    1 02-MAY-10
    1 03-MAY-10
    1 09-MAY-10
    1 10-MAY-10
    1 11-MAY-10
    1 03-JUN-10
    1 04-JUN-10
    2 03-JUN-10
    2 04-JUN-10
    2 04-AUG-10
    2 06-AUG-10
    And:
    How can i get date wise entry from Joining date to relieving date like..
    FID      START DATE END DATE
    1 01-MAY-10 03-MAY-12
    1 09-MAY-10 11-MAY-11
    2 04-AUG-10 04-AUG-11
    I want like this.
    FID FDATE
    1 01-MAY-10
    1 03-MAY-10
    1 04-MAY-10
    1 05-MAY-10
    1 16-MAY-10
    1 17-MAY-10
    1 08-May-10
    1 09-May-10
    1 03-May-12
    Can you please help me.
    Thanks,
    Edited by: 978452 on Dec 24, 2012 12:02 AM

  • Make one field required based on another field

    I am trying to set a form up, so that when a check box is marked, then the corresponding date field is required.  I set the script language to Javascript and entered this script: 
    if 
    (this.rawValue == "1") (PROPOSALDATE.mandatory = "error")
    However, I get an error message stating "syntax error near toekn '!' on line 1, column 20."  There is no ! in this script, so I don't know what it is talking about.  What am I doing wrong?

    Hi,
    The script that executes if the statement is true should be inside curly brackets. So the following in the click event of the checkbox should work:
    if (this.rawValue == "1")
         PROPOSALDATE.mandatory = "error";
    else
         PROPOSALDATE.mandatory = "disabled";
    The above is Javascript.
    Hope that helps,
    Niall
    Assure Dynamics

  • Sort all the Records in Data manager based on Update Date

    How to sort the reocrds in Data Manager based on Date or something ?
    And also I have three records for a same customer in ( for three different company codes ) and when I search for this customer with the Customer number then it is showing three records , but when I search with Update Date then no records are fetched ...what is the reason ?

    If you make a field as type "Time Stamp" in your data model using the MDM Console, make sure that the option Sort Index is set to Normal.  If this is the case, whenever a record is updated in the repository, the date will be updated.  If the sort index is normal, then MDM will allow you to sort the records based on the date and time by which they were updated.  You can do this by finding your time stamp field in the MDM data manager and clicking on it.  If there is an up and down arrow next to the name of your field, it means it can be sorted.  Also, to answer your other question, you can definitely search based on date.  Use the Free-Form Search on the left hand side of the data manager at the bottom of the screen.  Simply select a date, and it will show you all the records updated on that date.

  • Running data providers based on other data provider results in webi

    Hi,
    Thank you all; this is a great place to look for answers whenever you stumble in BO.
    I got a specific requirement for a Webi report. The report should display the associated metrics only when the total surveyed members are greater than 25, if not, N/A.
    This requirement happens to be a new add on for the already existing report; the report was built with multiple providers, in which one of the providers gives the total surveyed members.
    Is there any way that we can control the rest of the data providers based on the first data provider output. I donu2019t want to run the rest of the data providersu2014 as there are too many, and each takes quite a bit of timeu2014 if the surveyed members are less than or equal to 25.
    We are on XI3.1 Sp3
    Thanks in advance.

    Thanks for the quick response!
    Vills u2013 Is it query from the results functionality that you are talking about? I tried this approach, but as I am using the measure in the filter of the 2nd data provider (total members > 25),and the resulting SQL is not getting parsed.
    Waveryu2014 The report filter that I tried to use is not working. Can you please give me some more details how to use it?
    As I would like to leverage the existing report, which perfectly works for the total members> 25 logic, I was asked to find a way to not to run the rest of the data providers to save db resources, provided if the total mbrs participated in the survey from the first data provider <25.
    Is there any way that we can embed some case statement in the other data providers to make them run or throw an error message depending on member count?
    To give some more understanding, I want to provide you the screen shots of the queries, but I am unable to paste those screen shots here .
    Essentially I am looking for is there any way to use one data provideru2019s output as a trigger for the rest of the data providers?

  • Data changed based on current date  in Bex

    Hi Gurus,
       Hope you are all doing good ! I have a scenario in queries in Bex. When the query is executed the current system date must be captured and the data must be divided by the count of the previous months.
       For instance if the query is executed today the data must be divided by 1 ( for  jan)
       if it is executed next month, then the data muset be divided by 2 ( jan + feb ).
       Is there any COUNT variable in Bex ? Any idea how this could be done?
      Points would be assigned for sure.
    Regards,
    Sunitha.R

    Sunitha,
        You should create a variable which is not user entry and user exit as processing type. Based upon the date entered you should write code in CMOD to derive the figure with which you can divide the amount.
    The logic can be something like this:...
    If the user enters     period like 02.2207(feb 2007), then you can pass value as 2 for the variable newly created. This is a simple code which can be written easily if you have ABAP knowledge.
    Try it out.....

  • Unable to display the Content of a data file from within another data file in Oracle webcenter portal.

    We have a Content Presenter taskflow. This task flow is added to a jspx page. The taskflow fetches the content from the contributor data file. The contributor data file is having a WYSIWYG editor. The content of the WYSIWYG editor is being displayed correctly through the task flow.
    We have some links in the WYSIWYG editor. These links again point to some data files. When we click on these links from within the portal, then we are getting a blank page(the url of this blank page is: http://localhost:7101/eWSIBPortal/faces/oracle/webcenter/sitestructure/render.jspx?datasource=UCM%23dDocName%3AWSIB_ARTICLE) and not displaying the content of the data file that we are pointing to from the WYSIWYG editor.
    We want to display the content of these data files(which we have pointed from WYSIWYG editor) in-line within the portal.
    Please help us to resolve this issue and let us know if any information is required from our end.

    Thanks for reply. However, can I use XSQL to dump the formated text to a file? or just can display to client through web browsers?

  • Date Range based on print date

    What would be the formula for a date range that references the most recent 7am-7am period from the print date?

    What would be the formula for a date range that references the most recent 7am-7am period from the print date?
    Assuming the print date is todays date, then this should work
      in DateTime  currentdate -1 +time (07, 00, 00)  to DateTime currentdate +time (07, 00, 00)

  • Universe Internationalize - Date Format based on System Regional Setting.

    Hi,
    We have set of universe for our product. I have created Deski and webi reports with date objects using those universes. I ran those report in the Systems which are Austrialia,Canadian and US Locale Settings. Both Deski & Webi report displays the DATE in US format in all the Boxes eventhough regional settings are configured to Aus & Canada.
    Can you pls help me how to make the universe internationalised. Specifically Date Formats? Currently we are focusing only for English speaking countries.
    Thanks,
    Venkateswaran.P

    Hi,
    Have you configured the locale settings In Infoview under 'Preferences' correctly?
    Have a look at the following settings:
    - Preferred Viewing Locale
    - Make sure you check the box for 'Use my preferred locale to format the data'
    Let us know if this works for you
    Regards
    Rim

  • How to load one filter values based on another filter selection

    Hi,
    I have a Query/Report that contains the following filters
    Product Family
    Product Line
    Product
    all the above InfoObjects are independent, now i need a functionality where in if i select a Product Family then all the Product Line belonging to that Product Family should get loaded in the filter selection, same way when a Product Line is selected the all the Products under that Product Line should get loaded ni Products filter.
    Please let me know how this functionality can be achived.
    Thanks
    Akila. R

    Hi Akila,
    I am assuming you query runs on a cube that loads data from the source system. In that case cube will contain only valid cobminations of Product Family & Product Line.
    In order to make sure that if a cetain Product Family is chosen you want to see only the relevant Product Line as available in the cube do the following:
    Go to Query Designer Filter
    Pick Product Family > Properties> Advanced. Under the Tab Filter Value Selection during Query Execution choose 'Only Values in InfoProvider'
    Do the same setting for Product Line as well.
    Hope this helps.
    Regards,
    Amrita
    Edited by: Amrita Goswami on Jun 23, 2009 7:26 AM

  • Using a Date field to calculate another date equalling + 6 'Working Days'

    I am trying to provide a schedule return date based upon an Issued Date value
    The problem is that I only want the estimated return date value to include working days (6 to be precise), which are Monday to Friday.
    Any assistance in disregarding weekend days from my results would be greatly appreciated

    Try this
    DateTimevar IssueDate:={IssueDate field here};
    DateTimevar Scheduledate;
    Numbervar WeekEnds;
    Scheduledate:=DateAdd('d',6,IssueDate);
    Weekends:= DateDiff('WW',IssueDat,Scheduledate,CrSaturday)+DateDiff('WW',IssueDat,Scheduledate,CrSunday);
    Scheduledate:=Dateadd('d',Weekends,Scheduledate);
    IF DAYOFWEEK( Scheduledate) = CrSaturday THEN
       Scheduledate:= DATEADD('d', 2, Scheduledate);
    IF DAYOFWEEK( Scheduledate) = CrSunday THEN
       Scheduledate:= DATEADD('d', 1, Scheduledate);
    Scheduledate
    Jyothi
    Edited by: Jyothi Yepuri on Sep 3, 2009 6:55 AM
    Edited by: Jyothi Yepuri on Sep 3, 2009 7:07 AM

  • Extracting Movement type wise data(MSEG) based on posting date from 0IC_C03

    Hi Experts,
    I have implemented 0IC_C03 in devlopment client and preparing a Physical Inventory report.
    I want to know if I can directly extract the fugures such as Process Loss, Sales, Sales Return, Transfer In and transfer out from the cube 0IC_C03 so, my question is ...
    Is it possible to extract the movement type wise data as in MSEG from any KF of 0IC_C03 ?? If its possible which particular KF should I use from the cube ??
    Please respond at the earliest.
    Thanks,
    Romil

    Hi,
    You  can extract 0RECTOTSTCK & 0ISSTOTSTCK from 0IC_C03 but you need put corresponding Movment type for each
    you can't put 0TOTALSTCK, it is Non-cumulative key fig,
    even all key fig except Non-Cumulative key Fig like (0TOTALSTCK ,   0VALSTCKQTY  ,  0VALSTCKVAL.....) can be extracted
    Best Regards
    Obaid

  • Is there a way to calculate a date field based on aother date field in sharepoint list?

    In a SharePoint list, I have a 'Start of Use Date' and need to ensure the 'Review Date' is no more than 14 months after the 'Start of Use Date', but can't figure out the formula.  Can you help?

    You can cast the field values in the SPListItem to DateTime objects and call the AddMonths(int) function to see if the two are more than 14 months apart. For instance:
    DateTime startOfUseDate = (DateTime) item["Start of Use Date"];
    DateTime reviewDate = (DateTime) item["Review Date"];
    if (startOfUseDate.AddMonths(14) >= reviewDate)
    // Review Date IS NOT more than 14 months after Start of Use Date
    else
    // Review Date IS more than 14 months after Start of Use Date
    Danny Jessee
    MCPD - SharePoint Developer 2010
    MCTS - SharePoint 2010, Configuring
    dannyjessee.com/blog

  • How change the Date parameter based on server date

    Hi,
    We are using Query browser to connect to Bex Query.In BEx Query we have a date prompt which is mandatory.So by using Query prompt selector the dashboard has been created.But in our scenario the date has to be picked up from current system date/Server date and it has to change automatically when ever the dashboard has been opened.How to achieve this.
    Regards,
    Venkat

    Using the query prompt selector, the date will be listed in the drop down box. Here you can see only the date available in the server. Use the "Insert selected items" option you can pass the current date using =today() function.
    But the pain behind using the query prompt selector on date you have scroll a lot to search for a specific date, on this case i would suggest you to take the calender component to trigger the query. You have the same flexibility to pass the current date in this component.

  • How to use SQL import to set the attribute value based on another?

    Hello all,
    I want to set an attribute of a dimension based on another attribute (if matches). Let's say I have a dimension PRODUCT. And I have defined two user defined attributes MANAGER and ISVISIBLE.
    Now within a PERMIT_READ program I want to set the ISIVISIBLE to true where the MANAGER Value is selected from a table.
    Something like
    <define a cursor c1 to select all the Manager values>
    sql import c1 into -
    :MATCHSKIPERR PRODUCT_MANAGER then <PRODUCT_ISVISIBLE (PRODUCT MANAGER) = true>
    <etc>
    Obviously the above is not correct. But I am stuck as to how this can be done? Can some one on this forum please help me with correct syntax/ approach please?
    Thanks a lot.
    Pxsheth
    This statement assigns true to the isvisible attribute for every gc_dim_bu dimension (selected as part of cursor c1).
    SO FAR SO GOOD.. NOW -
    If I want to change the above so that the attribute value gets assigned based on another attribute for the dimension (say a flag). i.e.
    Set the isvisible to true where attribute flag has a certain value. How do I code this in OLAP DML?

    There are a number of ways to do this. If you want to use an attribute that has been defined within AWM as an attribute of Product then simply using the mapping tool to populate the attribute as part of the normal dimension load procedure.
    Alternatively you could create an attribute at the DML level, and assuming you are not using surrogate keys, you can then define a cursor to read the relational table to populate your attribute. Something like this:
    sql declare MKT_BASKET cursor for -
    select PRODUCT_ID, PROD_MGR , PROD_VISIBLE -
    from PRODUCT_DIM
    if SQLCODE ne 0
    then goto ERROR
    sql open MY_CURSOR
    sql fetch MY-CURSOR loop into :append PRODUCT, :PRODUCT_MANAGER, :PRODUCT_ISVISIBLE
    sql close MY_CURSOR
    sql cleanup
    update
    commit
    If you want to create a complex PERMIT function using OLAP DML then personally I would create a formula and assign a program of type BOOLEAN and have the program return a YES or NO depending on the outcome of your test. Then your PERMIT_READ still references a dimension object. For example:
    DEFINE PROD.ISVISIBLE BOOLEAN FORMULA <PRODUCT>
    EQ PRG.ISVISIBLE(PRODUCT)
    DEFINE PRG.ISVISBLE PROGRAM BOOLEAN
    The program will then return Yes or No depending on the processing you need to do.
    Hope this helps
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

Maybe you are looking for