Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
I have a table with 2 date fields; one is "Contract Start Date" and the other is "Contract End Date". I have created a filter for "Contract Start Date" with criteria is on or before "DATE"; and another filter for "Contract End Date" with criteria is on or after "DATE".
Example:
The problem is I need to select the date twice everytime I change the date. Is there any way I can get one filter/slicer that filters my selection two different date columns (with different criteria - "Contract Start Date" is on or before "DATE"; "Contract End Date" is on or after "DATE") from the same table?
Solved! Go to Solution.
If you create a seperate date dimension table disconnected from the other tables in your model you can use that in your slicer to select a date or date range. Then you can create a measure to filter the report based on the selected date. E.g. something like
Date Filter =
VAR MinDate = MIN('Date Dim'[Date])
VAR MaxDate = MAX('Date Dim'[Date])
VAR ContractStart = SELECTEDVALUE('Contract Table'[Contract Start])
VAR ContractEnd = SELECTEDVALUE('Contract Table'[Contract End])
RETURN
ContractStart <= MaxDate &&
ContractEnd >= MinDate
Which should return TRUE if the date criteria are met.
If you create a seperate date dimension table disconnected from the other tables in your model you can use that in your slicer to select a date or date range. Then you can create a measure to filter the report based on the selected date. E.g. something like
Date Filter =
VAR MinDate = MIN('Date Dim'[Date])
VAR MaxDate = MAX('Date Dim'[Date])
VAR ContractStart = SELECTEDVALUE('Contract Table'[Contract Start])
VAR ContractEnd = SELECTEDVALUE('Contract Table'[Contract End])
RETURN
ContractStart <= MaxDate &&
ContractEnd >= MinDate
Which should return TRUE if the date criteria are met.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 107 | |
| 39 | |
| 33 | |
| 25 |