How do we use the SUBSTR function in OWB

Hello, I'm pretty new to OWB. I need to use the SUBSTR function in owb. My source table has 16 characters in length. But in my datamar,.
the length is 14 years. I want to the substring from source to the destination. The mappings are already developed. I need to change the mapping to make sure that,
It brings only SUBSTR (1.14) mini - DW.

Any help is appreciated.

Use the operator of expression between two attributes.

OWB has already SUBSTR as a preset transformation

Take a look at the doc below
26.3.1 open the expression builder

http://docs.Oracle.com/CD/E11882_01/OWB.112/e10935.PDF

Tags: Business Intelligence

Similar Questions

  • How to use the Substring function with Case statement.

    Hi all

    I have a requirement where I have to use the substring function on the ground for the report criteria.
    FOR EXAMPLE
    I branch domain name where I have all the information of the branch names, now some of the branch names are too large with an extension after the name.
    now I want substing it, but the length of characters varies for each branch.
    so is it possible where we use a box where we can define if the character of name plug exceed a value then he substing with this length.

    Try something like this:

    LENGTH WHEN CARTER (tablename. Branch_Name) > n THEN SUBSTRING (...) Of ANOTHER tablename. Branch_Name END

    where n is the number of characters that you want to start the break.

  • How can I use the Ratio_to_report function in obiee

    Hello
    I have to use the ratio_to_report function to create the report.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions124.htm.

    This is the link that explains the use of this function. This function calculates the ratio of a value to the sum of a set of values. How can I achieve this in BI


    Please help me

    Thank you
    Angelique

    Ensure that the measure is not shaved base measure, and it is the measure of level of detail...

    need more information about your data modeling, how tables are joined and how you aggregate them...

  • How can I use the BCGTransform function to treat the 16-bit Image?

    Hi ~

    I use LabWindowsCVI8.5 and NI Vision to make the treatment of the Image. When I read the "IMAQ Vision for LabWindowsCVI Reference Manual", I found that the imaqBCGTransform function only supports 8-bit Image, while I do the BCG to turn on 16-bit image. Are there solutions to use the BCGTransform function to deal with the 16-bit Image? Or any other feature that could make the correction Gamma, contrast and brightness on the 16-bit Image?

    Thank you very much!

    because imaqBCGTransform is implemented as a lookup table, we can understand why it is limited to 8-bit images.

    Now let's take a look at the definition of each of this mandate (from the NI Vision Concepts documentation):

    -brightness: a constant added to the components red, green, and blue pixel of color over color, decoding of the process;

    -contrast: a constant multiplication factor applied to the components of the luma and chroma of a pixel of color in color to decoding process.

    -gamma correction: expand high gray-level information in an image while removing information of low level of gray.  (the chapter on lookup tables gives some examples of corrections gamma)

    now that you understand that this transformation is a simple mathematical function, simply calculate the correction for each pixel on your 16-bit images.

    I know not the exact formula used by the imaqBCGTransform function, but you should be able to approach by performing some tests on images 8 bits with the original function... or you can make your own formula... or find one on the net... or you can ask someone at home OR you give the formula...

  • How can I use the SUM function to calculate the number of employees in the comp. & deptnt?

    I have two tables: employees and their departments. I'm figuring the total employees by the Department and the total employees of the entire society. I know I have to use the SUM function, but I can only calculate total employees by Department and company separately. I need to get this result:

    DEPT_NAME     DEPT_TOTAL_SALARY         COMPANY_TOTAL_SALARY
    RESEARCH                  10875                        29025
    SALES                      9400                        29025    
    ACCOUNTING                 8750                        29025      
    
    
    This is my code:
    
    SELECT department_name, SUM(salary) as total_salary
    FROM employee, department
    WHERE employee.department_id = department.department_id
    GROUP BY department_name;
    
    SELECT SUM(salary)
    FROM employee;
    
    
    
    
    
    
    Can somebody help please?
    Thank you in advance.
    Published by: user13675672 on January 30, 2011 14:29

    Published by: user13675672 on January 30, 2011 14:31

    Hello

    Something like:

    SELECT dname,
           dept_tot_sal,
           SUM (dept_tot_sal) OVER () comp_tot_sal
    FROM   (SELECT   dname,
                     SUM (sal) dept_tot_sal
            FROM     dept, emp
            WHERE    dept.deptno = emp.deptno
            GROUP BY dname);
    

    There might be a smarter way, with no re - select.

    Concerning
    Peter

    Analytical functions:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/functions004.htm

  • Using the SUBSTR function

    Hello

    I have a query like this:

    ------------------------------------------------------------------------------------------------------------------------
    SELECT decode ((select count (1) in the patient_history b where (b.studyid = a.studyid and b.baseline_no = a.baseline_no and b.aeseq = a.aeseq and release_date IS not NULL)), 0, 'new ', ' courses') status, a.*
    OF patient_history one
    ..........
    ---------------------------------------------------------------------------------------

    In this request for where clause ("b.studyid = a.studyid and b.baseline_no = a.baseline_no and b.aeseq = a.aeseq")

    All columns listed here in where clause had to come from a few tab100 of the table that contains a column named "pass".

    tab100
    -----------
    Col

    The columns of this pass store column names that are used in the comparison of clause 'where '. (this is a self-join)

    "Say this column, ' STUDYID, BASLINE_NO, QBSCA ' as value so how can I write a string to be able to select these values such as ' a ' or 'b', etc. and write the query completely.

    Select decode ((select count (1) in the patient_history |)) 'b' || ' OÙ (' || "dynamic string after extraction of the neck | ... etc.

    I tried to use subtsr, but did not. Help, please.

    Rgds,
    Aashish

    You can use this function as as follows

    declare
      l_cur sys_refcursor;
      cursor l_cur_int  is
        SELECT 'Current' status, a.* FROM patient_history a where 1 = 2; -- it's a fake cursor just to define output columns
      l_rec l_cur_int%rowtype;
    begin
      open l_cur for 'select ....  where '||get_where;
      loop
       fetch l_cur into l_rec;
       exit when l_cur%notfound;
       ... processing here...
      end loop;
    end;
    
  • Error when you use the substring function

    Hello
    I get the error while using this query below.

    Substr ("end". ASSET_NUM, instr (end of the day". ASSET_NUM, ' :') + 1).

    ([nQSError: 10058]) A general error occurred. [nQSError: 27002] Near <>(): syntax error [nQSError: 26012]. (HY000)

    Please help me...

    Published by: user10441472 on June 24, 2009 12:49

    Hello

    Try this

    Substring ('end of account'. ASSET_NUM (Evaluate (as an int, 'End', ' instr(%1,%2)'. ASSET_NUM,': ')) + 1, 50)

  • How to achieve using the analytical functions - please help

    Oracle version: 10g
    -999 means that all THE values for this key
    with input_parameters as (select 10 filter_key , '10ACCC' filter_value from dual union all
    select 50 filter_key ,'10ACCC0001' filter_value from dual union all
    select 60 filter_key , 'PIP' filter_value from dual union all
    select 70 filter_key , 'A' filter_value from dual) select * from input_parameters;
    
    
    with profile_search as(
    select 100 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all 
    select 100 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
    select 100 profile_id , 50 filter_key , '10ACCC0002' filter_value from dual union all
    select 100 profile_id , 60 filter_key , '999' filter_value from dual union all
    select 100 profile_id , 70 filter_key , '999' filter_value from dual union all
    select 101 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
    select 101 profile_id , 50 filter_key , '10ACCC001' filter_value from dual union all
    select 101 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
    select 101 profile_id , 70 filter_key , '999' filter_value from dual union all
    select 102 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
    select 102 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
    select 102 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
    select 102 profile_id , 70 filter_key , 'A' filter_value from dual)
    select filter_key , wm_concat(filter_value) from profile_search group by profile_id, filter_key ;
    need to identify profile that matches input parameters
    ---------------------------------------------------------------------------
    
    102 is first match because it matches exactly
    101 is second match because 999 can match any value
    100 is third match 
    70 KEY HAS THE HIGHEST WEIGHT,
    A next highest weight KEY 60 and 50 next highest weight BUTTON


    required results:
    profile_id: 102

    Published by: devarade on January 19, 2010 20:01

    Published by: devarade on January 19, 2010 20:01

    I guess that there is a typing error in your sample:

    Select 101 profile_id, 50 filter_key, '10ACCC001' filter_value from all the double union

    must be:

    Select 101 profile_id, 50 filter_key, '01' filter_value from all 10ACCC00 the double union

    Then:

    with input_parameters as (
                              select 10 filter_key , '10ACCC' filter_value from dual union all
                              select 50 filter_key ,'10ACCC0001' filter_value from dual union all
                              select 60 filter_key , 'PIP' filter_value from dual union all
                              select 70 filter_key , 'A' filter_value from dual
                             ),
            profile_search as(
                              select 100 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
                              select 100 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
                              select 100 profile_id , 50 filter_key , '10ACCC0002' filter_value from dual union all
                              select 100 profile_id , 60 filter_key , '999' filter_value from dual union all
                              select 100 profile_id , 70 filter_key , '999' filter_value from dual union all
                              select 101 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
                              select 101 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
                              select 101 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
                              select 101 profile_id , 70 filter_key , '999' filter_value from dual union all
                              select 102 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
                              select 102 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
                              select 102 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
                              select 102 profile_id , 70 filter_key , 'A' filter_value from dual
                             )
    select  profile_id,
            sum(direct_match_cnt) || ' direct matches out of ' || (select count(*) from input_parameters) match
      from  (
             select  b.profile_id,
                     b.filter_key,
                     b.filter_value,
                     sum(case when b.filter_value = a.filter_value then 1 else 0 end) direct_match_cnt
               from  input_parameters a,
                     profile_search b
               where b.filter_key = a.filter_key
                 and (b.filter_value = a.filter_value or b.filter_value = '999')
               group by b.profile_id,
                        b.filter_key,
                        b.filter_value
            ) x
      group by profile_id
      having count(*) = (select count(*) from input_parameters)
      order by sum(direct_match_cnt) desc
    /
    
    PROFILE_ID MATCH
    ---------- ----------------------------------------
           102 4 direct matches out of 4
           101 3 direct matches out of 4
           100 2 direct matches out of 4
    
    SQL> 
    

    SY.

  • How do you use the Exp fundtion on the windows calculator

    How do you use the Exp function in the windows for the following calculator

    Exponential of the negative power of 0.5

    e

    I don't have.
    I couldn't find an e = 2.71828183 key on the windows calculator.
    I used Google's built-in calculator function.

    The windows calculator, you will need to enter:
    2.71828183 [x ^ y] (-0.5) =.
    ||

  • How doi send texts using the speech function without hitting the Send button?

    using the speech function in texting, how to send the text without actually pushing the Send button? When I say 'send' or 'send message' he just keeps typing

    "Hey, Siri, send a message to Bob. Siri will then ask you what you want text Bob. Once you stop dictating, Siri will ask then if you're ready to send the message. Say, "Yes." It's really very nice.

    If you are already in the message app and using speech-to-text, you must press the Send button.

  • How not to use the squint no functionality?

    I forgot how not to use the squint no functionality. Can anyone help?

    18.0 Firefox was released last Tuesday, you need to update.

    See if this FAQ for NoSquint answers your questions.

    https://urandom.ca/NoSquint/#FAQ

  • How to connect the parallel test using the logarithmic function Teststand database result

    Hello

    How can I connect a test result of 4 EHR tested in parallel using the logarithmic function Teststand database

    I use Labview 2013, 2013 Teststand and sequential model.

    The test is performed using a single digital card (SMU-6556). The FSD 4 is connected to the port of the digital map and is tested in parallel.

    Currently at the end of the test, I would have a report with all the measures, but I need 4 reports (1 report / dut)

    TKS


  • How to use the @accum function in the calculation script

    Dear all.

    I'm new in essbase - calculation script so don't know how to use the @accum function.

    I want the aggregation value of child to parent

    Hierarchy

    Product

    100 > Storage Dimensions marked as stored (marked as intentionally as I want to calculate the value using the calculation script)

    100. 10 (+)

    100-20 (+)

    100-30 (+)

    I'm trying calculation Script

    100 = @Accum (@children("100"), jan: Feb);

    It works when I use below

    100 = @Accum("100-10",Jan:Feb);

    Error:-number of Dimensions [1] does not match number of gen/lev [3] office [@Dim]

    Don't know how I can roll up to an aggregate value of all the members of the child to the parent.

    Error.PNGhierachy.PNG

    you do this more difficult it must be. If you want to accumulate up to 100 then you could just make your calc

    '100 '.

    but that would be only 100, to make the OU any dimension would

    AGG (Product);

    Or better yet

    AGG (Product, Market);

  • How to use the add_months() function in a mapping?

    Hello

    I have a variable in ODI with a date and I need to add another variable to add 'x' months...

    How can do that?

    Thank you

    If you say you have variable1 organise a date for example 01/01/2015 and variable 2 holding a certain number of months for example 7?

    If so in your mapping expression simply use the date functions available to your database technology (step/target) and replace the variable in the function

    that is for Oracle your mapping would be ADD_MONTHS (#Variable1,Variable2of #)

  • How to use the NVL function in decoding?

    Hi all

    How to use the NVL function in decoding?

    SELECT Decode (Sign (sum (nvl (7), 0)-nvl (sum (5), 0)), - 1, 0, (sum (nvl (7), 0)-nvl (sum (5), 0)) QTY)

    of the double

    Thank you

    You should not do that...

    Greatest (NVL (Sum (Quantity), 0)-NVL (SUM (quantity_received), 0), 0) AS qty_arrival

    will do the same

    HTH

Maybe you are looking for