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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
amalekshahi
Frequent Visitor

Relative Date Slicer - With some predefined date range

I need a date slicer with some predefined values:

  • Today
  • Yesterday
  • This month
  • Last month
  • Last 3 month
  • This year
  • Last year
  • Custom

Upon selecting any of these values, the from and to dates should be automatically set. Can this be done?

 

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi amalekshahi,

 

Put your date on slicer visual , and there is a dropdown arrow on the upper right corner of the visual. You can choose "Relative" . Then when you select the day, month ,year and numbers, the calendar slicer that you want will show.

 

3.png

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-xicai  but this is not the solution I was looking for. I am familiar with the relative option in date slicer but it isn't easy to use for beginners.

Hi @amalekshahi ,

 

Could you please share your sample data or desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Best Regards,

Amy

Hi @v-xicai ,

 

I took a screenshot from a CRM application we use. You can find it here.

Basically selecting any option (e.g. last 7 days) will set the from and to dates to current date - 7 days and current date respectively.

Also this filter will be set against the date dimension's date column.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors