Reply
Syndicate_Admin
Administrator
Administrator
Syndicated - Inbound

Delete Line feeds in a column's data

Source Community: Power BI Spanish | Source Author Name: MatiasBI1986

Dear friends, how are you?

My question is this: I want to append two tables that have the same structures, but one column, specifically the Metric column, has an annoying "character" that apparently are line feeds that I don't know how to modify.

For example: I have the metric column of the Bolivia table and I see the following:

MatiasBI1986_0-1709298484473.png

Then the Chile column:

MatiasBI1986_1-1709298514425.png

How could I homologate them so that they have the same detail in such a way that when it comes to making the FILTERS with DAX, I don't have that inconvenience that I have a Value (List USD) or Units for Chile and another for Bolivia?

Thank you very much in advance.

Best regards!

2 ACCEPTED SOLUTIONS
3CloudThomas
Super User
Super User

Syndicated - Outbound

Here is some DAX code to do it in a calculated column or you could do something similar in PowerQuery

 

ColumnA = TRIM( SUBSTITUTE( RawColumn, UNICHAR(10), "" ) )

View solution in original post

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI Spanish | Source Author Name: MatiasBI1986
Syndicated - Inbound

Excellent! Your answer helped me a lot

Here's how I adapted your formula for my case:

Z_Métrica_Final = TRIM(SUBSTITUTE(TOTAL[Metric], UNICHAR(10), "" ) )
MatiasBI1986_0-1709300588176.png

Best regards!

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Source Community: Power BI Spanish | Source Author Name: MatiasBI1986
Syndicated - Inbound

Excellent! Your answer helped me a lot

Here's how I adapted your formula for my case:

Z_Métrica_Final = TRIM(SUBSTITUTE(TOTAL[Metric], UNICHAR(10), "" ) )
MatiasBI1986_0-1709300588176.png

Best regards!

Syndicated - Outbound

Great!!! please mark my answer as a solution 🙂

3CloudThomas
Super User
Super User

Syndicated - Outbound

Here is some DAX code to do it in a calculated column or you could do something similar in PowerQuery

 

ColumnA = TRIM( SUBSTITUTE( RawColumn, UNICHAR(10), "" ) )

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)