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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have data from two tables that I am trying to use to get one date. One table is an audt trail table that holds the date(s) a record was closed (or re-closed). I have filtered only the activities I want to use in Power Query.
The audit trail table has the following:
The other table is my CAPA table and has the following:
Here is what I am trying to do via DAX, I want to create a clousre date where we use the earliest date from the Date Performed field from the audit trail table when that date is > Overall Completion Date field.
Any ideas how to do this?
Solved! Go to Solution.
assuming tables linked on id field and the capa table is a Dimention.
mClosure:=
CALCULATE(MIN(tblFact[dateperformed]),
FILTER(tblFact,tblFact[dateperformed]>RELATED(tblDIM[overallcompletiondate]))
)
assuming tables linked on id field and the capa table is a Dimention.
mClosure:=
CALCULATE(MIN(tblFact[dateperformed]),
FILTER(tblFact,tblFact[dateperformed]>RELATED(tblDIM[overallcompletiondate]))
)