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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
filipebarros
Frequent Visitor

How to copy table with Leading zeros and more than 25 characters to Excel?

Hi, I have an pbi file that is used to update a report, then I get an table from this pbi and use the "COPY TABLE" to paste into an Excel file that is used to be the prime table of 4 reports . But when I copy the table , some information like leading zeros of a column for example "0502021" is only pasted like "502021" in the Excel File, then i have to select this column and copy only it, then it works and it´s pasted like "0502021". But now I have others columns with this problem , and I don´t want to have to copy every column, is there a Way to copy in the right format? The columns are already in Text formatt.
Thank you.

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @filipebarros 

 

Based on your description, I created data to reproduce your scenario.

Test:

b1.png

 

You may change the data type for the specific column as 'text' in 'Query Editor' . If it is set as 'number' data type, it will display in the number format which doesn't start with 0.

b2.png

 

b3.png

 

Result:

b4.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hey @filipebarros

 

Go onto Query Editor and ensure you don't have the "Change Type" step after source and navigate.

Karlos_0-1596030328895.png

If you have that, just click the x on the left-hand side. 

 

Also, if you want to stop this from happening in the future, you can go onto the settings and check the following: 

Karlos_0-1596030666167.png

 



amitchandak
Super User
Super User

@filipebarros , Try like this. Make sure they are text in power BI. COpy in excel. Make them as text column and copy paste again on top of it.

 

refer: https://www.youtube.com/watch?v=1_XlyzV-PcY

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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