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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Export to CSV does not remove line breaks

Good afternoon, everyone,

I have in my sales table a column called "Description". In this column users place some observation about the sale. The issue is that they make line breaks. To visualize these observations in a table I need to remove those line breaks and for this I use the function:

Detalle = SUBSTITUTE('facturas todas'[Descripcion],UNICHAR(10),"- ")


My problem is that when I export it to .csv these line breaks are still respected and do not appear already concatenated between two commas. As if the function did not move to export.

How can I do so that the whole description appears between 2 commas in the export and does not make line breaks?


1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

There might be both carriage returns and line feeds in the column.  Does this fix it?

Detalle = SUBSTITUTE(SUBSTITUTE('facturas todas'[Descripcion],UNICHAR(10),"- "),UNICHAR(13),"- ")

UNICHAR(13) is carriage return

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thank you very much, you solved it!

Big hug

jdbuchanan71
Super User
Super User

There might be both carriage returns and line feeds in the column.  Does this fix it?

Detalle = SUBSTITUTE(SUBSTITUTE('facturas todas'[Descripcion],UNICHAR(10),"- "),UNICHAR(13),"- ")

UNICHAR(13) is carriage return

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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