Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |