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
manoj_0911
Advocate V
Advocate V

How to Create Predefined Date Filters in Power BI Without Manual Slicer Adjustments?

How to Create Predefined Date Filters in Power BI Without Manual Slicer Adjustments?

 

Hello Power BI Community,

 

I would like to create a set of predefined date filters in Power BI, such as:

 

- "Today"
- "Yesterday"
- "This Week"
- "Last Week"
- "This Month"
- "Last Month"
- "This Quarter"
- "Last Quarter"
- "This Year"
- "Last Year"
- "Custom Range"

 

My goal is for users to easily select one of these predefined date ranges from a slicer or dropdown, without having to manually adjust the date slicer for each report view.

 

I want to avoid manual date selection in a date slicer and instead provide these preset options for quick filtering. Additionally, I'd like to have a "Custom Range" option where users can manually select dates if needed.

 

What is the best way to implement this in Power BI?

 

Thank you for your support!

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @manoj_0911 ,

You need to get the start and end dates for each period type  and then generate rows of dates using that information. Also, I don't see a difference between all time and custom. If custom,  ill just show all dates and let user select a range from a slider which can me it is either custom or all time. The generated rows of dates are t hen related to the actual dates table. You can use a measure as well to filter a visual but you'll need to reference this measure in other measures if the dates are not included in a viz. Please see attached pbix. 

danextian_0-1726665402575.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @manoj_0911 ,

You need to get the start and end dates for each period type  and then generate rows of dates using that information. Also, I don't see a difference between all time and custom. If custom,  ill just show all dates and let user select a range from a slider which can me it is either custom or all time. The generated rows of dates are t hen related to the actual dates table. You can use a measure as well to filter a visual but you'll need to reference this measure in other measures if the dates are not included in a viz. Please see attached pbix. 

danextian_0-1726665402575.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors