Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Need to retain multiple spaces between 2 words as is from database

I am loading the data into BI from database through DB2 - ODBC connection . I can see spaces between words is getting automatically trimmed and by default it is coming as only 1 space for any data as below 

Data in DB :




Data in Power BI


Any suggestions to fix this ?


Super User
Super User


Yes if you are in Power Query (transform data). From "HOME"

Click on the column and choose Split Column and you can add a delimiter like choosing a space.




I didn't complete my response, sorry.

So do what I suggested. Then under TRANSFORM choose Merge Columns. Then choose Custom for delimiter.

When you put it in just hit your space bad 2X, for the double space you want to maintain.

Rename column from Merged back to the name you want. (F2 for renamimg column).


Here's a screenshot, where I added an extra space..




Thanks for your reponse, but unfortunately this will not work in my case . 
As I mentioned in the sample number of spaces between is not same for each row . 

HI ,


I dont want to split the column into multiple columns , I want the data to be in one column as is in database.

The above suggestion is splitting the column into multiple.


Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors