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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ERing
Helper V
Helper V

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
v-tianyich-msft
Community Support
Community Support

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
v-tianyich-msft
Community Support
Community Support

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.

LokambaTH
Helper I
Helper I

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

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.