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
Hello,
I have a table that have date start and date end
I have a date filter
I want to filter rows that have have at least one day in the date range
Is there something wrong with the logic, here?
Solved! Go to Solution.
Hi @Mumin192
please try
Measur =
CALCULATE (
DISTINCTCOUNT ( work_sessions_processed[user_id] ),
FILTER (
work_sessions_processed,
VAR StartDate = work_sessions_processed[date_start]
VAR EndDate = work_sessions_processed[date_end]
VAR Dates1 =
CALENDAR ( StartDate, EndDate )
VAR Dates2 =
VALUES ( 'Calendar'[Date] )
RETURN
NOT ISEMPTY ( INTERSECT ( Dates1, Dates2 ) )
)
)
Hi @Mumin192
please try
Measur =
CALCULATE (
DISTINCTCOUNT ( work_sessions_processed[user_id] ),
FILTER (
work_sessions_processed,
VAR StartDate = work_sessions_processed[date_start]
VAR EndDate = work_sessions_processed[date_end]
VAR Dates1 =
CALENDAR ( StartDate, EndDate )
VAR Dates2 =
VALUES ( 'Calendar'[Date] )
RETURN
NOT ISEMPTY ( INTERSECT ( Dates1, Dates2 ) )
)
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |