Substring of a string in report

Hello
I have some values such as ' / shared, outstanding, _portal, outstanding ' & ' shared/SalesAnalytics/_portal/sales' under a column in OBIEE report.
Now instead of display the full path to the result I want to display only the string after the _portal/"...like"in the above case.

'Outstanding' & 'dirty '.

Please let me know how can we achieve this in the answers?

Thank you

Hi user,

Try something like this,

Substring ("YourColumnName" of (position (in 'YourColumnName', ' _') + 8))

Rgds,
DpKa

Tags: Business Intelligence

Similar Questions

  • How to extract the same part of the substring of two strings?

    How can I retrieve the first identical substring of two strings?
    version: 10 gr 2
    as for example:
    Given:
    str1: randomStringWith123abc
    str2: randomStringfor345abc
    
    Get:
    substr:randomString
    
    Given:
    str3: dummyhowareu
    str4: dummyiamfine
    
    Get:
    substr:dummy
    As you can see, the size of the substring is unknown.

    any ideas?

    Hello

    something like this:

    with x as (select 'dummyhowareu' str1, 'dummyiamfine' str2 from dual)
    select replace(str1,ltrim(str1,str2))
    from x
    

    Herald tiomela
    http://htendam.WordPress.com

  • Procedure to extract several substring of a string

    Hi all

    I was wondering how can I extract substring of a string. I would write a procedure to update data in the table and by mistake if the string doesnot match the pattern.

    Example of a string: [1594374: "SFD"] [1597251: 'TTT'] [1601085: 'SSS']

    Using this channel, I would update as table 'test' which has columns ID and TYPE.

    Updates of the statements will be:

    UPDATE TEST SET type is 'DFS' where id = 1594374;.
    UPDATE TEST SET type is 'TTT' where id = 1597251;.
    UPDATE TEST SET type is 'TTT' where id = 1597251;.

    I would be grateful if someone could help me with this.

    Thank you
    SQL> create table test(
      2                    id   number,
      3                    type varchar2(10)
      4                   )
      5  /
    
    Table created.
    
    SQL> insert into test(id) values(1594374)
      2  /
    
    1 row created.
    
    SQL> insert into test(id) values(1597251)
      2  /
    
    1 row created.
    
    SQL> insert into test(id) values(1601085)
      2  /
    
    1 row created.
    
    SQL> select * from test
      2  /
    
            ID TYPE
    ---------- ----------
       1594374
       1597251
       1601085
    
    SQL> merge
      2    into  test a
      3    using (
      4           select  ltrim(regexp_substr('[1594374:''DYC''][1597251:''TTT''][1601085:''SSS'']','\[(\d+)',1,level),'[') id,
      5                   ltrim(regexp_substr('[1594374:''DYC''][1597251:''TTT''][1601085:''SSS'']',':''[^'']+',1,level),':''') type
      6             from  dual
      7             connect by level <= length(regexp_replace('[1594374:''DYC''][1597251:''TTT''][1601085:''SSS'']','[^[]'))
      8          ) b
      9    on (a.id = b.id)
     10    when matched
     11      then
     12        update set a.type = b.type
     13  /
    
    3 rows merged.
    
    SQL> select * from test
      2  /
    
            ID TYPE
    ---------- ----------
       1594374 DYC
       1597251 TTT
       1601085 SSS
    
    SQL> 
    

    SY.

  • Extract the substring of the string

    For the life of me I can not find a function to extract a substring of an existing string.  The closest I could find was SearchSplit String and replace substring, but none of them do what I want.

    That's what I want to do:

    Assuming that the string "Test String", the letters are in positions as follows:

    T e s t _ S t r i e n t
    0 1 2 3 4 5 6 7 8 9 10

    Now correct the substring offset 5 on position 7 (length 3):

    Substring = r t S

    5 6 7

    In Java, for example, you can easily do this using the code below:

    String str = "Test String";

    Substring of String = str.substring (5.7);

    There are no simple function to do this in LabVIEW?  If not, what is the best way to do it?

    Use String subset of index 5 and length 3.

  • Convert resultlist container to a string for report

    Hi all

    Is there a way to convert a resultlist containing a string? I have a ResultList of a separate test that I need to add to the ModifyBatchReportHeader point of the string for my report in ASCII format.

    I tried adding "str (OtherTestResults)", but it adds just periods as if he doesn't know how to access the test data (name test, measure, etc.). Is there a a way to convert it containing a string the TestStand way automagically done at other times?

    Thank you

    Chris

    Hi Chris,

    Unless you said, I did not realize the batch mode.

    For my example, I used the ModifyBatchReportFooter. You can also use the header.

    You just have to play with the HTML tags.

    This example only works with HTML-reports!

    For the generation, it uses the sequence: PutResultsInReport reportgen_html.seq in the template folder - OR

    Hope this helps a little more

    Jürgen

  • How to upgrade to the substring of a string value?

    UPDATE table1
    SET  SUBSTR  (TO_CHAR(field_value),3,2) = ' 50'  and SUBSTR (TO_CHAR(field_value),5,2)  =  '50'
    where  ( SUBSTR(TO_CHAR(field_value), 3, 2) =  '100' ) or ( SUBSTR(TO_CHAR(field_value), 5, 2) =  '100' )
    tried that precedes a TOAD and I had ' ORA-00927: lack of equal sign. " Help, please!

    data type for field_value's number. is version of Oracle 10 g

    Thank you

    Here is an example of how you can do:

    SQL> CREATE TABLE x
      2  AS
      3  SELECT 'SOME50HERE' AS field_x
      4  FROM dual;
    
    Table created.
    
    SQL> SELECT * FROM x;
    
    FIELD_X
    ----------
    SOME50HERE
    
    1 row selected.
    
    SQL> UPDATE x
      2  SET    field_x =  SUBSTR(field_x,1,4)
      3                 || '75'
      4                 || SUBSTR(field_x,7)
      5  ;
    
    1 row updated.
    
    SQL> SELECT * FROM x;
    
    FIELD_X
    ----------
    SOME75HERE
    

    Basically, it must break your string into three parts:

    1. the foregoing text you want to change.
    2. the text that you want to change.
    3. the part after the text you want to change.

    Then you concatenate them all together.

    If #1 is not a fixed number of characters, you can still use SUBSTR, by searching for the string you want to edit as follows:

    UPDATE x
    SET    field_x =  SUBSTR(field_x,1,INSTR(field_x,'50') - 1)
                   || '75'
                   || SUBSTR(field_x,7)
    ;
    
  • Need help to find the position of a substring in a string

    Hi all

    I have a VARCHAR2 column in my table that contains data similar to '152-425-3265-8-5623-45 '.

    I want to find the position of the numbers in the column.

    For example:
    If I give 8 - the query should return me 4.
    If I give 425 - query should return me 2.

    The numbers are delimited by '-' value.

    Help, please.

    Thanks in advance.

    Published by: 868171 on June 24, 2011 04:33

    Published by: 868171 on June 24, 2011 04:34

    Please try this it might work
    I have not tested for REGEXP_COUNT

    SELECT REGEXP_COUNT(SUBSTR('152-425-3265-8-5623-45',1,INSTR('152-425-3265-8-5623-45','425',1,1)),'[-]')+1
    FROM DUAL
    
  • How to get the substring of this string

    Hi friends,

    "ERF/11/414/KWT/IRC762.

    in this I need the string after C...

    I have to select the channel and finds the first occurrence of C in the last string and get the number after C every time
    what the chain can be

    I always check the first occurrence of C in the last... and retrun the number after the C

    How to make

    pls let me know

    He should give me the chain until the IRC avoiding 762

    This?

    SQL> select regexp_substr ('ERFC/11/414/KWT/IRC762', '.*C') num from dual
    /
    NUM
    ----------------------------
    ERFC/11/414/KWT/IRC     
    
  • Substitution strings do not fill in report models &gt; header &gt; before lines

    I'm unable to use the substitution string in report models > header > before lines

    < border tr = "1" >

    < class th = "header" align = "center" colspan = "2" > < /th > SYSDATE-3

    < class th = "header" align = "center" colspan = "2" > < /th > SYSDATE-2

    < class th = "header" align = "center" colspan = "2" > < /th > < /tr > SYSDATE-1

    I need to use something like below

    < border tr = "1" >

    < class th = "header" align = "center" colspan = "2" > & SYSDATE1. < /th >

    < class th = "header" align = "center" colspan = "2" > & SYSDATE2. < /th >

    < class th = "header" align = "center" colspan = "2" > & SYSDATE3 < /th > < /tr >

    SYSDATE1

    SYSDATE2

    SYSDATE3 are elements of my page.

    Version: Apex 4.2

    Theme: Red Simple

    Report model: Standard, change the line colors

    Report type: report Classic

    Is it possible to use these elements in the specified model?

    Thank you

    Chauvet

    The ampersand/dot substition works in report models. https://Apex.Oracle.com/pls/Apex/f?p=3568966:1

    Maybe the page item values are not saved in session state, before the report is rendered.

  • SimpleDateFormat giving different results for the same string in the form

    I use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/i18n/SimpleDateFormat.html for formatting my date and time fields.

    I got a bug report that a device on English (UK) has a problem where the time turns off the screen, and I was able to reproduce this on device and Simulator.

    It's the pattern string that I use: hh:mma

    (hour 2 digits, colon, minute 2-digit and one letter for 'a' or 'p')

    English or r I get the result you want, for example 12: 12 p '

    "On English (UK), I get two letters for one / p marker, for example ' 12:12.

    (as if I had used 'hh:mmaa').

    What is the desired behavior? My client doesn't like it and wants a look and feel unique, with only one letter for 'a' or 'p', and I'm a little hesitatant to use aubstring...

    I usually do so, but our customer asked specifically localized to the date and time formatting.
    I have the model in my resource files, as the requested values are not easy to manage with the dateformat standard.

    Well, I have submitted comments on the entry of doc API, the doc is fake or the OS has a bug.
    I use substring if the string endsWith (am or pm) now...

  • How to use a String function Find() during a Test of a string value?

    Hello

    I intend to match a substring of the string returned by my USE when the use of a string value test - call of VI.

    I write the string returned for a string variable local (Locals.data_read) and tab limits - under the expected string value using Find (Locals.data_read, 'Connected'). When I check the expression to find errors - I get a warning "expected a string number found {comma floating 64}.» This value will cause a runtime error. »

    What Miss me?

    Thank you

    Kech

    Here is an example showing both.

  • Search for a string using "Game Plan" or "Regular Expression to Match."

    Hello

    I would use the 'game plan' or the vi "Expression regular game" simply because the products that provide these vi. The result that interests me is the substring 'after '. I want to be able to specify a "substring" and get everything after the substring of the input string. However, I'm getting all confused and/or watered upward when it comes to "regular expressions". Is there a way to create a "regular expression" which acts as a 'substring' to find within the input string?

    The substring is a path of partial directory that contains a colon, backslashes, etc. which are part of a directory path.  If some how the "regular expression" entry must ingnore all special characters and simply to understand if the substring in the string entry and give me 'all things' after the substring in the output of 'after the string.

    Use Regular Expression Match instead of match pattern; It's better.

  • Research in the string token.

    Hello world

    I was wondering if there is any VI that makes the function of finds a particular substring in a string and a Boolean value (True / False) as output. If found, to give a real. Cannot be found, give a fake.

    Thank you! ~

    You will not receive directly a BOOLEAN output, but for those kinds of requirements, there are different functions available and each of these functions is called 'Delay of game' (or 'offset last game' in some functions).

    Now based on the requirement, you can select any one of the following:

    1. chain of research/Split: (easiest and fastest function)

    2. model of correspondence: (powerful and slower)

    3. regular expression matching: (most powerful and slower)

    Now, when you use any of these functions if this particular exit 'Delay of game' (or 'offset last game' in certain functions) gives '-1' (negative 1), this means that the substring (token) is not found in the main chain, so a simple check will give you, your desired features.»

  • String.length (in 4.6.0 and later)

    I test my programs in the 4.6.0 and later of simulators and it seems that String.length () reports different values that are returned in earlier versions.

    For example, I have a string that indicates a length of 13 (the correct value) in the 4.0.x Simulator and a length of 14 to 4.6 and later simulators. I also tried to move the string into an array of char and a buffer with the same results.

    A search here didn't turn it... I could do wrong? Will there be a fundamental bug in its latest d/OS versions?

    LRM is a control character. It stands for "Left to right".

    Click on the link below:

    http://www.Microsoft.com/middleeast/msdn/control.aspx

  • What is the method of the String class's trim() in special cases?

    You are looking for here ( String (Java Platform SE 7) ), I understand that the method of the String class's trim() 'returns a copy of the string with white spaces of early and omitted end', but I don't understand what the last special case Unicode characters is exactly.

    You are looking for here ( list of characters Unicode - Wikipedia, the free encyclopedia ), I see that U + 0020 is a space character, and I also see the characters that follow the character space (for example, the exclamation point character).

    So, I decided to write a sample of the size of the code to try to reproduce the behavior that I quoted (from the documentation of the API of the trim method) in the comment from several line of this code even example. Here is the code example. :

    public class TrimTester {
    
        public static void main(String[] args) {
           
            /*
             * "Otherwise, let k be the index of the first character in the string whose code
             * is greater than '\u0020', and let m be the index of the last character in the
             * string whose code is greater than '\u0020'. A new String object is created,
             * representing the substring of this string that begins with the character at
             * index k and ends with the character at index m-that is, the result of
             * this.substring(k, m+1)."
             */
            String str = "aa!Hello$bb";
            System.out.println(str.trim());
        }
    }
    

    However, what is printed is "aa." «Hello bb$ "(without the quotes) instead of «!» "Hello$" (without the quotes).

    Any input to help me better understand what's happening would be greatly appreciated!

    Hallo,

    I think that the characters 'a' and 'b' both have greater than '\u0020' code, so your entire string is returned by the trim () - method, then the first character of the string whose code is superior to ' \u0020 has index 0, and the last character whose code is greater than '\u0020' a index 10. All printable characters have codes greater than 0020, try "\r\ntest". After trim(), you get 'test '.

    Regarding

    Rafal Z

Maybe you are looking for

  • Firefox supports the talkback screen reader?

    If the screen reader is supported, is it possible to download plugins to access such webvism for android?

  • Problem with subtitles on Toshiba 40VL748

    HelloI experienced some problems with subtitles. When I'm with DLNA subtitles appear not at all. Same subtitles for the same film display correctly when the file is run from a USB key. Someone managed to run subtitles using DLNA? And another question

  • iTunes Radio not on Apple TV

    Even though I know that Apple has abandoned the iTunes Radio on Apple TV for subscribers non - Apple Music, I'm actually a subscriber of Apple's music and the iTunes Radio app no longer appears on my Apple TV dashboard.  Is there something I need to

  • HP g6-2279wm: post format of Windows 8 for 7(64bit) driver support

    Hi all! My laptop has problems, and I wanted to change it back to Windows 7 for a while and took this time to go forward and make the chage. After finishing, I found that I didn't have the original drivers for the operational basics. I think these ar

  • Ultra Dock is Compatible with the standard T530?

    I wonder if the Dock Ultra really does not support any laptop any more. I have a T530 with Optimus graphics. I had a dock Mini Series 3 (pre - USB 3.0) for about 2 years and am looking for a get a dock for another office, I often use. Lenovo sells di