Forum Discussion

ikhwan_tokenomy's avatar
ikhwan_tokenomy
Frequent Visitor
4 years ago
Solved

Handling large decimal number

Hi PowerBI Community

I am dealing with large decimal number. and receive this error message.
"
DataSource.Error: An error happened while reading data from the provider: 'Numeric value does not fit in a System.Decimal'
"

is there a way to fix this in power query? I don't want to exclude the data, I need to include them still. preferably not by reducing the decimal from the source

Thank you

6 Replies

    • Greg_Deckler's avatar
      Greg_Deckler
      Community Champion

      ikhwan_tokenomy I don't have Postgres to test with but I imported from a CSV file and it imports OK. However, when converting to decimal number it only has a decimal precision of 9 as shown in Power Query. However, once it loads into the table it has 19. Seems like the only way to preserve it would be to have it be Text.

  • vanpraetp's avatar
    vanpraetp
    Frequent Visitor

    Hi ikhwan_tokenomy and Greg_Deckler - I am experiencing exactly the same problem with a Postgres connection data import. Also dealing with a decimal number with a large amount of digits after the 'dot'. Also getting the error message "DataSource.Error: An error happened while reading data from the provider: 'Numeric value does not fit in a System.Decimal". Did you find a way to deal with this?