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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I have two tables. Date Table and Schedule. They are related by 'Date'[Date] and "Schedule'[Date Scedule Start]. I also have an inactive relationship between 'Date'[Date] and 'Schedule'[Date Schedule End'. I am looking for a solution to filter my table visual by using 'Date'[Date] but I want it to return if Date Schedule Start OR Date Schedule End fall into the range selected.
For example, in the screenshot below, if I select 'Date'[Date] 3/20/25 - 3/29/2025, I would like the highlight row to still be returned.
Sample data:
| Ticket # | Date Schedule Start | Date Schedule End |
| 179535 | 3/3/2025 | 3/7/2025 |
| 181212 | 3/3/2025 | 3/7/2025 |
| 181213 | 3/3/2025 | 3/7/2025 |
| 183831 | 3/3/2025 | 3/7/2025 |
| 183832 | 3/3/2025 | 3/7/2025 |
| 183833 | 3/3/2025 | 3/7/2025 |
| 185725 | 3/3/2025 | 3/7/2025 |
| 185725 | 3/3/2025 | 3/28/2025 |
| 185727 | 3/3/2025 | 3/7/2025 |
| 187396 | 3/3/2025 | 3/7/2025 |
| 187729 | 3/3/2025 | 3/7/2025 |
| 187890 | 3/3/2025 | 3/7/2025 |
| 196585 | 3/3/2025 | 3/7/2025 |
| 196586 | 3/3/2025 | 3/7/2025 |
| 196903 | 3/3/2025 | 3/7/2025 |
| 197543 | 3/3/2025 | 3/7/2025 |
| 197665 | 3/3/2025 | 3/4/2025 |
| 197825 | 3/3/2025 | 3/3/2025 |
| 197837 | 3/3/2025 | 3/4/2025 |
| 184945 | 3/4/2025 | 3/7/2025 |
| 184946 | 3/4/2025 | 3/7/2025 |
| 184947 | 3/4/2025 | 3/7/2025 |
| 196824 | 3/4/2025 | 3/5/2025 |
| 196825 | 3/4/2025 | 3/5/2025 |
| 183831 | 3/5/2025 | 3/5/2025 |
| 197829 | 3/5/2025 | 3/6/2025 |
| 197830 | 3/5/2025 | 3/6/2025 |
| 198078 | 3/5/2025 | 3/5/2025 |
| 183831 | 3/6/2025 | 3/6/2025 |
| 154434 | 3/7/2025 | 3/7/2025 |
| 196903 | 3/7/2025 | 3/7/2025 |
| 198179 | 3/7/2025 | 3/7/2025 |
| 168510 | 3/10/2025 | 3/14/2025 |
| 179535 | 3/10/2025 | 3/12/2025 |
| 183831 | 3/10/2025 | 3/14/2025 |
| 183832 | 3/10/2025 | 3/14/2025 |
| 183833 | 3/10/2025 | 3/14/2025 |
| 184945 | 3/10/2025 | 3/14/2025 |
| 184946 | 3/10/2025 | 3/14/2025 |
| 184947 | 3/10/2025 | 3/14/2025 |
| 185725 | 3/10/2025 | 3/10/2025 |
| 185725 | 3/10/2025 | 3/14/2025 |
| 185727 | 3/10/2025 | 3/14/2025 |
| 187396 | 3/10/2025 | 3/14/2025 |
| 187729 | 3/10/2025 | 3/12/2025 |
| 187890 | 3/10/2025 | 3/14/2025 |
| 189312 | 3/10/2025 | 3/14/2025 |
| 189313 | 3/10/2025 | 3/14/2025 |
| 190296 | 3/10/2025 | 3/14/2025 |
| 192209 | 3/10/2025 | 3/14/2025 |
| 194513 | 3/10/2025 | 3/14/2025 |
| 194514 | 3/10/2025 | 3/14/2025 |
| 194662 | 3/10/2025 | 3/14/2025 |
| 196585 | 3/10/2025 | 3/10/2025 |
| 197191 | 3/10/2025 | 3/14/2025 |
| 197218 | 3/10/2025 | 3/14/2025 |
| 198024 | 3/10/2025 | 3/14/2025 |
| 198065 | 3/10/2025 | 3/12/2025 |
| 198066 | 3/10/2025 | 3/12/2025 |
| 198067 | 3/10/2025 | 3/12/2025 |
| 198272 | 3/10/2025 | 3/11/2025 |
| 198273 | 3/10/2025 | 3/11/2025 |
| 198370 | 3/10/2025 | 3/12/2025 |
| 198371 | 3/10/2025 | 3/12/2025 |
| 198372 | 3/10/2025 | 3/10/2025 |
| 198372 | 3/10/2025 | 3/12/2025 |
| 183831 | 3/11/2025 | 3/11/2025 |
| 194662 | 3/11/2025 | 3/11/2025 |
| 198358 | 3/11/2025 | 3/14/2025 |
| 183831 | 3/12/2025 | 3/12/2025 |
| 190296 | 3/12/2025 | 3/12/2025 |
| 194579 | 3/12/2025 | 3/12/2025 |
| 194579 | 3/12/2025 | 3/13/2025 |
| 194580 | 3/12/2025 | 3/13/2025 |
| 194581 | 3/12/2025 | 3/14/2025 |
| 197191 | 3/12/2025 | 3/12/2025 |
| 197946 | 3/12/2025 | 3/14/2025 |
| 198372 | 3/12/2025 | 3/12/2025 |
| 187658 | 3/13/2025 | 3/19/2025 |
| 193138 | 3/13/2025 | 3/14/2025 |
| 193139 | 3/13/2025 | 3/14/2025 |
| 193140 | 3/13/2025 | 3/14/2025 |
| 196516 | 3/14/2025 | 3/14/2025 |
| 168510 | 3/17/2025 | 3/21/2025 |
| 185725 | 3/17/2025 | 3/21/2025 |
| 185727 | 3/17/2025 | 3/21/2025 |
| 186556 | 3/17/2025 | 3/21/2025 |
| 186557 | 3/17/2025 | 3/21/2025 |
| 187634 | 3/17/2025 | 3/21/2025 |
| 188746 | 3/17/2025 | 3/21/2025 |
| 190027 | 3/17/2025 | 3/21/2025 |
| 190028 | 3/17/2025 | 3/21/2025 |
| 190029 | 3/17/2025 | 3/21/2025 |
| 192988 | 3/17/2025 | 3/21/2025 |
| 195265 | 3/17/2025 | 3/21/2025 |
| 197191 | 3/17/2025 | 3/21/2025 |
| 197334 | 3/17/2025 | 3/17/2025 |
| 197466 | 3/17/2025 | 3/21/2025 |
| 197856 | 3/17/2025 | 3/21/2025 |
| 198068 | 3/17/2025 | 3/21/2025 |
| 197130 | 3/18/2025 | 3/18/2025 |
| 197131 | 3/18/2025 | 3/18/2025 |
| 194513 | 3/19/2025 | 3/19/2025 |
| 187683 | 3/20/2025 | 3/25/2025 |
| 196869 | 3/20/2025 | 3/21/2025 |
| 196870 | 3/20/2025 | 3/21/2025 |
| 196871 | 3/20/2025 | 3/21/2025 |
| 168510 | 3/24/2025 | 3/28/2025 |
| 185725 | 3/24/2025 | 3/28/2025 |
| 185727 | 3/24/2025 | 3/28/2025 |
| 185958 | 3/24/2025 | 3/28/2025 |
| 185959 | 3/24/2025 | 3/28/2025 |
| 185960 | 3/24/2025 | 3/28/2025 |
| 186556 | 3/24/2025 | 3/28/2025 |
| 186557 | 3/24/2025 | 3/28/2025 |
| 187634 | 3/24/2025 | 3/28/2025 |
| 190027 | 3/24/2025 | 3/28/2025 |
| 190028 | 3/24/2025 | 3/28/2025 |
| 190029 | 3/24/2025 | 3/28/2025 |
| 190559 | 3/24/2025 | 3/28/2025 |
| 190560 | 3/24/2025 | 3/28/2025 |
| 190623 | 3/24/2025 | 3/28/2025 |
| 190624 | 3/24/2025 | 3/28/2025 |
| 191350 | 3/24/2025 | 3/28/2025 |
| 191351 | 3/24/2025 | 3/28/2025 |
| 191352 | 3/24/2025 | 3/28/2025 |
| 192988 | 3/24/2025 | 3/28/2025 |
| 193600 | 3/24/2025 | 3/28/2025 |
| 194471 | 3/24/2025 | 3/28/2025 |
| 194472 | 3/24/2025 | 3/28/2025 |
| 195265 | 3/24/2025 | 3/28/2025 |
| 191522 | 3/25/2025 | 3/28/2025 |
| 191523 | 3/25/2025 | 3/28/2025 |
| 191524 | 3/25/2025 | 3/28/2025 |
| 195190 | 3/25/2025 | 3/26/2025 |
| 187706 | 3/26/2025 | 3/31/2025 |
| 196910 | 3/27/2025 | 3/27/2025 |
| 196912 | 3/27/2025 | 3/27/2025 |
Solved! Go to Solution.
Hi,
I have solved a similar question in the attached file.
Hope this helps.
I've applied everything to my file, but when adding the Calendar formula to my date table, it returns the error: 'A table of multiple values was supplied where a single value was expected.' My Date table is related to my data table, while yours is not. Should I create a separate Calendar table for this purpose, or is that not considered best practice? or is the error related to something else?
Also, your file is exactly how I want mine to function—thank you so much for providing it!
You are welcome. Please follow exactly what i have done. If there is no relationship in my file, then do not create it on yours.
I applied exactly what you have done and this works perfectly. Thank you so much!
You are welcome.
Measure=
Var DateRange= values( date[date] )
Var rowsinrange =
Calculate(
Countrows( schedule ),
Removefilters( date )
Schedule[date schedule start] in DateRange || schedule[date schedule end] in DateRange
)
Return
If( Rowsinrange > 0, 1)
Add this to the visual filters in the filter pane and filter to is not blank
| User | Count |
|---|---|
| 54 | |
| 39 | |
| 34 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 138 | |
| 102 | |
| 59 | |
| 36 | |
| 35 |