Copy data using the MDX query.

Hi all

I use the Version 11.1.2 Essbse now I want to copy my data from a component of other component based on their UDA and erase this component particularly in ASO Cube using the MDX query.

For example:

I have my data in 'Part No' now I want to copy the data to based on their UDA Component1.


Thank you

Micka

you will need to use a custom or "procedural" calculation You can find information about it at http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_excalc_as.html

Tags: Business Intelligence

Similar Questions

  • How to get the reconciliation AD event data using the SQL query.

    Hi all
    I was trying to get all the recon data to target AD Recon of IOM db, but it seems that at the OIM 11 g we have recon not given in the tables: UCR, CRE, etc.. Use tables "RECON_"... ', my question is all no bady has example query to extract data from recon tables?
    The best
    MP

    It should be a matter of linking your reconciliation table of user AD (early RA_) with the RECON_EVENTS of RE_KEY table.

    In my case, I have user OID reconciliation (so my RA_ table will be different to yours) and can use something like:

    SELECT RECON_EVENTS. RE_STATUS, RECON_EVENTS RA_OIDUSER5.*, RA_OIDUSER5 WHERE RECON_EVENTS. RE_KEY = RA_OIDUSER5. RE_KEY;

    Of course, then depends on what information you want to filter and recover.

  • Copy data between the custom dimension members or scenario

    Dear Experts,

    I'm back with my silly question.
    Is there anyone know how to copy all the data (not only entity currency) between members in the custom dimension? Our HFM application has a different type of data because the type declaration (legal and audit). Whenever we arrived with our legal data, we copy our legal consolidated data for verification. We tried to create a formula (using hs.exp) to move data from legal to check, but apparently, this formula should be write inside Sub calculate (). Is not supposed, we do not want to run the copy data every time that the user click on calculate.

    We also perform copy data between the scenario, as actual to Budget. This activity also needs all the data consolidated and final.

    So the condition for the copy of data are:
    -data must be consolidated
    -Copy all the data, including the adjustment

    Is there a formula or a way to copy the data that can be triggered individually (click 1 rules that run only copy data) by the user?

    Thank you very much for your kind response,
    -Anna

    Hi Anna,.
    As you say, you cannot trigger different parts of rules to run in HFM. Instead, you use a condition. In your case this condition might be guided by the management of the process. You can use a combination of GetSubmissionPhase, review status , and ReviewStatusUsingPhaseID functions that returns the current process management level and presentation details: phase. To me, it seems that as soon as you have finished legal, you complete a part of your process cycle and enter another stage of verification. Here are the parts of your publishing process, if you have defined a process in HFM management or not, which means that you should consider using it.

    -Kostas

  • Receiving data using the device RFCOMM Protocol activate bluetooth

    Hi all

    I want to apply that receive the data of bluetooth device using the RFCOMM Protocol.

    I'm pasting some of my code

    Server StreamConnectionNotifier = null, Server1 = null, server2 = null;

    Hi all

    Can some body having any idea or sample code to receive data using the for Bluetooth RFCOMM Protocol. I am able to find a device to activate bluetooth and also connect with it.

    And ther eis a problem plus I only magnified device does not form some sort of link (link Url SPP, OPP Url link, etc.) for bluetooth.

    But I can verify that this device is correct because I am able to receive data from this device to my computer by checking the connection port and to open this port.

  • why I'm unable to copy data to the USB in windows 7

    why I'm unable to copy data to the USB in windows 7

    Hello

    You don't say how you try to do.

    You can right click on the data you want to copy to the USB > hover the mouse on send in the list > in the Sub Menu that appears choose the USB by clicking left on it and the data must be copied to it.

    It is also to select the data you want to copy > press Ctrl + C > click in pen drive > press Ctrl + V

    Another method is to drag and drop the data from one drive to another.

    See you soon.

  • Issue while loading data using the file Rules Essbase

    Hi all

    I am facing problem while loading data using the Rules file. In the rules file, I rejected several members in two areas (two dimensions). Now if I load the data using the rules file I'm getting errors for all members in the dataload.err file. If I reject mutiple members of a single field, the data load without settling errors in the dataload.err file.

    I want to know how rmany members of several fields of ejection for loading data using the file Rules Essbase? Is it possible?

    Okay, okay... I think that you must assign Global Select / reject Boolean in the parameters of loading data as 'Or':

  • How to select only the part by using the sql query

    Hello

    I have the task to retrieve only the integral of the input text by using the sql query.

    The entry is as follows

    Entry for the price setting

    $12.5 (FYI without space)

    $ 12.5 (FYI single space)

    $ 12.5 (double space FYI)

    $12.5 (FYI multiple space)

    $12.5 (FYI multiple space)

    Output expected of 12.5

    The price is the type varchar2 column in the store_price table.

    Please let me know how to achieve this.

    Thanks in advance.

    If this is always the case that you get a $ followed by a number of places, you can use something like:

    Select to_number (ltrim ('$ 12.5',' $')) DOUBLE

    or

    SELECT ltrim ('$ 12.5',' $') OF double

    but take care of your nls_numeric_character settings if they are defined so that, for example, a comma is the decimal separator, you will have a problem.

    HTH

  • Avoid using the same query...

    How can I avoid to use the same query again and again using a single query, such as

    SELECT
    a,
    b * (SELECT COUNT (C1) FROM T2);
    c * (SELECT COUNT (C1) FROM T2);
    d * (SELECT COUNT (C1) FROM T2)
    Of
    T1;

    Fanny says:
    How can I avoid to use the same query again and again using a single query, such as

    SELECT
    a,
    b * (SELECT COUNT (C1) FROM T2);
    c * (SELECT COUNT (C1) FROM T2);
    d * (SELECT COUNT (C1) FROM T2)
    Of
    T1;

    A few cross join?

    select a, b*cnt, c*cnt, d*cnt
      from t1, (select count(c1) cnt from t2)
    
  • How can I integrate my tree using the tree query in combobox

    Hi all

    I have a request of tree and you want to use the same query tree to put a tree inside a ComboBox as combobox category in this link
    http://forums.Oracle.com/forums/search! default.jspa

    Can someone help me to do it... I also use my fine navigation tree.

    With respect,
    Sunil Bhatia

    Hello

    LEVEL is not a real column - it's a nickname, so it shouldn't be on your table, because it generates the SQL.

    Your statement could be something like:

    SELECT LPAD(' ', 2 * (LEVEL-1), '.') || "NAME" d, "PAGE_NO" r
    FROM APEX_PAGES
    WHERE PAGE_NO NOT IN (SELECT "PAGE_NO" FROM "#OWNER#"."APEX_USER_PAGES" WHERE "APP_USER" = :APP_USER)
    START WITH PAGE_NO = 1
    CONNECT BY PRIOR PAGE_NO = PARENT_PAGE_NO
    

    I don't know what would be your starting page number - it would be to the top of the tree - so I just put 1 in this example.

    Here is a page that I put in place using my example of EMP table, just to show what would be the result: [http://apex.oracle.com/pls/otn/f?p=35917:22]

    Andy

  • Problem with the fusion of data using the Avery label template

    I use indesign for a mailing of basis for my Christmas card labels. Each year, it worked perfectly...

    This year, for some reason any, when making a data merge (and asking an overview with multiple records) in an blank document , it works fine.

    As soon as I try in the model of the preview disappears and it shows just the first record.

    I tried and then export the model as image and placed just behind and even on its own layer... In the hope to use only the model as a visual guide... but the preview does not work either.

    Basically, I can't get anything in the document to make it work. But then I have no assurance as to the separation so he can hit the labels/page 30 on point.

    Has anyone else had these issues?

    When you perform multiple records per page preview is bug. Either don't use the preview, or cancel immediately after, then perform the merge.

    If you have already used a snippet in your template, it is no longer needed and should be replaced. You can copy your placeholders in a new template file. I'm not familiar with Avery templates, but I suspect that they are not intended to be used with a multiple records by merging the page. Several mergers Records exactly require a set of placeholders in the upper left corner, and the other instances will be duplicated according to the margin and spacing parameters that specify you in the merge options. Thing that guides guides on your page is likely to cause a problem.

  • generations of months using the sql query

    Hello

    Based on the input of date parameter, I need display every month in the current year and last year.

    For example, suppose that my setting date is December 5, 14 ', I need the output below.

    JANUARY

    FEBRUARY

    MARCH

    APRIL

    MAY

    JUNE

    JULY

    AUGUST

    SEPTEMBER

    OCTOBER

    NOVEMBER

    DECEMBER

    JANUARY

    FEBRUARY

    MARCH

    APRIL

    PEUT

    Until the month of May and the month last year. I came with the request. Please find the following query.

    Select to_char (add_months (trunc(sysdate,'year'), level-1), 'MONTH') mth

    of the double

    connect by level < = 12

    Union of all the

    Select to_char (to_date (ddate, 'MM'), 'MONTH') month

    (select 1 + rownum - 1 ddate

    from user_objects

    where (1 + rownum - 1) < = to_number (to_char (to_date ('12-05-14', ' dd-mm-yy'), 'mm')));

    But I don't want to use the data user_objects dictionary. Can you please guide how to achieve this output, or can u give me some other request too if possible.

    Thank you

    Siva

    Try the below

    SELECT TO_CHAR (ADD_MONTHS (ADD_MONTHS (TRUNC (TO_DATE(:date1,'DD-MM-YY'), 'MM'),

    ((- MONTHS_BETWEEN (trunc (to_date(:date1,'DD-mm-YY'), 'MM'), trunc (to_date(:date1,'DD-mm-YY'), 'YY')) + 12)).

    (LEVEL-1))

    , 'MONTHS '.

    'NLS_DATE_LANGUAGE = ENGLISH') FROM dual months_between

    CONNECT BY LEVEL<=>

  • Needing a maximum date using the group value of

    Create table student (dept number(10), dep_name varchar2(10),join_date date,years_attended number(10),end_date date);
     
    insert into student values (1,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (1,'I',to_date('1/1/1900','MM/DD/YYYY'),4,to_date('8/26/1932','MM/DD/YYYY'));
    insert into student values (1,'D',to_date('1/1/1920','MM/DD/YYYY'),5,to_date('8/26/1994','MM/DD/YYYY'));
    insert into student values (1,'C',to_date('1/1/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
    insert into student values (2,'I',to_date('7/1/1900','MM/DD/YYYY'),3,to_date('8/26/1932','MM/DD/YYYY'));
    insert into student values (2,'I',to_date('8/16/1916','MM/DD/YYYY'),9,to_date('8/26/1923','MM/DD/YYYY'));
    insert into student values (2,'D',to_date('8/16/1916','MM/DD/YYYY'),10,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (3,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (3,'D',to_date('7/28/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
    insert into student values (3,'I',to_date('7/28/1920','MM/DD/YYYY'),8,to_date('8/26/1965','MM/DD/YYYY'));
    insert into student values (4,'I',to_date('12/31/1924','MM/DD/YYYY'),2,to_date('8/26/1998','MM/DD/YYYY'));
    insert into student values (4,'I',to_date('6/10/1929','MM/DD/YYYY'),1,to_date('8/26/1943','MM/DD/YYYY'));
    insert into student values (4,'C',to_date('1/17/1927','MM/DD/YYYY'),4,to_date('8/26/1955','MM/DD/YYYY'));
    insert into student values (4,'C',to_date('6/10/1929','MM/DD/YYYY'),30,to_date('8/26/1967','MM/DD/YYYY'));
    insert into student values (5,'D',to_date('2/10/1931','MM/DD/YYYY'),2,to_date('8/26/1943','MM/DD/YYYY'));
    insert into student values (5,'I',to_date('2/10/1931','MM/DD/YYYY'),24,to_date('8/26/1962','MM/DD/YYYY'));
    commit;
    I need a join_date of date value maximum for each Department. If max (join_date) has two records for each dept max (end_date) are to be considered. I used a select query
    select * from student where join_date in (select 
    max(join_date) from student group by dept);
    gives me the following result
    1     D     1/1/1920     5     8/26/1994
    1     C     1/1/1920     6     8/26/1945
    2     I     8/16/1916     9     8/26/1923
    2     D     8/16/1916     10     8/26/1987
    3     D     7/28/1920     6     8/26/1945
    3     I     7/28/1920     8     8/26/1965
    4     I     6/10/1929     1     8/26/1943
    4     C     6/10/1929     30     8/26/1967
    5     D     2/10/1931     2     8/26/1943
    5     I     2/10/1931     24     8/26/1962
    But I'm looking for the result that gives me only a maximum value for each column dept. First of all, it should look like to a maximum value of join_date, so two records even join_date max (end_date) are to be considered. The result should be sumthing like this
    1     D     1/1/1920     5     8/26/1994
    2     D     8/16/1916     10     8/26/1987
    3     I     7/28/1920     8     8/26/1965
    4     C     6/10/1929     30     8/26/1967
    5     I     2/10/1931     24     8/26/1962
    Can you please tell me how to rewrite the select query for results above.

    Published by: user11872870 on August 2, 2011 17:29

    Published by: user11872870 on August 2, 2011 17:36

    Hello

    This is called a Query Top - N , and this is a way to do it:

    WITH     got_r_num     AS
    (
         SELECT     student.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  dept
                                   ORDER BY          join_date     DESC
                             ,                end_date     DESC
                           )      AS r_num
         FROM    student
    )
    SELECT       dept, dep_name, join_date, years_attended, end_date
    FROM       got_r_num
    WHERE       r_num     = 1
    ORDER BY  dept
    ;
    

    Another way is similar to what you posted:

    SELECT    *
    FROM       student
    WHERE        (dept, join_date, end_date)
                   IN (
                        SELECT    dept
                   ,       MAX (join_date)
                   ,       MAX (end_date) KEEP (DENSE_RANK LAST ORDER BY join_date)
                   FROM      student
                   GROUP BY     dept
                   );
    

    I suspect that the first way (using ROW_NUMBER) will be faster.
    In addition, the ROW_NUMBER approach is guaranteed to return only 1 line by Department using the approach of GROUP BY, if there is a link on join_date and end_date then it will return all the contenders in this Department. using ROW_NUMBER, it is easy to add expressions to tie-break as much as you want, and, if there is still a tie, it will be arbirarily pick, one lines involved in the tie as #1.

    Thanks for posting the CREATE TABLE and INSERT! It is very useful.

    Published by: Frank Kulash, August 2, 2011 21:00
    Added GROUP BY alternative

  • Export of data using the interface of the Apex

    I want to export at the same time and in a single file
    -database objects (tables, constraints, etc.)
    -possibly databases and data
    which are used by a given Apex application.

    QUESTION: Is it possible to do it through the interface of the Apex?

    I know how to do this with SQL-Developer.

    I also know how I can export through the Apex interface
    an object selected (for example, a table).
    But what of all the exporters together?

    Thank you very much
    Marios

    Hello
    Try this.

    Export all the objects schema DDL in sql single file. (tables, constraints, etc.) at the same time
    Workspace opened-> Home > utilities > Generate DDL-> createscript->-> schema name choose fron-> option selection list choose Add file save as Script-> check-all > click Generate ddl-> name of script type-> click createscript-> stored in your scripts sql inside the WORKSHOP of SQL TAB-> click on export button right under task link-> click on checkbox for the corresponding file name and click on-> to export-> export Scripts right side have your file-> click Export all.

    Combining the Application + objects ddl + data
    Open your application-> whose home > Application Builder > 123 Application > supporting objects >-> Create from scratch-> name-> editor of Setup Scripts will open-> copy and paste the sql commands that you exported using steps above

    data
    If you need to export data from sample then you can paste these commands insert into tablenamein the same sql editor in step 2 and save it

    Note: in your home > Application Builder > 123 Application > objects supporting > status-> include the object definitions to support the export of export = yes

    Export your application and the user can import using single sql file.

    Thank you
    Mark Wyatt

  • Using the MDX formula in the monetary Dimension

    I wrote the MDX formula for a dynamic member in the currency dimension. I want only that Member to calculate a value if the scenario is REAL. In other words, I want that the Member of the currency to return $MISSING if the user seeks to Calc this dynamic rate for a member forcast or budget.

    To do this, I used MDX with a qualifyier like this:

    When is ([SCENARIO]. CurrentMember, [ACTUAL])

    It works very well and when the scenario is real, it works perfectly. And once the BUDGET, the MP scenario returns $MISSING. Awesome!

    But when the scenario is planned, I get a result. I have concluded that it is because the forecast members also formulas MDX associated with them that populate certain periods with actuals. This surprised me, because I wasn't expecting values sitting in a forecasting scenario would be marked in a way that could identify as being the actual expenditure. But the MDX is see it this way and, therefore, he is fighting through the qualification 'When' statement above and calculate a monetary value for the actual periods sitting in the forecasting scenario.

    Anyone have any ideas on how to change the MDX formula on the Member of the currency so that it will ignore the ACTUAL data, sitting in no REAL scenarios - and give me a #MISSING? I wouldn't not rather the formula MDX sitting on members of scenario.

    I'd be surprised if it actually happens, it's what you described, but I guess you never know.
    Try to increase the resolution of your member order then it Calc after other formulas were evaluated. See what's happening.

  • Try to generate minutes date using the minimum and maximum date

    Hello

    Generate data to date in minutes using the min_time and max_time of the table or query specified, below
    With time_data as
    (SELECT 1 sr, TO_DATE('5/5/2009 7:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 9:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL
     UNION ALL
     SELECT 2 sr, TO_DATE('5/5/2009 10:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 12:00:00 PM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL)
    SELECT * FROM time_data;
    
    SR     MIN_TIME     MAX_TIME
    1     5/5/2009 7:00:00 AM     5/5/2009 9:00:00 AM
    2     5/5/2009 10:00:00 AM     5/5/2009 12:00:00 PM
    The output I am looking for is,
    5/5/2009 7:00
    5/5/2009 7:01
    5/5/2009 7:02
    .
    .
    .
    5/5/2009 9:00
    5/5/2009 10:00
    5/5/2009 10:01
    5/5/2009 10:02
    .
    .
    .
    5/5/2009 12:00
    I tried this query, but it seems not to work,
    With time_data as
    (SELECT 1 sr, TO_DATE('5/5/2009 7:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 9:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL
     UNION ALL
     SELECT 2 sr, TO_DATE('5/5/2009 10:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 12:00:00 PM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL)
    SELECT TRUNC(TRUNC(min_time)+level/1440,'MI') udates FROM time_data
    connect by TRUNC(TRUNC(min_time)+level/1440,'MI')  <= TRUNC(max_time, 'MI');
    Ideas please...

    With 10g
    Salim cordially.

    WITH time_data AS
         (SELECT 1 sr,
                 TO_DATE ('5/5/2009 7:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) min_time,
                 TO_DATE ('5/5/2009 9:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) max_time
            FROM DUAL
          UNION ALL
          SELECT 2 sr,
                 TO_DATE ('5/5/2009 10:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) min_time,
                 TO_DATE ('5/5/2009 12:00:00 PM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) max_time
            FROM DUAL)
    SELECT min_time dt
      FROM time_data
      model partition by (sr)
      dimension by (1 rn)
      measures( max_time,min_time,(max_time-min_time)*24*60+1 dif)
      (min_time[for rn from 1 to dif[1] increment 1]=min_time[1]+ numtodsinterval(cv(rn)-1,'minute'));
    

Maybe you are looking for

  • Full sync Ipod with your music library

    How can I get my new iPod to sync with ALL the songs in my library. It is only synchronization with 96 about 1,000 songs.

  • I forgot the password for PRS-650

    I seem to have forgotten the password for my PRS-650 4-digit. The reset switch does not work to reset the locking of the device. Any help would be greatly appreciated.

  • Z50-75: gradient colors, color banding, dark / dim display (display faulty?)

    I'm having a horrible gradient on my new Z50-75 problem. Everything else seems good, but the quality of the display is terrifying. I'm afraid that this is not an unprecedented case. Is it possible if this Lenovo would sell such a display in 2014? I l

  • Is is possible to access channels from a database in labview with NI USB 8473 s

    Hello I would like to know if it is possible to access a database BOX, which is downloaded through MAX, in labview. Specifically, I downloaded my CAN of database to the MAX and I want access to each specific channel in labview. IE according to the ph

  • map update streets &amp; trips 2013

    I installed the version trial of Microsoft Streets & trips 2013 and wonder why the cards are not updated? I live in Edmonton, the Canada and noted that the "ring road" learned by Hyway # 216, or called "Anthony Henday" does not appear in the North se