Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
doubles
Helper I
Helper I

Keep trailing spaces when loading model

I have a dataset that has a field with a lot of trailing spaces -- when I load the data to the desktop, it seems like it automatically trims the trailing spaces. I know its somewhat unusual, but I need to keep them -- is there a way to do that?

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @doubles,

 

By my tests, we may not keep the trailing spaces when loading the data. It will only load the space before the character or the space between the characters.

 

You could submit your idea in Power BI ideas Forum.

 

As a workaround, if you have the same trailing space, you could use dax to add the space.

 

Capture.PNG

 

Here is an attachment you could refer to.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @doubles,

 

By my tests, we may not keep the trailing spaces when loading the data. It will only load the space before the character or the space between the characters.

 

You could submit your idea in Power BI ideas Forum.

 

As a workaround, if you have the same trailing space, you could use dax to add the space.

 

Capture.PNG

 

Here is an attachment you could refer to.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, yes -- I did end up using DAX to add the spaces.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.