Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Prabha45
Helper III
Helper III

Bookmark dynamic slicer

I have a site slicer in main page where it shows the current month data and a bookmark where I can there is site and period slicer. I can select any year and month over here. Is it possible to show this period slicer dynamically previous month.
Example : If the current month is March, when I select the bookmark the period slicer should be Feb.

TIA

2 REPLIES 2
MAwwad
Solution Sage
Solution Sage

Yes, it is possible to show the previous month in the period slicer dynamically in Power BI. To do this, you can use a measure to calculate the previous month and use this measure as the default value for the period slicer.

 

Try

Previous Month = VAR CurrentMonth = MONTH(TODAY()) VAR CurrentYear = YEAR(TODAY()) RETURN IF( CurrentMonth = 1, DATE(CurrentYear - 1, 12, 1), DATE(CurrentYear, CurrentMonth - 1, 1) )

If I apply this measure, will I be able to select others months as well ?
Bookmark page dynamically should show previous month and also I should be able to select other months and years as well

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors