Forum Discussion
cbruhn42
Helper III
2 years agoReturn Earliest Date/Time Based on Calculated Column
I have the data set below and I'm determining the 'in Spec' column by comparing the Amount to the spec limit in a related column. The column titled 'Column' is trying to return the earliest DT when ...
- 2 years ago
Your formula is not overly efficient but it returns the desired result
Here is a slightly better alternative with better sample data
parry2k
Super User
2 years agocbruhn42 or try this:
Earliest Date =
CALCULATE (
MIN ( 'Vessel'[DT] ),
ALLEXCEPT ( 'Vessel', Vessel[VesselID] ),
Vessel[in Spec] = 1
)- lbendlin2 years ago
Super User
Looks like your query plan is better with fewer estimated rows but somehow my version is faster.
Edit: Never mind, I had not disabled the query cache. Same run time, roughly.