Forum Discussion
sr97
1 year agoFrequent Visitor
Update date-slicer in bookmark automatically
Hi all, Is there a way to update the date-slicer in a bookmark automatically to the most current date in a excel-file? When i say most current date, i mean the latest date in a excel-file ( and ...
46
1 year agoRegular Visitor
Hi sr97
To auto-update a Power BI bookmark's date slicer to the latest date in an Excel file from a SharePoint folder:
- Connect to SharePoint:
- Get Data > SharePoint Folder, filter to .xlsx, sort by Date modified (descending), keep top 1 file, load data.
- Get Latest Date:
- Create DAX measure: LatestDate = MAX('Table'[RecordDate]).
- Set Up Slicer:
- Add slicer for RecordDate, sort descending, single-select.
- Update Bookmark:
- Select latest date in slicer, update "Remove Filters" bookmark to capture slicer state.
- Assign bookmark to button.
- Automate Refresh:
- Publish to Power BI Service, set up scheduled refresh with SharePoint credentials.
Test: Upload new Excel file, refresh dataset, click "Remove Filters"—slicer should show latest date.
Note: Slicers can’t dynamically default to measures. For dynamic control, consider a helper table with a "Latest" option (ask for details if needed).
If this solution works for you, mark it as ACEPTED — that way, other users with the same question can benefit from it as well.