When you refresh the dataset, Power BI doesn't connect to the file on the local drive to query for updated data. Power BI uses information in the dataset to connect directly to the data sources, query for updated data, and then load the updated data into the dataset.