Unequal records Reverse Pivot?

Hi,
I have to merge several records into one.
For example in source i have two cols one with ID in COL1 and text with COL2:-
COL1     COL2
123        ABC
123        DEF
123        GHI
567        LMN
324        PWS
324        SWX
890        XZY
890        SDD
890        MNO
Output
123     ABCDEFGHI
567     LMN
324     PWSSWX
890     XZYSDDMNO
I tried reverse pivot but the variable COL1 value could not be captured.
Appreciate your suggestions.
Arun

Suneer,
Thanks Suneer.
I did as you suggested and wrote a custom function like this:
IF  ($PRE_COL1 = $CURR_COL1)
begin
   $COL2 = ' ';     
    $COL2  = $COL2  || $COL2 ;
end     
else
IF  ($PRE_COL1 <> $CURR_COL1)
begin
     $PRE_COL1 = $CURR_COL1;     
     $COL2  = $COL2 ;
end
return 0;
Here PRE_COL1 = Previous_row_value()
CURR_COL1 = COL1 value
There is no error in this, but i am not getting the desired output. Could you help me with the custom function script?
Thanks and Regards,
Arun

Similar Messages

  • Split-Reverse Pivot

    Hi All
    I have one question.
    I have source file in XML format which contains data :
                        <Industry_Sector>Z;A;D;F;G</Industry_Sector>
    my need is to upload data as         Industry Sectors
                                                                Z
                                                                A
                                                                D
                                                                F
                                                                G
    I need to map it to the field Industry Sectors in MDM.
    I followed steps :- 1) Split into multiple fields with ; as delimeter on the source side of import manager.
                              2) Selected all split fields and did reverse pivtoing.
    When i tried with XML file its hows error "Unable to Create Reverse Pivot"
    while when i tried with access i was able to do.
    What may the error? or there is any other improve process that i can follow?
    Thanks
    Himanshu Nijhawan

    Hi Himanshu,
    As far as i know XML is an updateable data source,so it should allow you to modify the data source.
    Pivoting and Reverse pivoting are the options in MDM that need to work with an Updateable data source only.
    Please check the READ ONLY option .This option will be checked by default for an XML source.It should be unchecked for updating the XML source file.
    You can refer the below links to understand better how Pivoting and Reverse pivoting works in MDM:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a9cee4-9cd1-2a10-62b6-ea2acb06a5a3
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a9cee4-9cd1-2a10-62b6-ea2acb06a5a3
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Restrict records in Pivot View

    Hello
    Is it possible to restrict # of records to be displayed in Pivot view.
    Thanks in Advance

    Hi,
    Not without applying filters directly to the underlying report.
    Alternatively use your pivot to summarise the data at a higher level and create a drill down into a seperate report. If you setup the more detailed report in a table view you can limit the number of rows shown to the user (the setting that defines how many rows are displayed before having to hit the button to show all report rows)
    Thanks
    Oli @ Innoveer

  • How do I do a reverse pivot in 2010???

    The link below shows how to convert a summary (pivot) table into a normalized data table using Excel 2003 (and maybe 2007). 
    http://spreadsheetpage.com/index.php/tip/creating_a_database_table_from_a_summary_table/
    And here is a video  
    https://www.youtube.com/watch?v=N3wWQjRWkJc
     I have been unable to figure out how to do this in Excel 2010.  Please advise. Thanks.!!!!!
    SOS!!!!!

    Here is the video!  and it works for 2010.  It shows you how to put the pivot wizard that you need on the ribbon.
    https://www.youtube.com/watch?v=pUXJLzqlEPk
    Excel Pivot Tables: How to flatten a cross tab table
    Note:  the above instructions for 2007 and 2003 work as well BUT you must let go of the "alt" & "d" when you press "P"!

  • How to create a record link in pivot table?

    Hi,
    I have records in pivot table.
    I want to have ActionLink on the record, ex., i have lead record clicking on first name or last name or lead id it should take to me to the detail lead page(from pivot table).
    Regards,
    -Venkat.

    To achieve this, use the following:
    In column properties, choose data format tab.
    Override the default data format, Treat Text as Custom Text Format.
    Paste the following into the format box:
    @[html]&lt;a href="/OnDemand/user/LeadsDetailPage?OMTGT=LeadDetailForm&LeadDetailForm.Id="@ target="_parent"&gt;"Lead Details"&lt;a/&gt;
    Good Luck.
    Edited by: Thom L on Apr 17, 2009 10:16 AM

  • Can any one tell how to create pivot table

    Hi ,
    Am trying to create a pivot tabel in the MDM Import Manager. Iam able to see the preview of the pivot table which i want to create. But when i try to click "OK" button, an error message getting displayed like...
    "The new table cannot be created because the data source is not updatable.You may need the data source to an updatable format such as Microsoft Access before proceeding".
    Due to the above error am not able to create pivot table, plz let me know if any one know how to solve this problem
    Thanks & regards
    Praveen k

    Hi Praveen ,
       The solution to your problem is -
    The data source must be updateable in order for MDM to
    create the new pivot or reverse pivot table. However, you can still
    perform the steps leading up to table creation – including the preview –
    even on a data source that is not updateable, so that you can explore
    pivoting or reverse pivoting as a transformation option. If you then
    decide you want to actually create the new table, convert the data
    source into a format that is updateable (such as Microsoft Access) and
    perform the pivot or reverse pivot on the new data source.
    To create a pivot table, you must identify the source fields that
    participate in the pivot, which ones contain metadata and which ones
    contain data, which ones must be combined, the one-to-one
    correspondence between metadata and data fields and/or field
    combinations, and the key field or fields.
    To create a pivot table:
    1. In the drop-down list of source tables, make sure the table you want to
    pivot is the current source table.
    2. In the Source Hierarchy tree, select all the field nodes corresponding to
    both the metadata fields and the data fields by which you want to pivot.
    3. Right-click on one of the nodes and choose Create Pivot Table from the
    context menu, or choose Source > Create Pivot Table from the main
    menu
    4. MDM opens the Create Pivot Table dialog
    5. In the Key Fields dual-list drop-down control, move one or more fields
    from the Available Fields list to the Selected Fields list to identify the
    key fields on which to perform the pivot
    6. In the dual-list control of fields, drag-and-drop the data fields from the
    Field Values Become Field Names list to the Field Values Become
    Field Values list
    7. If necessary, select two or more fields in either list that must be
    combined into a field combination, and click on the Combine button, or
    right-click on one of the fields and choose Combine from the context
    menu
    8. If necessary, drag-and-drop fields or field combinations within each list
    to create the one-to-one correspondence between metadata fields and
    data fields.
    9. Click on the Preview button to display a preview of the first ten records
    of the pivot table
    10. When you have verified that the pivot operation you have defined will
    have the desired effect, click OK to close the Create Pivot Table dialog.
    11. The MDM Import Manager creates a new table named “table <Pivot>”
    in the data source (where “table” is the name of the original source
    table).
    12. In the drop-down list of source tables, select the newly created pivot
    table on which to perform subsequent import processing.
    Hope that helps ...
    Regards
    Deepak Singh

  • Delta load and PSA Reversal Indicator

    Background:
    After delta loading BW from R/3 Billing I noticed there were more records in the PSA than R/3 billing items. I found that some records had 3 duplicate records. The first was the orginal document from R/3. The second was the same with negative key figures and a reversal indicator. The third is the same record as the first. R/3 has only one record for these three.
    Question:
    1. Why was this record reversed in BW when there is no reversal in R/3?
    2. Will the first occurance of this record post to the  ODS load with the unique records option on?
    Thanks for any quick answers!
    New BW Analyst - Alan

    Hi dear and welcome on board !
    What you are seeing in PSA is the normal behaviour of Logistic Cockpit datasources...
    In this way, thanks to BW, you can analyze all the history for every single billing item (that, clearly, in R/3 will continue to have only one record in VBRP, with all latest and updated info).
    In other words R/3 reversal overwrited the unique record in VBRP, while BW stores this change !
    About your second question, you don't have to flag in ODS the "unique records" option, since, clearly, you will receive a lot of records for the same key !!!
    Hope now is clearer...
    Bye,
    Roberto
    ...and please don't forget to reward the answers...it's THE way to say thanks here !!!

  • Top 10 Values in Pivot Graph, but not in Report level..

    Hi Frnds,
    We have an urgent requirement in OBIEE 11.1.1.6.6
    We have one Count measure column and Supplier column in my report. And now my client wants to show all the records in Table level. But, they want to show only top 10 records in pivot graph.
    If we can apply calculations like TopN, Rank, they will impact to Table view also. But, we dont want any conditions to table view.
    Please guide us how to handle this..
    Regards,
    Raghu

    Create one more measure column using topn or rank function and use it only for pivot graph, you can exclude this column in table view.

  • Limit records in business object

    Hi,
    I'm using oracle primavera Java API. How do I limit the records from the busness object.
    In oracle I used rownum for limit.
    Please let me know How to use oracle native query like count(),rownum etc.. in primavera API.
    Thanks
    Govindan P

    What you need to do is create a RANK function on the created date and then filter this by 5. You can see more information on this at Re: Limit number of records in pivot table

  • Limit records in report to last 5 records

    hi,
    i've created a simple report for a custom object, and want to limit the visible records ONLY to the last 5 records in the table.
    how can i do that?
    thanks,
    yael.

    What you need to do is create a RANK function on the created date and then filter this by 5. You can see more information on this at Re: Limit number of records in pivot table

  • Mail A record Snow Leopard Server

    DNS lookup is reporting that I have No A record for mail.  This is a new server setup on Snow Leopard Server 10.6.8 below is a screen shot from DNS Lookup:
    However if I use dig -t A hkmurray.net from terminal I think things look correct, but please correct me if I'm wrong.
    RESULTS:
    hkmurray:~ butch$ dig -t A hkmurray.net
    ; <<>> DiG 9.6-ESV-R4-P3 <<>> -t A hkmurray.net
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44517
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
    ;; QUESTION SECTION:
    ;hkmurray.net.                              IN          A
    ;; ANSWER SECTION:
    hkmurray.net.                    10800          IN          A          68.169.178.128
    ;; AUTHORITY SECTION:
    hkmurray.net.                    10800          IN          NS          NS1.hkmurray.net.
    hkmurray.net.                    10800          IN          NS          NS2.hkmurray.net.
    ;; ADDITIONAL SECTION:
    NS1.hkmurray.net.          10800          IN          A          68.169.178.128
    NS2.hkmurray.net.          10800          IN          A          68.169.178.128
    ;; Query time: 1 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon May 27 09:27:52 2013
    ;; MSG SIZE  rcvd: 114
    hkmurray:~ butch$
    I am also attaching a screen shot of my DNS setup in Server Admin and any advice on how to correct if not correctly setup would be appreciated. (Oh, it appears I have nameservers set correctly for they will resolve).  How to configure mail in Server Admin Mail would also be appreciated, for some reason I always have trouble with mail setup.
    Thanks in advance for giving up your time to help others.

    Get the name of the mail server...
    $ dig MX +short HKMURRAY.NET
    10 mail.HKMURRAY.NET.
    $
    Ok.  Now translate the MX record to the IP address...
    $ dig +short mail.HKMURRAY.NET
    hkmmurray.NET.
    $
    Whoops.  That's not an A record.   (If it were an A record, I'd get an IP address there.)
    It's (also) not typical to have a domain as your mail server A record, either.
    Ignoring that error and checking further — various mail servers won't check further, as the RFC requires an A record here — and on to the next translation:
    $ dig +short HKMURRAY.NET
    68.169.178.128
    $
    Ok.  That's the public IP.
    Checking further — the following won't return the expected values, as it's already known that this mail server is not using an A record — the reverse translation is (also) incorrect:
    $ dig +short -x 68.169.178.128
    host-68-169-178-128.EPSOLT1.epbfi.com.
    $
    As part of establishing your mail server DNS, your ISP needs to add a PTR record (reverse DNS) for your IP address.  Probably to mail.hkmurray.net, if that's what you're using for your mail server.
    In conclusion, you don't have an A record.
    There's no point in having two name servers on the same host address, either. 
    Make sure your DNS server doesn't allow general access for translations, too.  If you do, you'll end up as part of a DNS-based attack; I've seen that happen with DNS servers, and the load on the servers and the Internet connection becomes... large.   Just serve your own records, with no recursion, etc.  (It can often be easiest to move the public DNS translations out to your DNS ISP and their DNS servers, too.  They're already set up to deal with reflection and magnification and other ugliness.)

  • Source file structure when importing a qualified table

    Hello MDM:ers
    I need to import a qualified table into the following repository
    (it is simplified to illustrate the problem):
    Main table: Products
    Fields: ID (int), Name (Text), Part number (Qualified)
    Qualified Table: Part Numbers
    Fields: Manufacturer (Lookup), Part Number (Text)
    Lookup table: Manufacturers
    Fields: Name (Text)
    The source file is a very large text file that has the following structure:
    Part ID          Name     Part no. Manuf 1     Part no. Manuf2
    123          Nut     ABC               XYZ
    456          Bolt     DEF               QWV
    The result I’m looking for Is to map a file structured a above so that two main table records are created (Nut and Bolt) which both have two qualified table records for each manufacturer. I have not been able to create such a map. I have tried to partitioning and combining fields without success.
    I have no problem creating the map if I manually restructure the file to look like:
    Part ID          Name     Manufacturer           Part Number
    123          Nut     Manufacturer 1          ABC
    123          Nut     Manufacturer 2          XYZ
    456          Bolt     Manufacturer 1          DEF
    456          Bolt     Manufacturer 2          QWV
    It where a way to import the file directly in MDM without restructuring it?

    Hi Alexander,
    MDIS will not work fine if you have multiple tables as the mapping is saved only for 1 table. If you have multiple tables then after performing the process of Pivoting/Reverse pivoting, you will have to use joins.
    Join the other tables as Lookup in the Main Table
    Save all your configuration in a map. And then configure the map in the port.
    It should then work with the MDIS also.
    hope it helps.
    Thanks and Regards
    Niitn Jain

  • Time Series Data Mining

    All,
    I'd like to know how to model a time series table to submit it to Oracle Data Mining. I've already tried a reverse pivot, but is there something different?
    Regards,
    Paulo de Tarso Costa de Sousa

    If you are trying to do something like create a demand forecasting model like ARIMA, ODM does not have explicit support for this type of modeling. Data mining is usually more about creating a "prediction" rather than a forecast. You may want to look at Oracle's OLAP capabilities for this.
    If you are trying to include variables that contain the element of "time", such as "blood pressure before" and "blood pressure after", you can include these a variables (attributes) in the model. ODM has no real limit on the number of variables it can include in the model, so you don't have to worry about creating too many of them (usually).
    You may want to "clump" the data so as to create a set of variables at certain check points in time like the "before" and "after" approach above. Rather than entering for example the measurement off an instrument ever 10 seconds (which would ordinarily create new variables for each time period), you may want to only detect "events". That is, only record the amount of time between events--sort of Mean Time Between Failure (MTBF) type of modeling.
    Hope this helps with your thinking about how to approach your problem

  • Overview of Import Manager

    Friends,
    Iam new to MDM.Could anybody give an overview of Import Manager.I have very less time to prepare for MDM.I need the basic topics in MDM for presentation.This topics must lead the consultant to work on MDM.
    Reward points will be awarded for suitable answers.

    Hi,
    Import Manager is basically used to import data in the selected repository.
    Initially When you launch Import manager it asks you for repository name,language and username & password(can be Admin or one specified in console)
    Then next step it asks you for
    1.)Type(type of source file i.e excel,access,port(in case of remote system),ODBC,XML).
    2)Remote system(MDM For local desktop or ABCfor client system)
    3)Filename
    Then you select the source file and destination table.
    Then source preview tab you can see the source data ,In partition tab you can create combination of fields for say hierarchy.In Map fields you should map corresponding  source and destination fields and values .
    In Match Records tab you select the field as per the uniqueness of this field records are imported.selected import action as create for first import.
    In Import Status if its ready to import  execute import.
    Other features of Import manager include pivoting ,reverse pivoting,split in hierarchy,split in multiple fields,convert data values etc.
    reward points if helpful
    Regards
    Nisha
    Edited by: Nisha Lalwani on Feb 14, 2008 2:20 PM

  • How to start MDM?what is the starting lession of MDM?

    how to start MDM?what is the starting lession of MDM?

    Hi,
    MDM Topics:
    MDM Course Curriculum
    1. MDM Console:
    History Of MDM
    MDM Overview
    MDM Performance
    MDM Components
    u2022Server Components
    u2022Client Components
    u2022Admin Components
    Console Introduction 
    Repository structures
    Creating Repository
    Working with different types of tables
    u2022Taxonomy
    u2022Hierarchy
    u2022Flat
    u2022Qualifier
    u2022Special tables
    u2022Object tables
    Console Settings
    u2022Creating Users & Roles
    u2022Change tracking
    u2022Remote systems
    Console Security
    u2022Repository Level
    u2022Server Level
      Repository Administration
         Duplicating Repository
    Backup and Restore
    Compacting Repository
    Working with master/slave Repository
    2    Data Manager:
         Data Manager Overview
         MDM Modes:
    u2022Record Mode
    u2022Hierarchy Mode
    u2022Taxonomy Mode
    u2022Match Mode
                Validations & Workflow
                Matching Mode
         Transformations
    Rules
    Strategies
    Match & Merge
               Working with Qualifier tables
               Browser Embedding
               Relationships
               Family Mode/Layout and Publish
      3.  MDM Import Manager:
    u2022Import Manager Overview
    u2022Configure Import Manager
    u2022Import Map File
    u2022Pre-requisites for Data Import
    u2022Monitoring Import Status
    u2022Performing Data Import
    u2022Transformations
    u2022Table Joins and Lookup
    u2022Splitting fields
    u2022Building Hierarchy
    u2022Partitioning Fields
    u2022Field Mapping/Value Mapping
    u2022Value Conversion
    u2022Pivot and Reverse pivot
    u2022Batch processing
    4.  MDM Syndicator
    u2022Syndicator Overview
    u2022Exporting into diff file formats
    u2022Record Suppression
    u2022Syndication Map
    u2022Maps and Map properties
    u2022Item Mapping
    u2022Destination Items
    u2022Custom Items
    u2022Merge Items
    u2022Syndication Records
    5. Overviews:
            Master data harmonization
            Rich Product Content Management RPCM
           Global Data Synchronization
    6. Integration Scenarios:
    u2022XI Integration
    u2022R/3 Communication
    Regards
    Mahesh

