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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Casey_Douthitt
Frequent Visitor

Custom Date-Range Filter Erasing Visualizations

I am looking for a way to get a custom date-range slicer filter similar to the following image: slicer.PNG

 


However, whenever I follow tutorials online, selecting a value from the filter results in the entire
graph dissapearing from the canvas. I have attached my report as well as my dataset. The relevant tables in the
relationships are 'Date Filter', 'DateTable', and the Sprint Table. The end goal is to be able to filter Sprint Start Date with the custom Date Filter.

 

Below is a picture of the relavant tables in my dataset.

 

diagram.PNG

 

Here is a link to the report: https://drive.google.com/file/d/11DG1ctb0ulzrewK7S00HDYe8HltACKVg/view?usp=sharing

 

Thanks In Advance,

Casey Douthitt

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Casey_Douthitt 

 

I wasn't able to open your PBIX file due to dataset permissions, I simply simulated some data to hopefully match your situation. You can try the following method.

Column:

Filter = SWITCH(TRUE(),
[Date]>=TODAY()-7,"Last 7 Days",
[Date]>=TODAY()-28,"Last 28 Days",
[Date]>=TODAY()-90,"Last 90 Days",
[Date]>=TODAY()-365,"Last 365 Days")

vzhangti_0-1652679393822.png

Select the slicer at this point and the data corresponding to the time range will appear.

vzhangti_1-1652679461722.png

 

Best Regards,

Community Support Team _Charlotte

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

 

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Casey_Douthitt 

 

I wasn't able to open your PBIX file due to dataset permissions, I simply simulated some data to hopefully match your situation. You can try the following method.

Column:

Filter = SWITCH(TRUE(),
[Date]>=TODAY()-7,"Last 7 Days",
[Date]>=TODAY()-28,"Last 28 Days",
[Date]>=TODAY()-90,"Last 90 Days",
[Date]>=TODAY()-365,"Last 365 Days")

vzhangti_0-1652679393822.png

Select the slicer at this point and the data corresponding to the time range will appear.

vzhangti_1-1652679461722.png

 

Best Regards,

Community Support Team _Charlotte

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

 

Casey_Douthitt
Frequent Visitor

Here are screenshots of the before and after of using the custom filterBefore.PNG

 

After.PNG

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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 Solution Authors