Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I'm having a hard time figuring out how to determine how many computers are logged in at the same time throughout the day. I'd like to create a graph with the x-axis being time (continuous) and the y-axis being a count of how many computers are logged in at that given time, granular down to the minute.
My data table has columns:
I've found some solutions daily and hourly time frames, but I'm looking to see how to do it by minute and don't know if that is something I need to play with in the Date table?
Any help you could provide would be appreciated!
Solved! Go to Solution.
Yes, you have to create a datetime table with a minute step, smth like
CalendarTable = addcolumns(
generateseries(MIN('Table'[StartTime]), MAX('Table'[EndTime]), TIME (0,1,0 )),
"are logged",
calculate(count('Table'[ComputerID]), 'Table'[StartTime] <= EARLIER([Value]), 'Table'[EndTime]>=EARLIER([Value])))
do not hesitate to give a kudo to useful posts and mark solutions as solution
Yes, you have to create a datetime table with a minute step, smth like
CalendarTable = addcolumns(
generateseries(MIN('Table'[StartTime]), MAX('Table'[EndTime]), TIME (0,1,0 )),
"are logged",
calculate(count('Table'[ComputerID]), 'Table'[StartTime] <= EARLIER([Value]), 'Table'[EndTime]>=EARLIER([Value])))
do not hesitate to give a kudo to useful posts and mark solutions as solution
Thank you @az38 !
This works! Thanks for the help! Only problem is that I can only get a couple days worth of data to work because I keep getting an error saying not enough memory. Would you happen to know of a way that I can do the "are logged" column in a measure instead?
the better way to decrease memory consumption is to increase step of calculate to, for example 5 or 10 minutes.
I dont see any other appropriate way to get solution for your task with less resouces consumption
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |