Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I have two tables, 'TeeTimes' and 'Closures' with data that I would like to compare.
The "Budget Tee Date" in the 'TeeTime' table to see if it falls between the 'Closure' tables "Close Date" and "Open Date". Then put the value of "Closure Type" from the 'Closure' table into the "Open/Close" column of the 'TeeTimes' table or simply the text value "Open" if no conflicts with the closures.
Department is a common field in both tables.
Table views
Relationship
Thanks in advance!
Solved! Go to Solution.
@dmgebauer Maybe:
Open/Close Column =
VAR __Dept = [Dept]
VAR __Course = [Course]
VAR __BudgetTeeDate = [Budget Tee Date]
VAR __Table = FILTER(ALL('Closures'), __BudgetTeeDate >= [Close Date] && __BudgetTeeDate <= [Open Date])
VAR __ClosureType = MAXX(__Table, [Closure Type])
VAR __Result = IF( __ClosureType = BLANK(), "Open", __ClosureType)
RETURN
__Result
@dmgebauer Maybe:
Open/Close Column =
VAR __Dept = [Dept]
VAR __Course = [Course]
VAR __BudgetTeeDate = [Budget Tee Date]
VAR __Table = FILTER(ALL('Closures'), __BudgetTeeDate >= [Close Date] && __BudgetTeeDate <= [Open Date])
VAR __ClosureType = MAXX(__Table, [Closure Type])
VAR __Result = IF( __ClosureType = BLANK(), "Open", __ClosureType)
RETURN
__Result
Close! but I will need to have the result based on the matching departments by each specific closure date range. Current formula seems to be applying a closure to all departments not the matching department.
Looks like it is working with this update
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 |
|---|---|
| 79 | |
| 48 | |
| 35 | |
| 31 | |
| 27 |