Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi!
I need to filter two columns by one given date. For example, I have registries with the columns "START_DATE" and "END_DATE", so by filtering by date it would return the registries which start_date is before the filter date, and the end date is after the filter date. In other words, I need the registries in which dates range is the date of the filter.
Is this possible to do with a date slicer? I have tried to create one and set both fields to filter, but it doesn't allow me to use the slider nor to set different options (greater than and smaller than) for each column. If not, how can I set a filter that allows me to do this?
Thanks! Regards!
Solved! Go to Solution.
Hi, @Fátima
You can try the following methods.
Sample data:
New table:
Date = CALENDAR(MIN('Table'[START_DATE]),MAX('Table'[END_DATE]))Measure =
IF ( SELECTEDVALUE ( 'Date'[Date] ) = BLANK (), 1,
IF ( SELECTEDVALUE ( 'Date'[Date] ) >= SELECTEDVALUE ( 'Table'[START_DATE] )
&& SELECTEDVALUE ( 'Date'[Date] ) <= SELECTEDVALUE ( 'Table'[END_DATE] ),
1,
0
)
)
Result:
Hope this method helps you.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Fátima
You can try the following methods.
Sample data:
New table:
Date = CALENDAR(MIN('Table'[START_DATE]),MAX('Table'[END_DATE]))Measure =
IF ( SELECTEDVALUE ( 'Date'[Date] ) = BLANK (), 1,
IF ( SELECTEDVALUE ( 'Date'[Date] ) >= SELECTEDVALUE ( 'Table'[START_DATE] )
&& SELECTEDVALUE ( 'Date'[Date] ) <= SELECTEDVALUE ( 'Table'[END_DATE] ),
1,
0
)
)
Result:
Hope this method helps you.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Fátima , refer to this example, it uses a date table, two dates
Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 47 | |
| 44 |