Sub topic 5
Loading a Sample Dataset with Get Data
This chapter assumes Power BI Desktop is installed and has opened to its start screen. You should also be comfortable with Excel workbooks or CSV files. You will load a small sales file and check that it arrived correctly.
What Get data does
Get data is the entry point for bringing external data into a report. Power BI Desktop connects to a source, shows a preview, and then either loads the data into the model or sends it to Power Query Editor for cleanup. Loaded tables are stored inside the report file, so the report works without the original source being open.
The Home ribbon has a Get data button. The start screen also offers a shortcut for common sources such as Excel workbook, Text/CSV, and SQL Server.
Prepare a sample file
Create a file named sales.csv with this content and save it somewhere you can find it.
OrderID,OrderDate,Product,Region,SalesAmount
1001,2026-01-05,Notebook,East,120.50
1002,2026-01-06,Pen,West,15.00
1003,2026-01-09,Notebook,West,98.25
1004,2026-01-12,Backpack,East,210.00
1005,2026-01-15,Pen,East,22.75Load the file
- On the Home tab, select Get data, then choose Text/CSV. You can also choose it from the start screen.
- Browse to
sales.csvand select Open. - Review the preview window. Power BI Desktop shows the detected file origin, the delimiter (a comma here), and the first rows.
- Select Load.
The other button, Transform Data, opens Power Query Editor first. Use it when the data needs cleaning before it enters the model. A later chapter covers it.
Confirm the load worked
After loading, the Data pane on the right lists a table named sales with its columns. Expand it to see them. Each column has an icon that shows the type Power BI Desktop detected. SalesAmount shows a sigma symbol, which means it is numeric and will be summed by default.
Check three things:
- The table name appears in the Data pane.
- All five columns are listed.
OrderDatehas a date icon, not a text icon.
If a type is wrong, you can fix it later in Table view. The next chapters cover that.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Preview shows one wide column | Wrong delimiter detected | Change the Delimiter drop-down in the preview window |
| Accented characters look garbled | Wrong file origin (encoding) | Change File Origin, for example to UTF-8 |
| Dates load as text | Date format not recognized | Use Transform Data to set the type, or set the locale |
| File cannot be opened | File is open and locked in another program | Close the file and try again |
Load versus Import mode
For files like this one, Power BI Desktop uses Import mode. It copies the data into the report. Changes to sales.csv do not show up until you select Refresh on the Home tab. Some database sources offer DirectQuery instead, which queries the source live, but file sources do not.
Exercise
You select Get data, choose your CSV file, and see the preview with every row squeezed into one column. Which part of the preview window do you change, and why does Load not fix this?
Show answer
Change the Delimiter drop-down in the preview window so it matches the file's separator, for example comma or semicolon. Load only copies what the preview shows, so a wrong delimiter produces a one-column table in the model.
Exercise
You edit sales.csv and add a sixth order while the report is open. What must you do to see it, and why?
Show answer
Select Refresh on the Home tab. The data is imported into the report, so it is a snapshot until you refresh.