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

The Fabric community is now in read-only for platform upgrade. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.