Forum Discussion
ConnieMaldonado
Responsive Resident
5 years agoCalculate Max Date by Employee Number
Hello - I need to create a filter to determine the max date by employee ID for a table which has the following: RVP RDO Location DATE Tech Name Employee Number RVP 1 RDO 1 Norfolk ...
- 5 years ago
ConnieMaldonado use this expression:
Max Date = CALCULATE ( MAX ( 'Table'[Date] ), ALLEXCEPT ( 'Table', 'Table'[Employee Number] ) )Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
ConnieMaldonado
Responsive Resident
5 years agoI got this to work. I was able to create a column for the hours and used your code above! Thanks! You're the best.
Max Date =
CALCULATE (
MAX ( 'Table'[Date] ),
ALLEXCEPT ( 'Table', 'Table'[Employee Number] ) ,
'Table'[Total Hours] > 0
)