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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
AileenIsagani
Regular Visitor

Date Filter

 My report deals with 3 months before and 3 months after with no specific date to make the report automatic. Is there a date filter for that. as relative filter only consist of is in the next, in the last and in this.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AileenIsagani , Create a column in date table and use it in slicer of page level filter

 

if([Date]>= eomonth(today(),-4)+1 && [Date]<= eomonth(today(),3),"Three in Past and three next", "Other months")

 

You can try "preselected slicer" custom slicer, that will allow measure to default the value

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @AileenIsagani ,

If I understand correctly, the issue is that you want to filter the date. Please try the following methods and check if can solve your problem:

1.Create a new measure. Enter the following DAX formula.

Date Filter = 
VAR Today = TODAY()
VAR ThreeMonthsBefore = EOMONTH(Today, -3) + 1
VAR ThreeMonthsAfter = EOMONTH(Today, 3) + 1
RETURN
    FILTER('Table', 'Table'[Date] >= ThreeMonthsBefore && 'Table'[Date] <= ThreeMonthsAfter)

2.Drag the measure into the filters.

 

If the above ones can’t help you get it working, could you please provide more raw data(exclude sensitive data) with Text format to make a deep troubleshooting? It would be helpful to find out the solution.

 

Looking forward to your reply.

Best Regards,

Wisdom Wu

amitchandak
Super User
Super User

@AileenIsagani , Create a column in date table and use it in slicer of page level filter

 

if([Date]>= eomonth(today(),-4)+1 && [Date]<= eomonth(today(),3),"Three in Past and three next", "Other months")

 

You can try "preselected slicer" custom slicer, that will allow measure to default the value

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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