In the following screenshot, a Power BI Desktop file containing an import mode dataset has been uploaded to a OneDrive for Business folder:

Selecting the ellipsis (three dots) exposes several file options including Version history. As changes are implemented and saved in the PBIX file, such as a revised DAX measure or a new M query, the updated PBIX file could be uploaded to OneDrive for Business. Given the same name as the existing file, OneDrive for Business will require the user to confirm that the file should be replaced, as illustrated in the following screenshot:

Once the replacement is confirmed, only the new file is accessible from the folder but the prior file and other versions of the file are still accessible via Version history. As shown in the following screenshot, the Version History window makes it easy to view the history of changes to a file and to restore an earlier version:

In this example, selecting the ellipsis (three dots) for the Version 1.0 row exposes three file options, including Restore. Selecting Restore creates a new version (Version 4.0), which is an exact copy of the file restored. This restored file replaces the current file accessible in the OneDrive for Business folder. Finally, from the standard folder view in OneDrive for Business, the Download option displayed in the first image of this section can be used to retrieve the restored PBIX file.