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!
Ive got a
tablePeriod = GENERATESERIES (
DATE ( 2018, 5, 1 ),
DATE ( 2018, 5, 3 ),
TIME ( 0, 30, 0 )
)
and Ive got a user's session log:
session_id; session_starttime; session_endtime
and i need to know count(session_id) for each value from tablePeriod that >=session_starttime and <= session_endtime
result is a tablePeriod from two columns: Period, CountSessions
Thank you!
Solved! Go to Solution.
You may use DAX below to add a calculated column.
Column = COUNTROWS ( FILTER ( 'session', 'session'[session_starttime] <= tablePeriod[Value] && 'session'[session_endtime] >= tablePeriod[Value] ) )
You may use DAX below to add a calculated column.
Column = COUNTROWS ( FILTER ( 'session', 'session'[session_starttime] <= tablePeriod[Value] && 'session'[session_endtime] >= tablePeriod[Value] ) )
Thx, perfect!
So, I want to define how many users were active on the server at each moment (each row) from the table tablePeriod
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |