cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
babatherockstar Frequent Visitor
Frequent Visitor

Find users per hour

Hello,

 

I am very new to Power BI. I have users logged in into system with their start time and end time (date time format). This data is for three months. Now, I want to see for every hour how many average users were their for past three months.  As shown in below pic, for hour 3AM-4AM, I want to show user count as 6. For hour 4AM-5AM, user count should be - 14, for hour 5AM-6AM, user count should be - 4. So basically, if start time and end time happens to be more than 1hour, that user should get counted for those many hours. Like in first row for User1- he logins at 3:53AM and logs out at 4:12AM, so he should be counted for hours 3AM-4AM and 4AM-5AM. Please help in this.

 

 

user.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
LivioLanzo Super Contributor
Super Contributor

Re: Find users per hour

Hi @babatherockstar

 

see the attached file. You are going to need to modify slightly your table as I did in the file. 

 

Download link: https://1drv.ms/u/s!AiiWkkwHZChHjxTrDUvvuTdHVYkk

 

 Capture.PNG

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

2 REPLIES 2
LivioLanzo Super Contributor
Super Contributor

Re: Find users per hour

Hi @babatherockstar

 

see the attached file. You are going to need to modify slightly your table as I did in the file. 

 

Download link: https://1drv.ms/u/s!AiiWkkwHZChHjxTrDUvvuTdHVYkk

 

 Capture.PNG

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

babatherockstar Frequent Visitor
Frequent Visitor

Re: Find users per hour

Hello @LivioLanzo,

 

Thank you for your help. I have completed my requirement. Your input was 100% applicable to my case.

 

Thanks again.

 

Babatherockstar

 

 

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 428 members 4,176 guests
Please welcome our newest community members: