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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.