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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors