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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Kirt1965
Helper III
Helper III

Prevent exported text column from removing leading zeros

Hello all,

 

We have text columns containing employee IDs.  Frequently those begin with leading zeros.  The leading zeros are removed upon exporting to Excel csv file.  Is there any way to force retaining the leading zeros?

 

Thank you,

Kirt

1 ACCEPTED SOLUTION
Anonymous
Not applicable

This behavior was noticed in the desktop export only.  Once you publish to Power BI Service the data types should be respected and the export will function as expected.  Alternative is to use paginated reports which will provide unlimited rows export as well as a subscription option to deliver the report attached to an email.

HTH,

Smitty

View solution in original post

4 REPLIES 4
Pragati11
Super User
Super User

Hi @Kirt1965 ,

 

There is an existing thread on this:

https://community.powerbi.com/t5/Desktop/How-to-Stop-Power-BI-from-Removing-Leading-Zeros/m-p/101609...

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

I read that thread before posting.  It was unrelated to the issue I was seeing.

Anonymous
Not applicable

This behavior was noticed in the desktop export only.  Once you publish to Power BI Service the data types should be respected and the export will function as expected.  Alternative is to use paginated reports which will provide unlimited rows export as well as a subscription option to deliver the report attached to an email.

HTH,

Smitty

Thank you, Smitty.  This was indeed the problem.  Appreciate it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors