Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Dear All,
Can someone help me to convert below excel formula to DAX formula. I'm trying to calculate employee tenure
=IF([@[FINAL_PROCESS_DATE]]<>"",SUM(SUM([@[FINAL_PROCESS_DATE]]-[@HIREDATE])/365),SUM(NOW()-[@HIREDATE])/365)
Regards,
tenure =
var enddate = if ([final_process_date] = blank(), today(),[final_process_date])
return datediff ([hiredate],enddate,DAY)/365
Might need to use null rather than blank dependent on exactly what your data types are
Thanks. but its not working. error in Today()
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
11 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |