March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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.
Solved! Go to Solution.
Hi @ERing ,
Sure.I made simple samples and you can check the results below:
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.
Hi @ERing ,
Sure.I made simple samples and you can check the results below:
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.
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]
)
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |