Rather than refreshing the entire extract each time, we can configure a refresh to add only the rows that are new since the previous refresh:
- Create a data source using a Text file connection to madrid_2017.csv.
- Select the Extract radio button and click on Edit:
- Select All rows under Number of Rows to extract:
Incremental refresh can only be defined when you are extracting as Single table with the All rows in database.
- Select Incremental refresh and then specify a column that identifies new rows:
- Click on OK and save the .hyper file:
- Click on Sheet 1 and give the extract a name:
These steps can be used for new or existing extracts. When editing an existing extract, the last refresh is shown.
- To verify the latest date loaded, add Date to the Columns shelf.
- Show the maximum value by right-clicking on Date, choosing Measure, and then selecting Maximum:
- Save the workbook and close Tableau.
- To simulate the incremental load, copy all the data from Nov.csv and paste it at the end of madrid_2017.csv. Save the file.
- Open the workbook and click on Refresh:
- Go back to Sheet 1, we now see November 30 as the Max. Date: