Forum Discussion
PowerBI maximum Concurrent Callers - Stats DAX
Hi Anonymous,
Please format the data type of [Date] column in Calendar table to Date/Time, which is the same as data[Time of Connection] and data[Time of Disconnection].
Regards,
Yuliana Gu
Hi v-yulgu-msft
they are all formatted as Date/Time
Format: (dd/MM/yy HH:mm)
should the relationship be between the Time_of_Connection and the calendar date data table?
Sample Data:
DataTable1
| Username | Time_of_connection | Time_of_disconnection |
| JBEAN | 14/7/2018 11:02 | 14/7/2018 11:05 |
| BEEMER | 14/7/2018 11:02 | 14/7/2018 11:06 |
| HLEFT | 14/7/2018 11:01 | 14/7/2018 11:08 |
| JUP | 14/7/2018 11:00 | 14/7/2018 11:05 |
| JDOWN | 14/7/2018 10:55 | 14/7/2018 10:58 |
So on a visualisation at the minute 14/7/2018:11:03 should show the number of users connected: 4
- v-yulgu-msft8 years agoMicrosoft Employee
Hi Anonymous,
There is no need to create a relationship between DataTable1 and calendar table.
Regards,
Yuliana Gu
- Anonymous8 years agoNot applicable
hi @v-yulgu-msft
without a relationship it doesnt calculate anything at all. with a relationship it doesnt calculater correctly:(
this is the atcual formula im using;
Count Measure =
CALCULATE (
COUNTA(data[callingPartyUnicodeLoginUserID] ),
FILTER (
Data,
SELECTEDVALUE ( 'Calendar'[Date] ) >= data[Time of Connection]
&& SELECTEDVALUE ('Calendar'[Date]) <= Data[Time of Disconnection]
)
)