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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
computasian
New Member

CSV export erronously adding a leading apostrophe to negative numbers - bug resurfaced and solved

I'm using PowerBI Version: 2.142.928.0 64-bit (April 2025)

I have 2 CSV's with identical columns, some of which contain numbers, some of them negative.

 

When I do an append query to concatenate the two CSV's and the columns containing negative numbers are type TEXT, I see negative numbers showing up in the CSV string with the dreaded leading single apostrophe as follows:

...true,false,,,"","","","",1/24/2024,'-5

...true,false,11/27/2023,'-3,12/19/2023,11,"",""

 

When I change the data type of those columns to INTEGER, I see well behaved CSV strings with no weird leading apostrophes:

 

...false,false,,,"",,"",,1/24/2024,-5

...true,false,11/27/2023,-3,12/19/2023,11,"",

 

Not sure if there's something to be done here.

I wanted to document the weirdness of why/how that weird leading apostrophe was showing up (an error that seems to have been prevalent a few years ago) and how I fixed it, to perhaps prevent future generations of PBI'ers from gnashing their teeth. 

1 ACCEPTED SOLUTION
v-priyankata
Community Support
Community Support

Hi @computasian ,

 

Thank you so much for sharing this, This kind of post is incredibly valuable to the community. Definitely consider turning this into a blog post so others can benefit from your experience more easily

Power BI Community Blog - Microsoft Fabric Community

 

Please consider Accepting as solution to help the other members find it more quickly.

 

Thanks.

View solution in original post

1 REPLY 1
v-priyankata
Community Support
Community Support

Hi @computasian ,

 

Thank you so much for sharing this, This kind of post is incredibly valuable to the community. Definitely consider turning this into a blog post so others can benefit from your experience more easily

Power BI Community Blog - Microsoft Fabric Community

 

Please consider Accepting as solution to help the other members find it more quickly.

 

Thanks.

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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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
Users online (5,218)