A CSV file can look right in a spreadsheet and still be read incorrectly by another program. One common case is a file that uses semicolons to separate columns and commas to write decimals. The value 12,50 means twelve and a half. With the wrong import settings, it may be read as text or split into two fields. Fix the interpretation in the preview before attaching the dataset to a model.
This lesson uses a four-row synthetic file so you can check every value. It covers what a file says and how the app reads it. Whether a survey question was asked or coded correctly is a separate data-quality check.
Read the file once before opening it in the app
Paste the following text into a plain-text editor and save it as service-semicolon-decimal-comma.csv. If you are checking a real export instead, open an untouched copy in a plain-text editor. Spreadsheet apps sometimes display or silently convert values according to their own regional settings.
case_id;wait_minutes;change_minutes;quality_1;satisfaction_1
R101;12,50;-2,25;4;5
R102;8,75;0,00;3;4
R103;15,20;1,50;;3
R104;10,00;-0,50;5;5
Check the first line. There are five field names, separated by semicolons. The comma inside 12,50 belongs to one number. Row R103 has nothing between two semicolons for quality_1, and that missing answer should stay missing. By contrast, the zero in change_minutes for R102 was recorded as a value. You should finish with four observations, not five: the heading row is not a respondent.
Open the import preview and match it to the file
- In a writable QuickPLS Pro project, choose File → Import Data… (Ctrl+I), then Choose data file…. Open your practice CSV.
- In Review & import, check Input represents and choose raw data for this case-by-column file. Use header row 1. If a real export begins with a title or metadata, identify where the actual heading row begins rather than treating the title as a column name.
- Check the column separator and Decimal convention against the text file. If your dialog offers semicolon and decimal-comma choices, use those for this example. If those choices are unavailable, or the preview still fails the checks below, use the normalised copy in the next section. Keep the original.
- Compare the preview to the first source row. Expect
R101to occupy one field alongside numeric 12.50, −2.25, 4 and 5. The number of trailing zeros shown can vary; 12.5 and 12.50 represent the same value. - Check the variable names and data types. Keep
case_idas an identifier when using the resulting data; it should not enter a measurement block. Check that the time fields are numeric and that signs and values are intact. The official data-preparation guide documents the preview fields and verification steps.
The failure can be visible in more than one way. If a semicolon file is read with a comma separator, the header can appear as one long field while data rows split inside values such as 12,50; an app might flag inconsistent field counts rather than showing a neat table. If the separator is right but the decimal convention is wrong, you might see five correctly named columns and still have a bad numeric import. Check a real value in every measurement column rather than relying on the heading count alone.
Use a normalised copy if the original dialect is awkward
For the exercise, save this equivalent text as service-comma-decimal-dot.csv. Then choose a comma separator and Dot (1.25), the convention illustrated in the QuickPLS first-study walkthrough.
case_id,wait_minutes,change_minutes,quality_1,satisfaction_1
R101,12.50,-2.25,4,5
R102,8.75,0.00,3,4
R103,15.20,1.50,,3
R104,10.00,-0.50,5,5
For a real survey, re-export a working copy with an explicit delimiter and decimal convention using a tool that reads the original files correctly. Avoid a global search and replace: a free-text answer can contain a comma or semicolon as punctuation, and a quoted field needs to remain intact. Keep numbers numeric and verify how the exported file displays blanks and identifiers. Re-exporting is a formatting change; it should not change the recorded measurements.
Check the imported table, even if the app reports success
Choose Import dataset only when the preview makes sense. When the app reports Dataset imported and verified, confirm four cases and the same five column names. In a longer study, compare those counts to the source extract, scan for repeated headings or unwanted blank rows, and spot-check ordinary as well as awkward values. Repeated column names make it hard to tell which variable reached the model; use the data dictionary to verify their meaning before renaming them in a revised file.
For this exercise, find all three of these checks:
| Check | Expected observation |
|---|---|
| Negative decimal | R101's change is −2.25, not +2.25 or −225. |
| Decimal magnitude | R104's change is −0.50, not −50 or a text code. |
| Blank versus zero | R103's quality answer is blank; R102's recorded change is zero. |
If any check fails, fix the import setup or the working copy, then re-import before using the dataset. Note the file name, delimiter, decimal convention and expected dimensions, so a colleague can repeat the import. Investigate a missing value before deciding how the analysis should handle it. A successful import establishes that the file could be read, not that every row qualifies for a particular calculation.