Merging queries with not exact matching data

Hi fellow Webi and OLAP bods
Does anyone know how I can merge data from 2 different queries where the data is not an exact match?
I have one query where the key is
001
002
003
004
etc
and another where the key is
AAA001
AAA002
AAA003
BBB004
etc
basically they are the same thing but the second has this prefix in the data that I am not interested in.
If it were on oracle or some other relationanl data source I could clearly create a new object in the universe that used substr(mykey,4,3) and they'd match fine but both queries are on SAP BW datasources and I wanted to know if I can do this anyway without having to wait for our BW team to create me a new object in BW.  I'm guessing my only options are with some neat MDX in the universe (I'm on xi 3.1) or with some clever stuff in the report......
Maybe I'll just do it in excel with vlookup......(again!)
Thanks
Nick

Since I don't have the same set of data that is why I cannot replicate on my system so don't take my answer as final answer.
If both fields have the same data type then you can do and if you dont want to see the prefix then you can use formula and hide it.
Let me know if it works.
Bashir Awan

Similar Messages

  • 0SM_CCLM Queries do not return correct data

    Hi
    I've been testing my queries on various cubes and not having much success. The ATC ones work ok, The UPL ones tend to show no data or time out and the 0SM_CCLM queries show a 0 count always.
    On researching the 0CM_CCLM ones a bit more with a colleague, he suggested that the 0SM_CCLRC key figure should have a count in it. I found out that previously that was in error in SP07 and it was amended via note 1779251 - Key Figure 0SM_CCLRC does not exist in the Cube 0SM_CCL and noticed that when the key figure was added, it was done so with a constant value of 1.
    My question therefore is whether there is a problem with this cube also and the 0SM_CCLRC key figure does not have a constant value of 1 making the summation impossible and hence all my totals are 0 for all queries on this cube.
    Thanks
    Ian

    Hi Alexander
    0SM_CCLM/0SM_CCM_CREATED_OBJECTS_YEAR is one example.

  • OutOfMemoryError on Jtable with not 'that' much data

    Hi,
    Im getting outofmemoryerror when using my jtable. The dataset is collected from an xml file at the moment (soon to be changed to mysql as were getting too much data for xml) but anyhow, of course it depends which pc you are on, but when accessing our programs applet sometimes we will get this outofmemoryerror with only 1056 lines. Now I know lots of people are going to say just cut down the number of lines displayed, use a filter, etc etc, and we are working on adding a filter, but for now I need all of the lines to be displayed, and well I have seen people displaying 10,000 lines or more before getting this error.
    Maybe I am doing something simple wrong. Please take a look.
    Im not really sure what code to supply you with, as the StudyTableModel wont be of any use really....
    Im just after some advice really. Why do you think I am getting my OutOfMemoryError with so few rows?
    Thanks, and if you want any code supplied, then just ask :D
    James

    I meant profiler, sorry typo.
    Wikipedia explains it best: http://en.wikipedia.org/wiki/Profiler_%28computer_science%29
    You'd want a memory profiler.
    If you're still a newbie than getting this stuff to work might seem like a big task and could take some time, but in the end it will definitely be worth it, since knowing where your problem is is much, much better than guessing ;-)

  • Timeselector on graph with not regular intervals date

    Hello,
    Could you help me, I try create something like that http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/graph/timeSelector.jspx
    But my query does not contain dates in regular intervals, there any solutions to this problem?
    Thanks.

    ivelson wrote:
    you can use "scan from string" or "format to string" function to convert text files (string - either its your data or your date/time) into numeric and time stamps. and feed to your graph.
    That does not work if you're having a plot where the X points are not equally far away from each other.
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012

  • No exact match was found. Click the item(s) that did not resolve for more options. You can also use Select button to choose External Data.

    HI,
    I have SharePoint Online 2013 environment, i have created a external content type from wcf service. I want to use this as External Data column in document library. When i look for values in content type it populates and when i click any values and adds and
    then click saves it shows the below error
    No exact match was found. Click the item(s) that
    did not resolve for more options. You can also use Select button to choose External Data
    __fkc000950056003700kc000950056003700kc000e400f2001400kc000950056003700k830035004700160027004700d20057000700020064009600870056004600:
    No Matching Items
    Please help on this.
    varinder

    I don't understand the question exactly, could you restate it.  Sorry mate, I might just be braindead.
    But, as far as the issue, it is by design.  the column is a lookup columns which essentially ties to the external data.  if that data is removed, the column on your simple list becomes invalid and any edits of the simple list item will require
    it to be changed.
    are you wanting to make the ECT read only?  that's simple enough.  you can pop open SPD and edit the ECT, then remove the C/E/D operations (create/update/delete).  That will not, however make it read-only in any other systems that access that
    external data, as I assume its not just SP or else it wouldn't be external
    Christopher Webb | MCM: SharePoint 2010 | MCSM: SharePoint Charter | MCT | http://christophermichaelwebb.com

  • Issues with images when using data merge

    Here's the deal. We are converting from CS6 to CC2014. I have a file that opens fine in CS6, the merge works fine.
    If I open that file in CC2014 it works fine with the exact same list. But, if I relink a new list or change and update the current list, the data merge no longer works for the images in data merge. Even though nothing has changed in the file links.
    I get the error that it cannot find the images.
    Is this a know issue?
    Mac OSX 10.10.1

    It could be that the template is some how bunged up, even though it is evidently working in CS6. You might want to try, as a test, setting upa  new document in CC, add the data file, put your placeholders in the document and merging. Then change the merge file, then try to update it.
    All I can really say is that I have not experienced this issue (yet). And as far as I can tell, yours is the first post on the matter that isn't document corruption related, or that Previewing the records hasn't caused some malady. either needs the template remade or brought into a new file to fix. You issue sounds sort of half-way between.
    Mike

  • When I tried to Mail Merge for Data is is not exporting any data.

    HI,
    EBS-12.1.3
    DB-11gR1
    OS - RHEL 5.6
    [With my Login User and SysAdmin Login User] When I enter into to the "People -> Enter and Maintain" Form and then I press the "Export Button", there is error Alert
    Function is not available to this responsibility. Change Responsibilities or Connect to the System Administrator
    I Added the Function "HR ADI Seeded Integrator Form Functions" into the "AE HRMS Manager" Responsiblity. It is also working and Export Data icon is enable.
    Problem:
    But Problem is when I tried to Mail Merge for Data is is not exporting any data.
    ====================================================================
    Steps
    1.Move to the "People -> Recruirment" and then "Request Recruitment Letter" .
    2. Enter the New Request. as
    Letter Name "App. Letter Contract Site",
    Automatic or Manual = Manual.
    Select the Name from the LOVs for the Request for Detail Block.
    3. Press the "Export Data" icon.
    4. Integrator Page Appear with my Custom Integrator Name as "Appointment Letter - Contact Site".
    5. Select the "Word 2003" from the View List. and Reporting is Checked.
    6. Review the Folowing Enteries as:
    Integrator Appointment Letter - Contact Site
    Viewer Word 2003
    Reporting Yes
    Layout App. Letter Contract Site
    Content XXHR_MBE_APP_LET_CONT_SITE_V
    Session Date 2011/08/02
    Mapping XXHR_MBE_APP_LET_CONT_SITE_V Mapping
    7. Press "Create Document" Button.
    8. It will open the Excel 2003 and then Word 2003. But no data down download from the Form.
    9. It open the Mail Merge Letter but no Data is Display.
    ===========================================================
    Note:
    a. I am following the Steps from the Link:"http://apps2fusion.com/at/38-ss/351-generate-recruitment-letters-web-adi".
    b. From the "Desktop Integrator Manager", "Oracle Web ADI", "HRMS Web ADI", it is working fine and Dowload the Data.
    ===========================================================
    Thanks
    Vishwa

    Please try the solution in ("Function not available to this responsibility" Error While Cliclking On Forms Personalisation [ID 1263970.1]) and see if it helps.
    Thanks,
    Hussein

  • AddOnsLocalRegistration.sbo file does not match data in the common datab...

    We are receiving the following error everytime we logon our pc for the first time: Add-On Outlook_Integration: This Add-on cannot be upgraded. AddOnsLocalRegistration.sbo file does not match data in the common database for this add-on. See SAP Note 1323680 for more information.
    A few months ago, SBO Server was moved from one server to a new virtual server, but we had no problems with the addons. The other day, we upgraded from SBO 2007 to 8.8 and now we are having problems with the Outlook Integration.
    I have followed the directions in the message noted above, and did find the AddOnsLocalRegistration.sbo file in some odd places, with a reference to the old server. I cleaned this up, on the server and the client and I can get it running...however, after the user shuts down the pc and logs back in the next day, the problem is back.
    In the process of cleaning this up (un-registering the addon and removing the addon references in the local .sbo file) I noticed at times that we would still receive this error, when there really shouldn't be an reference to it.
    Thanks for any help.

    Hi Vaughn.........
    I guess you need a re installation of Outlook Integration Addon.
    Whatever version addon of OI you installed just uninstall it and Install it freshly from 8.8 setup package......
    Regards,
    Rahul

  • Compare Server Names in Excel sheet from column1 with column 2 and exact matched server names should be saved in column 3 in same Excel sheet

    Hi Guys,
    First of all thanks in advance any help much appriciated.
    I am new in scripting and excel, i am looking for below solution as my job requires daily work of this kind and i came to know by automating this work lots of time can be saved.
    Compare Server Names in Excel sheet from column1  with column 2 and exact matched server names should be saved in column 3 in same Excel sheet.
    Looking solutions first using excel i.e.vlookup itself so that it will not require any approval in my job else using powersell ,vbscript.
    Once again Thanks for you guys.
    /Regards
    Nitesh24in

    Hi Edward,
    Thanks once again
    I have only changed excel file path and after that this is saved as below , i am not sure which three lines should be together in one line. Please advise.
    $excel = New-Object -ComObject Excel.Application
    $Workbook = $excel.Workbooks.Add("F:\NewDocsToReadNitesh26-May2013\Excel\test.xls")
    $WorkSheet = $Workbook.Worksheets.Item(1)
    $WorkSheet.Activate() | Out-Null
    For ($i=1;$i -le $worksheet.UsedRange.Rows.Count;$i++) {
       If ($worksheet.cells.item($i,1).value2 -eq $worksheet.cells.item($i,2).value2) {
          $worksheet.cells.item($i,3).value2 = $worksheet.cells.item($i,1).value2
    }$Workbook.Save()$excel.Quit()[System.Runtime.InteropServices.Marshal]::ReleaseComObject([System.__ComObject]$excel) | Out-Null
    Thanks and Regards
    Nitesh24in

  • Intelligent barcode font not working in Data Merge?

    Intelligent barcode font not working in Data Merge?
    When using Data Merge I only get a pink box where the code is supposed to go. If I cut and paste the same info into the spot the bar works fine. Anybody ever have this problem?

    It looks like you're working with InDesign, correct? I would try posting your question over in the general InDesign forum: http://forums.adobe.com/community/indesign The folks over there will be able to provide you with more specialized expert help

  • Slow response  on data dictionary queries with optimizer_mode=rule in  10g

    I have two dataabse: DB1 (9i) and DB2 (10g) on windows 2000
    They are two development databases with the same schemas and same tables. The application executes the same commands but with different results and execution plans.
    In DB2 the queries with the most slow response tima are the queries on the data dictionary (for example: all_synonyms).
    These query are very fast with the optimizer_mode=cost and very slow with the optimizer_mode=rule.
    And the the problem is this:
    in DB1 and DB2 the application executes after the connection this command:
    ALTER SESSION SET OPTIMIZER_MODE = 'RULE';
    These are the traces of the session in db1 and db2:
    The queries are created dynamically by the application.
    Is there a solution for this?
    thanks
    Message was edited by:
    user596611

    Here is a simple example of what can happen,
    @>alter session set optimizer_mode=all_rows;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name | Rows  | Cost (%CPU)|
    |   0 | SELECT STATEMENT |      |     1 |     2   (0)|
    |   1 |  FAST DUAL       |      |     1 |     2   (0)|
    @>alter session set optimizer_mode=rule;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name |
    |   0 | SELECT STATEMENT |      |
    |   1 |  FAST DUAL       |      |
    Note
          - rule based optimizer used (consider using cbo)As you can see incomplete explain plans. Therefore it is not advised.
    Adith

  • Capture data in 1D barcode upon merging XML with XDP?

    Hi,
    The scenario is:
    Forms Server 7.2.2 is being used for merging XML data with an XDP file to render a PDF (displaying a pre-filled form to user).
    On the XDP, there is a 1D Barcode and few fields are mapped to this barcode (the barcode is intended to capture form identification information).
    Upon merging, the barcode should capture the data of those fields (data is being fetched from a db and fed as XML to Forms server). This is required as the pre-filled form will be printed and then mailed to another location, where the barcode will be read using a decoder to capture form indentification.
    Will the 1D barcode captures data from those fields, after merging XML with XDP?
    The form is NOT Reader Extended. Is Reader Extending a necessity for enabling 1D barcode to capture data?
    Is this also applicable for 2D barcodes?
    Thanks a lot for your help! :)

    Thank you Hodmi,
    I had forgotten to define the Record name parameter in the PDF Output Options.
    As the XML structure changed, not upating this parameter was preventing the process from working.
    Now it is working just fine. Thank you!
    Marcos

  • How to get exact match when working with Oracle Text?

    Hi,
    I'm running Oracle9i Database R2.
    I would like to know how do I get exact match when working with Oracle Text.
    DROP TABLE T_TEST_1;
    CREATE TABLE T_TEST_1 (text VARCHAR2(30));
    INSERT INTO T_TEST_1 VALUES('Management');
    INSERT INTO T_TEST_1 VALUES('Busines Management Practice');
    INSERT INTO T_TEST_1 VALUES('Human Resource Management');
    COMMIT;
    DROP INDEX T_TEST_1;
    CREATE INDEX T_TEST_1_IDX ON T_TEST_1(text) INDEXTYPE IS CTXSYS.CONTEXT;
    SELECT * FROM T_TEST_1 WHERE CONTAINS(text, 'Management')>0;
    The above query will return 3 rows. How do I make Oracle Text to return me only the first row - which is exact match because sometimes my users need to look for exact match term.
    Please advise.
    Regards,
    Jap.

    But I would like to utilize the Oracle Text index. Don't know your db version, but if you slightly redefine your index you can achieve this (at least on my 11g instance) :
    SQL> create table t_test_1 (text varchar2(30))
      2  /
    Table created.
    SQL> insert into t_test_1 values ('Management')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Busines Management Practice')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Human Resource Management')
      2  /
    1 row created.
    SQL>
    SQL> create index t_test_1_idx on t_test_1(text) indextype is ctxsys.context filter by text
      2  /
    Index created.
    SQL> set autotrace on explain
    SQL>
    SQL> select text, score (1)
      2    from t_test_1
      3   where contains (text, 'Management and sdata(text="Management")', 1) > 0
      4  /
    TEXT                             SCORE(1)
    Management                              3
    Execution Plan
    Plan hash value: 4163886076
    | Id  | Operation                   | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |              |     1 |    29 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T_TEST_1     |     1 |    29 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | T_TEST_1_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("TEXT",'Management and
                  sdata(text="Management")',1)>0)
    Note
       - dynamic sampling used for this statementJust read that you indeed mentioned your db version in your first post.
    Not sure though if above method is already available in 9i ...
    Message was edited by:
    michaels

  • HT4914 I turn on the iTunes Match in my iphone3GS, but the itme of "show all musics" not show up and turn on, so when I open musics in my iPone3GS, the musics seems not be matched with iClouds.

    Dear Sirs,
    I turn on the iTunes Match in my iphone3GS, but the itme of "show all musics" not show up and turn on, so when I open musics in my iPone3GS, the musics seems not be matched with iClouds.I means it doesn't work on.

    Hello there Jameskuo47,
    In researching the issue you are experiencing I found an article that should help get your iTunes Match content to your iPhone. The name of the article is iTunes: How to add a computer or iOS device to iTunes Match and you can find it here: http://support.apple.com/kb/ht4913.
    This section specifically:
    To add an iOS device to iTunes Match
    On your iOS device, go to Settings > Music.
    Note:
    iTunes Match requires iOS 5.0.1 or later; you can find the
    latest iOS software here'
    Tap the iTunes Match switch to On.To access your music in iCloud, open the Music Player app on your device.
    Your music in iCloud will be integrated into your local music library. A download button will appear to the right of any content that you have in iCloud that doesn't already exist on your device.
    Important:
    When enabling iTunes Match on your iOS device, the music library on your iOS device will be deleted and then replaced with your music in iCloud.
    Syncing music with iTunes will be disabled while iTunes Match is enabled on your iOS device.
    By default, when adding an iOS device to iTunes Match, downloading over a cellular network is enabled1. To disable downloading over cellular for iTunes Match, choose Settings > Music > Use Cellular Data > Off.
    All the best,
    Sterling

  • Accounts and entities do not match data in application OWNERSHIP

    Dear experts,
    During execution of the legal consolidation package we get the following error:
    "Accounts and entities do not match data in application OWNERSHIP"
    We have entered the ownership and transaction data.
    Could you, please, help us to solve the problem?
    Thanks.
    Mila

    This problem occurs when your Legal application is not in synch with your Ownership.
    See below what you have to do to fix this problem.
    I am considering you are using BPC for NETWEAVER.
    If you are using BPC for Windows, then you gonna have to check some other properties too. ok?
    Here we go.
    LEGAL APPLICATION parameters must be setup in web, as follows:
    ORG_ACCOUNTLIST = METHOD,PCON,POWN
    ORG_ACCOUNTOWN = PGROUP
    ORG_INTCO = I_NONE
    ORG_OWNERSHIPCUBE = OWNERSHIP (or the name of your ownership InfoCube)
    ORG_PARENTPROPERTY = PARENT_GROUP
    OWNERSHIP_APP = OWNERSHIP (or the name of your ownership application)
    USELIM = 1 (if you gonna use US elimination)
    VALIDATIONS = 1 (if you gonna use "online" validations entered in Netweaver)
    OWNERSHIP APPLICATION parameters must be setup in web, as follows:
    ORG_ACCOUNTLIST = METHOD,PCON,POWN
    ORG_ACCOUNTOWN = PGROUP
    ORG_INTCO = I_NONE
    ORG_OWNERSHIPCUBE = OWNERSHIP (or the name of your ownership InfoCube)
    ORG_PARENTPROPERTY = PARENT_GROUP
    OWNERSHIP_APP = OWNERSHIP (or the name of your ownership application)
    After setup web parameters, go to BPC console and check the following dimensions:
    (I am mentioning just the ones you need to setup for the consolidation)
    C_ACCT
    This is your account, and if you are using SAP ECC it should be equal to 0050 accounts of your GL (for example)
    In this dimension, you must check the following properties:
    ID - NEVER, I repeat NEVER, use lower case letters since BPC is case sensitive.
         ALWAYS USE UPPER CASE, FOR EXAMPLE, MY ACCOUNT ID'S ARE:   VLD_PL_INV,   VLD_PR_INV and so on.....
         This is valid for all dimensions or any other ID you gonna create in BPC.
    RATETYPE - must setup and must be the ones you gonna use in your RATE application
    DIMLIST2 - must use to GROUP your accounts for eliminations or any other automatic adjustment
    C_CATEGORY
    This is your consolidation categories used to link data you gonna load to your Legal InfoCube.
    You must have C_100 for example, for your Actual Version.
    You can use the ones that comes with APSHELL C_CATEGORY. It is fine.
    C_DATASRC
    This is just to TRACK your entries.
    Create as many data sources you need and you gonna use.
    You can use the ones that comes with APSHELL C_DATASRC. It is fine.
    ATTENTION for the following properties:
    DATASRC_TYPE - I for input (all the entries, transaction data from txt or ECC) and A for automatic adjustments
    IS_CONSOL - Y means that ALL entries in the Legal infocube must be considered for consolidation
    IS_CONVERTED - Y means that ALL entries in the Legal infocube must be converted to the GROUP for consolidation
    DATASRC_STAGE = Y (allways Y)
    ENTITY
    ID and PARENTH1 must be entered and must reflect your company hierarchy.
    INTCO - inform the associated Inter Company.
    CURRENCY - You must inform the currency of the company otherwise IT IS NOT GONNA WORK.
               This currency ID must be setup IN ALL the currency dimensions.
    In this entity you must enter:
    1-All the companies
    2-ALL TECHNICAL COMPANIES for the consolidation to work
    3-ALL TECHNICAL COMPANIES for VALIDATIONS (if you gonna do you validations thru script logic to
    have better control of accounts and values).
    ATTENTION:
    JUST FOR THE TECHNICAL COMPANIES FOR CONSOLIDATION YOU MUST INFORM  Y   TO THE ELIM PROPERTY.
    Leave it blank for all the other companies.
    FLOW - you can use the one that comes with APSHELL
    GROUPS
    If your version of BPC is 7.0 than this dimension has two objectives.
    First Objective - store all the currencies.
    All you company data must be loaded with LC currency i.e. in the Legal InfoCube, you gonna see LC in the GROUPS column.
    This is you Local Currency, so NEVER delete it.
    These currencies must have the following properties setup:
    REPORTING - Y for any other currency you insert, X for LC currency, X for Transction Currency.
    CURRENCY_TYPE - R for reporting, L just for LC currency, T for the transaction Currency
    Leave all the other properties blank!!!!
    Edited by: JADIRM on Nov 7, 2010 3:23 AM

Maybe you are looking for

  • Open 2 Photos at the same time to transfer faces?

    I want to put a new face from one picture to another, but I don't know how to open 2 photos at the same time so I can select one face to layer onto the other photo.

  • Sender File adpater to Pick Two files at a time based on the file name

    Hi Everyone, I have a scenario where I need to pick two files at a time using file adapter where the two files names have a common string in between their names.For example , the file names can be sets like H123.txt and L123.txt H345.txt and L345.txt

  • TS2289 Audio Track Won't Play

    I imported an audio clip yesterday and it worked fine. Today when I opened my project, there was a yellow warning triangle in the top left above the first frame of my movie and the audio track won't play. What should I do? And where the heck is the "

  • Handling events in Swing

    Hello all I have created a Frame, a menu bar, a panel which contains a split pane. In the first place, I would like to create a button in my leftsplitpane and that should happen when I click one of my menuitems. I hope I am clear. I have called the a

  • Very slow loading & as every thing FIOS... VERY confusing!! I wish I'd gotten cable!!!!!!!!

    very slow loading & of course ... as every thing with FIOS... VERY confusing!!  the whole forum and all the message  categories are not even working , for me, this is   hopelessly complicated and worthless.. I wish I'd gotten cable!!!!!!!!