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
eugee123
New Member

Knowing number of users online at any 1 time

Hi, I would like to calculate using DAX, the number of users online at any one instant (by the minute). For example, if within 2-3pm, 

 

User 1 logged in at 2pm and logged out at 3pm

User 2 logged in at 2.15pm and logged out at 230pm

User 3 logged in at 2.20pm and logged out at 235pm.

 

Then the result I would like to see is, at 2.45pm, there is 1 user online. At 2.17pm there are 2 users online. 

 

My data set is as follows, I have the login and logout dates and times of each person.

 

eugee123_0-1627981622623.png

 

Appreciate any help. Thanks

1 REPLY 1
lbendlin
Super User
Super User

Same process as in my other reply, just with minute level granularity rather than hour level.  So instead of 24 buckets you have to deal with 1440 buckets per day.

 

 

Ideally you want to combine the date and time for each event before multiplying by 1440.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.