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
FilipaPereira
Frequent Visitor

Filter with two dates

I have a dashboard based on this table and I need a date filter that filters the data between the start date and the end date.
The start date and end date are different columns.
Is it possible to have a filter between these two dates?

 

FilipaPereira_0-1767796842955.png

 

 

 

 

 

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

See if my solution in the attached file helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
VijayP
Super User
Super User

@FilipaPereira 

 

using Selectedvalue funciton you can achieve this. Find attached the file which might help you




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


cengizhanarslan
Solution Sage
Solution Sage

Yes, this is possible, but it can’t be done with a standard date slicer alone because slicers work on one date column at a time. You need to model the logic explicitly.

 

Use one Date table and check whether the selected date range overlaps your Start/End dates.

1) Create / use a Date table

Mark it as a Date table.

2) Create a measure

In Date Range =
VAR MinSelDate = MIN ( 'Date'[Date] )
VAR MaxSelDate = MAX ( 'Date'[Date] )
RETURN
IF (
    MAX ( Fact[StartDate] ) <= MaxSelDate
        && MAX ( Fact[EndDate] ) >= MinSelDate,
    1,
    0
)

3) Use it

  • Put 'Date'[Date] on a Between slicer

  • Add In Date Range = 1 as a visual-level filter

This keeps rows where the date interval overlaps the slicer selection.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn

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.