How can I extract text from a string

Hello,
I have a name column that has both first name and last name joined together as a string. I want to separate them in two different columns as firstname and lastname.
I use Report builder, please help with the query that will separate the string into two diferent columns.
Thanks

Hi sanjb12001,
Per my understanding that you want to separate a name column which contain the information of "First Name", "Middle Name", "Last Name" into three different column, right?
I have tested on my local environment and we have method to do this, one is do this in the query and Patrick Hurst
have already provide the solution, another method is to create three calculated fields using the split function in the expression to get the three new columns.
I assume you have the format like this in the name fields "FirstName MiddleName LastName", Details information about create the three columns for your reference:
 Right click the dataset and select the "Add Calculated Field" to add three fields "FirstName", "MiddleName", "LastName":
Using below expression to get the values for these fields:
FirstName:
=split(Fields!name.Value," ")(0)
MiddleName:
=IIF(split(Fields!name.Value," ").Length=3,split(Fields!name.Value," ")(1),"")
LastName:
=split(Fields!name.Value," ")(split(Fields!name.Value," ").Length-1)
Preview you will got the result:
If you still have any problem, please feel free to ask.
Regards
Vicky Liu

Similar Messages

  • How can i extract text from Power point files,wod files,pdf files

    hi friends,
    i need to extract text from the power point files,word files,pdf files for my application.Is it possible to extract the text from the those files .If yes plz give solution to this problem.i would be thankful if u givve solution to this problem.

    My reply would be the same.
    http://forum.java.sun.com/thread.jspa?threadID=676559&tstart=0

  • How do I extract text from an email?

    Hello!
    I am in the process of trying to automate orders from my website. How do I extract text from an email and paste it into specific cells in an Excel spreadsheet using Automator?
    Many thanks,
    Toby Bateson

    If you select the message on the Inbox list, or open the message, you can then go to the Message menu of Mail and select Remove Attachments.
    Bob N.
    Mac Mini 1.5 GHz; iBook 900 mHz; iPod 20 GB   Mac OS X (10.4.7)  

  • How can I extract text msg to a macbook

    how can I extract text messages from my iphone to a macbook??

    You do not.
    This is not a feature of the iPhone, iOS, or OS X.
    The message can be copied and pasted on the device to a note or email and emailed to yourself (or anyone).

  • HT201210 how can i retrieve texts from an earlier back up without changing all the other settings on my iphone?

    how can i retrieve texts from an earlier back up without changing all the other settings on my iphone?

    You can't. Restoring from a backup is all or none.
    You can use a utility such as this one to extract the messages from the backup on your computer but you can't re-transfer the messages to the Messages app on your iPhone.
    http://msb.macsupport-pr.com/

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How can i release text from a text box?

    How can I release text from a text box? I want the shape of the text box without the text in it.

    So all you need is to make a line around the text?
    For this you don't need to release the text box from the text. Just apply a stroke to it.

  • How can I print texts from iPhone4 to Canon MX870

    How can I print texts from iPhone4 to Canon MX870

    The following gives instructions. http://support.apple.com/kb/HT4517
    Note that your carrier may not support it or may have added charges.
    To use this feature, enable Personal Hotspot on your cellular data plan. Contact your carrier for information and pricing.

  • HOW CAN I IMPORT TEXT FROM MICROSOFT WORD TO THE WEB PAGE?

    HOW CAN I IMPORT TEXT FROM MICROSOFT WORD TO THE WEB PAGE?

    Another method is tosave your Word document as an a web page.  Then open the htm file, copy the text and paste into an HTML snippet on your web page.  Resize to show all the document and publish. It will retain the style, font and alignment of the original Word document.
    OT

  • How can i extract data from oracle table  to flat file or excel spread shee

    Hello,
    DB Version is 10.1.0.3.0
    How can i extract data from oracle table to flat file or excel spread sheet by using sub programs?
    Regards,
    D

    Here what I did
    SET NEWPAGE 0
    SET SPACE 0
    SET LINESIZE 80
    SET PAGESIZE 0
    SET ECHO OFF
    SET FEEDBACK OFF
    SET VERIFY OFF
    SET HEADING OFF
    SET MARKUP HTML OFF SPOOL OFF
    Sql> SPOOL bing
    select * from -------;
    SPOOL OFF;
    I do not see file.
    I also tried
    Sql> SPOOL /tmp/bing
    select * from -------;
    SPOOL OFF;
    But still not seeing the fie,

  • How can I extract image from complex (multycoloured0 background?

    How can I extract image from complex (multycoloured) shot?

    I would say either using the pen tool or the quick mask tool but without seeing how complex the image/background is I can't give you a complete answer...?
    Can you post the image?

  • How can I extract photos from my backup (5000+ photos) for free?

    How can I extract photos from my backup (5000+  photos) for free?

    eyal123 wrote:
    How can I extract photos from my backup (5000+  photos) for free?
    You cannot.
    Why are you opposed to paying for some software to help do what you want?
    You can restore the backup to your iPhone then sync the photos to your computer.

  • How can i copy text from web link title in safari

    Hi. How can i copy text to clipboard from web link title in safari in ios 7? Thank you
    Like this:
    http://photouploads.com/images/01wkw.jpg

    Once you have selected text, there will be blue circular buttons on the corners. Get the ones on the end and move them in towards the text that you want to copy. The problem that you seem to be facing where you are is that this text is a hyperlink. Because of that reason, you will have a difficult time tapping on the text without activating the link. I'm not sure you will be able to do that.

  • BootCamp driver won´t work on my MacBook. How can I extract it from DVD?

    Hi folks.
    I´m new on BootCamp.
    After installing Windows XP SPII, witch works fine for me, I tryed to install the BootCam drivers.
    But: The Leopard DVD won´t start - like in the manual How can I extract the Drivers from the
    Leopard DVD to copy them to the BootCam partition to install them manually?
    Thank you al lot!

    It is a known problem on Microsoft's end.
    From their site:
    "SYMPTOMS
    Microsoft Windows XP Service Pack 2 (SP2) cannot read DVD-RW disks that use the Universal Disk Format (UDF) 2.00 defect management system. When you view the DVD contents by using Windows Explorer, you see an empty... ...A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.
    To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:
    http://go.microsoft.com/?linkid=6294451"
    I posted this in reply to another thread:
    "It is a known Microsoft issue with UDF in some SP2 versions, and there is a hotfix for it.
    search for this in Google:
    "DVD-RW disks appear to be empty" hotfix
    You can do it 3 ways:
    1) If you run the Xp updater (which may take hours) and follow all the instructions, reboot and run the updater again... and again until all the updates are there, then you will get the fix.
    2) Find , download and install just the hotfix... it may take some looking...
    3) contact Microsoft from their site and get the hotfix from them. "

  • How can I extract images from Numbers?

    Sounds a bit stupid but how do you extract images from Apples 'Numbers 3' on a Mac?  I have a client that sends images in XLS files, that normally in Word I would Alt Click and 'save as...'
    I was trying to stop using Word but this simple little feature will make all the difference.
    Can anyone point me in the right direction.
    Thanks,
    Dave

    Hi Wayne,
    Thank you for your response.  Sadly if you do this it copies in to the MACs clipboard as a snap shot of the image at the dimensions in Numbers.
    Eg. 
    An image I've extracted from the document via Excel saved out at it's original dimensions 1024 x 300px, even though it was placed, then scaled down to 300px wide on the sheet.
    Same image copied then pasted in to an image editor (as I couldn't paste into finder) was only 300px wide.
    The feature I need is to be able to save out the original image placed in the Numbers sheet.
    Anyone with ideas on this?

Maybe you are looking for