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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.