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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JBhaskar
Frequent Visitor

How Power BI Calender can display current year and previous year in start and end date

Hi All,

Please help me with a solution for the following scenarios, so that all my visuals and cards dynamically update based on the selected date range.

 

Scenario 1: Default Period Selection
My dataset calendar table contains dates from the year 2018 up to today.
I want to create a Custom Period section in the report that shows:

 

Current Period: with a Start Date and End Date

Previous Period: with a Start Date and End Date (one year before the current period)

When a user opens the report, the default selection should be as shown below

JBhaskar_0-1744479615576.png

Current Period:

Start Date: 01/01/2025

End Date: 12/04/2025 (today’s date)

Previous Period:

Start Date: 01/01/2024

End Date: 12/04/2024

 

Also user should be able to change any date from previous year (for example 2023 / 2024 etc ) in Current Period Start and End date and same for Previous Period Start and End date,

JBhaskar_1-1744615732481.png

Dates for year 2024 are Greyed out, this is the issue.
How can we get /select date of previous year's any date when my default slicer current period is Start date: 01/01/2025 and End date: Today date  

 

   

 

Scenario 2: User-Selected Periods could be any range
If a user wants to change the Current Period manually — for example:

 

Start Date: 25/10/2024

End Date: 24/11/2024

Then the Previous Period should automatically update to:

Start Date: 25/10/2023

End Date: 24/11/2023

All my visuals and cards and bookmarks should update dynamically based on the selected date range in Current and Previous period

 

Thanks & regards,

Bhaskar

1 ACCEPTED SOLUTION
v-hashadapu
Community Support
Community Support

Hi @JBhaskar , Thank you for reaching out to the Microsoft Community Forum.

 

Please refer the attached .pbix file and see if this works for you.

 

If this helped solve the issue, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details, always happy to help.
Thank you.

View solution in original post

5 REPLIES 5
v-hashadapu
Community Support
Community Support

Hi @JBhaskar , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @JBhaskar , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @JBhaskar , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @JBhaskar , Thank you for reaching out to the Microsoft Community Forum.

 

Please refer the attached .pbix file and see if this works for you.

 

If this helped solve the issue, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details, always happy to help.
Thank you.

lbendlin
Super User
Super User

Dynamic date ranges seem to be the new "i have to create my own calendar script".  Have your report users asked for this?  Could you cover this need with the standard filter pane, and conserve valuable screen real estate for visuals that help providing insights?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.