Forum Discussion

AymanHanash's avatar
AymanHanash
Qrew Trainee
3 years ago

How To remove carriage return from Multi-Line text field

Hello,

I have searched for this subject and found 1 post with 0 responses.  

I'm pulling in info from QB using Power Query, a Multi-line text field is not pulling at all when there

are multiple lines created using a carriage return / line feed.  Is there a function similar to CLEAN (instead of TRIM)? or how can I replace the non visible carriage return using another text formula field (without taking the table down clean it and re-uploading)

thanks,



------------------------------
Ayman Hanash
------------------------------

7 Replies

  • Try this as a formula text field.

    SearchAndReplace([My multi line text field], "\n", " ")

    That says to replace any carriage returns with a space.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
    • AymanHanash's avatar
      AymanHanash
      Qrew Trainee
      Mark, Thanks,  "\n" did the trick....

      ------------------------------
      Ayman Hanash
      ------------------------------
    • AymanHanash's avatar
      AymanHanash
      Qrew Trainee

      Hey Mark,

      the "\n" helped with some lines, but other lines power query didn't pickup, are there any other invisible 

      characters aside from the carriage return?  



      ------------------------------
      Ayman Hanash
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        You might try to copy and paste the result into some kind of notepad type app (not Word) to try to see what is really there.

        ------------------------------
        Mark Shnier (YQC)
        mark.shnier@gmail.com
        ------------------------------