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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
doubles
Helper II
Helper II

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.