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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Date Filter With Overlapping Dates

I am trying to create a slicer that allows you to push a button to select a specific date range. There will need to be overlapping date ranges so the most recent date will be shown as part of Yesterday, This Month and This Week.

UnivexBrad_0-1707193685015.png

 

At the moment I have created a custom table that sets a label to a date, but I can't get the system to filter the Calender table based on the Date Reference as this is a One to Many relationship that is constantly being swapped to a Many to One relationship so I can either filter in the wrong direction or run the filter in both directions.

UnivexBrad_2-1707193966863.png

 

Is there a way to get the system to do a single direction filter on a One to Many relationship, or am I approaching this in completely the wrong way and there is a better system to create the filter I want?

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Anonymous,

 

A calculation group would be a good option. You could create five calculation items, one for each slicer value. Here's an article on how to create them:

 

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-model-explorer-with-calculation-group-authoring-and-creating-relationships-in-the-properties-pane/ 





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

@Anonymous,

 

A calculation group would be a good option. You could create five calculation items, one for each slicer value. Here's an article on how to create them:

 

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-model-explorer-with-calculation-group-authoring-and-creating-relationships-in-the-properties-pane/ 





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

Proud to be a Super User!




Anonymous
Not applicable

Thanks,

I didn't know that calculation tables existed. They are exactly what I was looking for.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors