Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Determining activity (in hours) for each employee

Hello,

I have a date column indicating the date and time of transaction and an ID column with user IDs. The dates update for the current date and go back seven days. Each row is equivalent to one transaction. What would be the most effective way to determine the number of transactions per hour today and over the past seven days. Basically, I want to make sure that I capture the daily activity time for each user accurately based on time span their transactions are recorded in the system.

Date                                ID

3/9/2021 10:19:51 AMMDUQUETTE
3/9/2021 10:19:34 AMVDEMERS
3/9/2021 10:19:22 AMMDUQUETTE
3/9/2021 10:19:08 AMMDUQUETTE
3/9/2021 10:18:47 AMMDUQUETTE
3/9/2021 10:18:29 AMMDUQUETTE
3/9/2021 10:18:03 AMMDUQUETTE
3/9/2021 10:17:49 AMNDAURE
3/9/2021 10:17:43 AMMDUQUETTE
3/9/2021 10:17:23 AMMDUQUETTE
1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Split the Date column into Date and Time columns.  Create a Calendar Table and also a Time table.  Build a relationship from the Date column of the Data Table to the Date column of the Calendar Table.  Build a relationship from the Time column of the Data Table to the Time column of the Time Table.  To your visual, drag Date from the Date Table and Time from the Time Table.  Write this measure

=countrows(data)

Hope this helps. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thank you for your response. I may need to clarify a bit more. I want to visualize the daily number of transactions/ hr for each employee. I am still unable to determine the number of transactions/ hr to measure productivity based on the daily time of activity since not all employees work on the same shift or for the same time span.

Hi,

I am still not clear.  Please show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Yes, of course. Thank you for your help. The output should be the productivity calculated as -> count of rows/(latest transaction time - first transaction time) for each date and User ID.

{5C64B4C2-A88F-4176-8E60-8544CBD447FD}.png.jpg

Hi,

You may download my PBI file from here.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.