Forum Discussion

Iwanicki's avatar
Iwanicki
Frequent Visitor
4 years ago
Solved

Locale settings should not affect CSV import

My team and I spent a lot of time figuring out why the decimal numbers imported from a CSV file are incorrect - the delimiter was gone and the values were "multiplied" by 100. First, we thought there...
  • AlexisOlson's avatar
    4 years ago
    The output of the M code should not be affected by application's settings.

    I disagree. The application settings govern how the input is interpreted. Under different interpretations, identical data means different things and the output should reflect proper meaning. Since a CSV file doesn't contain reliable locale metadata, there isn't a straightforward way for Power Query to magically know what interpretation you expect it to use unless you specify it in the code or in the application settings.