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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ERing
Post Partisan
Post Partisan

Is it possible to use "Between" date slicer to filter other date columns?

I have a new requirement that I'm struggling to overcome. I have data with three date fields/columns for each record (Begin_Date, Working_Date, End_Date). I have a between date slicer on Working_Date, allowing users to select a range.

What I need is a way to apply the slicer selections to the Begin_Date and End_Date. My criteria needs to be Begin_Date is < "first slicer selection" Working_Date and End_Date> "second slicer selection" Working_Date.

 

In the example below, the criteria would look like Begin_Date<10/1/2023 and End_Date >10/31/2023.


Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ERing ,

 

Sure.I made simple samples and you can check the results below:

vtianyichmsft_0-1704866217703.png

 

 

vtianyichmsft_1-1704866232015.png

Measure = var _strat = MIN('DimDate'[Date])
var _end = MAX('DimDate'[Date])
RETURN CALCULATE(COUNTAX('Table',[ID]),FILTER('Table',[Date]>_strat && [Date]<_end))

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @ERing ,

 

Sure.I made simple samples and you can check the results below:

vtianyichmsft_0-1704866217703.png

 

 

vtianyichmsft_1-1704866232015.png

Measure = var _strat = MIN('DimDate'[Date])
var _end = MAX('DimDate'[Date])
RETURN CALCULATE(COUNTAX('Table',[ID]),FILTER('Table',[Date]>_strat && [Date]<_end))

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Anonymous
Not applicable

Hi,

1. Create Measures for Slicer Selections:
MinSlicerDate = MIN(table[Working_Date])
MaxSlicerDate = MAX(Table[Working_Date])

2. Create Calculated Columns or Measures:

  • For the Begin_date:

Filtered_Begin_Date =
CALCULATE(
MAX(Table'[Begin_Date]),
'Table'[Working_Date] >= [MinSlicerDate]
)

  • For the End_date:

Filtered_End_Date =
CALCULATE(
MIN('Table'[End_Date]),
'Table'[Working_Date] <= [MaxSlicerDate]
)

3. Use the Filtered Dates in Visuals

@Anonymous I'm getting this message when trying to create the measure for Filtered_Begin_Date.

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