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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.