IM trying to read a lmgrd9.log file, i can see most of what i need, but need to group the time stamps into 24 hour blocks and the assign the correct date to that to give a date/timestamp - Then i wish to join the OUT and IN with the user name to give a duration - this will end up in a powerbi report so can do some there.
Group Dates by 24 hr blocks
Best answer by hollyatsafe
Hi @frankers,
This is an interesting project, I've taken a look at your workflow and have some ideas...
For the timestamp rather than using the TIMESTAMP line I decided to explore using the 'Time: Thu Nov 14 2019 20:04:42 W. Australia Standard Time' line, this is because this seems to reliably be printed just after midnight every day, so before there has been any user activity. Therefore we can use Adjacent Feature Attribute Handling in the Attribute Manager to assign the Date to all subsequent features that are missing the Date value.
Then to calculate the difference between IN and OUT times these values must sit on the same feature so they can be used in the DateTimeCalculator. This is where things get tricky as for each user there are not always a pair for each date. E.g. user may sign IN but never OUT on a single day.
I decided to use a conditional statement along with adjacent feature attribute handling to try and determine IN / OUT pairs for a single user per day. However this means the above scenarios have been ignored so additional steps will need to be taken to determine how to handle these. I suspect there are better ways to do this, but hopefully these ideas will help you get started. Please find attached a workspace with annotations to explain my thoughts.
ESRI_LICENSES_HCEdit.fmwt
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

