Forum Discussion

shylomathew's avatar
shylomathew
New Member
3 years ago

removing random spaces

how can i remove random spaces between '-' and numbers?

Example of unclean data that i have -

-           5
-   3
-              56
-                                 87

4 Replies

  • m_alireza's avatar
    m_alireza
    Solution Specialist

    Hi shylomathew ,

    Open Power Query Editor

    Right click on the column > Replace Values


    in Value to Find, enter the space bar
    in Replace with, dont put anything. 
    Click ok.
    The spaces should be gone now

    • shylomathew's avatar
      shylomathew
      New Member

      Did not work as the spaces are not in the beginning or end. And it is not control characters, too