Forum Discussion

Rapaille's avatar
Rapaille
Helper I
1 year ago
Solved

Imported values have extra zeros

Hello,

 

I have a sharepoint list with a calculated column. The calculation works fine and the value shows well in the SharePoint list (1). After importing the data in Power BI the value gets extra zeros (2). What is going wrong?

 

Can someone help me with this?

 

Kind regards,

Hans

10 Replies

  • Gabry's avatar
    Gabry
    Super User

    Hello,

    are you sure it is correctly reading the point as a thousand separator and not as decimal?

    • Rapaille's avatar
      Rapaille
      Helper I

      I think so. There is no separator in the Power BI value.

       

      How can I check this?

       

      • Gabry's avatar
        Gabry
        Super User

        Changing data type with locale in power query

  • dilistimor's avatar
    dilistimor
    Regular Visitor

    Hello Rapaille 

    Since it is a calculated column, I suggest you transform the column to the right type.

  • christinepayton's avatar
    christinepayton
    Most Valuable Professional

    This is normal for SharePoint. SharePoint lets you choose to display it as a whole number in the list, but it doesn't physically change the data type in the list on the back end between decimal and whole number - it just shows it to the user differently depending on the setting. On the Power BI side, you can set the type in the toolbar in Power Query to whole number if you want it to be one there. 

    • Rapaille's avatar
      Rapaille
      Helper I

      Data type en format in Power BI is already whole number. Power BI shows also a whole number but while 3643 is the number in the SharePoint list, Power BI shows 364300000000000.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Rapaille 

     

    Thanks for the reply from Gabry, dilistimor, AntonioCarl and christinepayton .

     

    Rapaille , I found a post for your reference, which has a similar problem as yours, and the problem is caused by the delimiter. One of the solutions is:

     

    Solved: Wrong regional format in numbers from SharePoint l... - Microsoft Fabric Community

     

    Or you can refer to this blog:

    https://eriksvensen.wordpress.com/2018/07/02/powerquery-how-to-handle-different-decimal-separator-when-importing-csv-files/ 

     

    Best Regards,
    Yulia Xu

     

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

    • Rapaille's avatar
      Rapaille
      Helper I

      Thank you Anonymous, this is the solution for my issue.