Forum Discussion

ktt777's avatar
ktt777
Helper V
6 years ago
Solved

Loading data into powerbi

hi , 

 

How can i load data into power bi as text : example  0090015?

the first 3 record in my data loaded , it trim the first 2 zero

 

Here is the link to my file 

 

https://1drv.ms/x/s!ApIDnMK2eKiFgQcBMkuQB3U0lybN?e=uigm9J

 

thanks 

8 Replies

  • ktt777 , check the data type. It should be text. Change it in Data Transformation mode /edit query mode.

    • ktt777's avatar
      ktt777
      Helper V

      when i change to text, it trim the first 2 zeros

      • amitchandak's avatar
        amitchandak
        Super User

        ktt777 , OPen data transformation mode, Right-click on Table. Open Advance editor.

        It should have a data type there. Is the the data type is text and it is still removing leading 0 ?

  • Try to select that column and change it's format to Text.

     

  • Hi,

     

    You can add a Custom column as 

    Leading zeros = Text.PadStart(Number.ToText([Column2]),7,"0")

    It should resolve your problem.

     

    Thanks