Maybe you are looking for

  • ECC 6.0 Installation Error During Import ABAP

    Hello Guys, I am installing the Ecc 6.0 on windows 2003 Enterprise Edition I facing the following error during the installation. can you guys please help me out. here is the erro i am getting. I am here by posting the import.monitor.log and the relat

  • Oracle 8i : How To Know The User Password

    Hi Everyone I' am a developer, Developing Business System with Oracle 8i Ver 8.1.6 and Developer 6i I Create a schema called Bank_Acct, and I Created many users and grant each user a role on some tables according to his work, I Notice That, Some User

  • I need to uninstall a plug-in i shouldn't have installed

    Oops, I installed a plug-in that needed iPhoto 5 & I only have Iphoto 2 & now I can't export my photos - how can I get rid of the plug-in?

  • Deployment problem on WLS8.1sp3: com.sun.javac.Main not found

    Hi, I have a curious problem, after adding some simple (logging) code to an Session Bean, the EAR file will not deploy. I get the message below concerning compilation problems. If however I restore the Session Bean to the previous state, and having b

  • BEx Query Output Not Visible on the Dashboard.

    Hi All, I have a Dashboard which include 2 BEx Queries in it. When my end-user displays the Dashboard, he is able to see the result of one BEx Query and there is no result on from the second BEx Query. Both the queries are from same InfoCube and rele