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
nataliesmiy1357
Helper IV
Helper IV

Custom Filter - DAX

Hello!  I am looking to create a date filter/measure/column with this criteria

Past 3 months data ( June 2024 - Today)

Past 6 months data ( March 2024 - Today)

Past 12 months data ( September 2024 - Today)

All data (January 2019 - Today)

 

Thanks in advance!

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @nataliesmiy1357 
You can use related date functionality of the date slicer to achieve it :

Ritaf1983_0-1726236339388.pngRitaf1983_1-1726236376249.png

Or to create the ranges slicer according to your needs, please refer the linked video guide:
https://www.youtube.com/watch?v=3SmHtNf0QQ0

If my answer was helpful please give me a Kudos and accept as a Solution.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Selva-Salimi
Super User
Super User

Hi @nataliesmiy1357 

 

one easy way that I recommend is to write a calculated column in your Dim_Date which can be written as follows:

 

Column =
var tday= today() return
calculate(DISTINCTCOUNT('Table'[month]), filter ('Table', 'Table'[month] >= EARLIER('Table'[month]) && 'Table'[date]<=tday))
 
If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly. 
Ritaf1983
Super User
Super User

Hi @nataliesmiy1357 
You can use related date functionality of the date slicer to achieve it :

Ritaf1983_0-1726236339388.pngRitaf1983_1-1726236376249.png

Or to create the ranges slicer according to your needs, please refer the linked video guide:
https://www.youtube.com/watch?v=3SmHtNf0QQ0

If my answer was helpful please give me a Kudos and accept as a Solution.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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