This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 22 |