Data Import & Export

Fix Decimal Points Removed When Importing CSV Files in Power Query

Anum MushtaqAnum Mushtaq Oct 29, 2026 869 views

Question details

The user needs to prevent decimal points from being removed and dates from formatting incorrectly when importing CSV files via Power Query.

Fix Decimal Points Removed When Importing CSV Files in Power Query
Product
Microsoft Excel
Device & OS
not provided
Scenario
Importing CSV data into Power Query where the source system and the local computer have different regional locale settings.
Observed behavior
Decimal values like 31.7 are incorrectly imported as 317, and date formats are altered because the decimal separator and date format in the CSV do not match the computer's locale.
Before you start

Verify the original decimal separator (comma or period) used in your source CSV file by opening it in a basic text editor like Notepad. Ensure you know the exact region format the source data was generated in.

Solution 1Recommended

Change Data Type Using Locale in Power Query

Use the 'Using Locale' feature directly within Power Query to specify the origin region of the CSV file, ensuring decimals and dates are parsed correctly.

This is the safest method because it applies the correct regional parsing rules only to the specific column that needs it, without affecting the rest of your workbook or system settings.

1
Load the CSV file

Open Excel, go to the Data tab, and select 'From Text/CSV' to load your file into the Power Query Editor.

2
Select the affected column

Right-click the header of the column where decimal points are missing or dates are formatted incorrectly.

3
Change Type with Locale

Choose 'Change Type' from the context menu, then click 'Using Locale...' at the bottom of the list.

4
Set Data Type and Locale

In the dialog box, set the Data Type to 'Decimal Number' (or 'Date' for date columns) and choose the Locale that matches the CSV source (e.g., English (United States) if the CSV uses periods for decimals). Click OK.

Change Data Type Using Locale in Power Query
Locale Settings Applied: Power Query will now generate the appropriate M code to parse the column using the specified locale, preserving your decimal points.
Easy CSV Data Import

Seamlessly Import CSV Files with Custom Separators in WPS Office

Skip complex Power Query configurations. WPS Spreadsheet provides an intuitive Text Import Wizard that allows you to manually set the decimal and thousand separators during the import process, ensuring your data is always perfectly formatted regardless of your system's regional settings.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open a new or existing Spreadsheet document.
  2. 2. Start the Data Import: Go to the 'Data' tab on the ribbon, click 'Import Data', and select your CSV file from your computer.
  3. 3. Open Advanced Settings in Wizard: In the Text Import Wizard, choose 'Delimited' and proceed to the final step. Click the 'Advanced...' button.
  4. 4. Set the Separators: Specify the exact Decimal separator (e.g., a period) and Thousands separator used in your source file, then click OK and finish the import.
Instantly specify custom decimal and thousand separators upon importFully compatible with Microsoft Excel (.xlsx) and CSV formatsLightweight application with an intuitive, familiar user interfaceFree to use for daily data processing and formatting tasks
QA img-9

Frequently Asked Questions

Why do decimal points disappear when opening CSV files?

This happens when the CSV file uses a different decimal separator (like a period) than your computer's system regional settings (which might expect a comma). The spreadsheet software misinterprets the period as a thousand separator or ignores it entirely, changing a value like 31.7 to 317.

How can I check what separator my CSV file actually uses?

Right-click the CSV file on your computer and select 'Open with' > 'Notepad' (or another plain text editor). This allows you to view the raw text data and verify whether commas or periods are being used for decimals.

Does changing the locale in Power Query affect my overall system settings?

No. Changing the locale using the 'Using Locale' feature in Power Query or adjusting the workbook's regional settings in Query Options only affects how that specific data connection is parsed. It does not alter your Windows or macOS global regional settings.

How do I fix incorrect date formats imported from a CSV in Power Query?

Similar to fixing decimals, dates can be corrected by right-clicking the affected date column header in Power Query, selecting 'Change Type' > 'Using Locale...', setting the data type to 'Date', and picking the region that matches the CSV's date format (e.g., choosing a UK locale for DD/MM/YYYY formats).