Forum Discussion
Anonymous
7 years agoNot applicable
To calculate difference between In time and Out time for bio-metric report
Hi , I am designing a reports on biometric timimngs,but i am facing difficulties to find break timing. I am attaching a snapshot for more clarifiaction. 11:48:11 is shift timing and...
- 7 years ago
Hi Anonymous,
Please new such a measure:
Diff = VAR lastOUTTime = CALCULATE ( MAX ( TableA[Out Time] ), FILTER ( ALLEXCEPT ( TableA, TableA[Employee Code], TableA[Date] ), TableA[RNK] = CALCULATE ( MAX ( TableA[RNK] ), FILTER ( ALLEXCEPT ( TableA, TableA[Employee Code], TableA[Date] ), TableA[RNK] < MAX ( TableA[RNK] ) && TableA[Direction] = "OUT" ) ) ) ) RETURN DATEDIFF ( IF ( SELECTEDVALUE ( TableA[Direction] ) = "IN", lastOUTTime, BLANK () ), SELECTEDVALUE ( TableA[In Time] ), SECOND )Best regards,
Yuliana Gu
Anonymous
7 years agoNot applicable
Hi ,
I am designing a reports on biometric timimngs,but i am facing difficulties to find break timing.
I am attaching a snapshot for more clarifiaction.
11:48:11 is shift timing and I have to calculate difference between 13:44:35 and 13:44:08 ,14:41:50 and 14:15:51 ...so on
is there any way to calculate time difference using dax ?
Thank You in advance
Regards,
Vivek Chavan