Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
68 | |
57 | |
55 | |
36 | |
34 |
User | Count |
---|---|
76 | |
73 | |
48 | |
45 | |
43 |