Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Divous
Helper III
Helper III

Chat statistics

Hi community,

 

I have export from chat. It includes some information like ID's of chat, users, support or text of message etc. Below is simplified example. The column "# of message from „who“" is added from me now - why I explain it later.

 

chat_idsupport_iduser_id time_of_message whomessage_text# of message from „who“
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353821.12.21 10:00chatbotnot important 
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353822.12.21 10:00 support%support_name% connected1
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353823.12.21 10:00 user 1
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353824.12.21 10:00 support 2
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353825.12.21 10:00 user 2
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353826.12.21 10:00 support 3
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353827.12.21 10:00 support 3
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353828.12.21 10:00 user 3
006jIhMDiPOZa222ccab-2d8d4b98a1e6-353829.12.21 10:00 support 4
jj0Epbxi2L7U869d4abe-60667ecc3efd-909c23.12.21 11:00chatbotnot important 
jj0Epbxi2L7U870d4abe-60667ecc3efd-909c24.12.21 11:00 usernot important 
jj0Epbxi2L7U871d4abe-60667ecc3efd-909c25.12.21 11:00 support%support_name% connected1
jj0Epbxi2L7U872d4abe-60667ecc3efd-909c26.12.21 11:00 support 1
jj0Epbxi2L7U873d4abe-60667ecc3efd-909c27.12.21 11:00 support 1
jj0Epbxi2L7U874d4abe-60667ecc3efd-909c28.12.21 11:00 user 1
zoYPJ957fRc071fc4f-52b46ca908c6-84eb25.12.21 12:00chatbotnot important 
zoYPJ957fRc071fc4f-52b46ca908c6-84eb25.12.21 12:00 usernot important 
zoYPJ957fRc071fc4f-52b46ca908c6-84eb26.12.21 12:00 support%support_name% connected1
zoYPJ957fRc071fc4f-52b46ca908c6-84eb27.12.21 12:00 support 1
zoYPJ957fRc071fc4f-52b46ca908c6-84eb28.12.21 12:00 user 1
zoYPJ957fRc071fc4f-52b46ca908c6-84eb29.12.21 12:00 support 2
zoYPJ957fRc071fc4f-52b46ca908c6-84eb30.12.21 12:00 support 2
zoYPJ957fRc071fc4f-52b46ca908c6-84eb31.12.21 12:00 user 2
zoYPJ957fRc071fc4f-52b46ca908c6-84eb01.01.22 12:00 support 3

 

I am trying to make some complex and interesting statistics. But my PBI skill are still so far from doing it right.

 

Desired results:

1) Mainly goal is to know how many times user and support write to each other before solving the problem after "support connected" to chat. With filters like
- User write more than 3 times
- % of users write first after "support connected" to chat

- % of users communicate or disconneted after "support connected" to chat, or after few messages, etc


The total number of messages is also interesting, but this statistics from "rotation" is important to me so then I would know for example that support "returned" to the chat x times.
There is tricky part -> we need to calculate for example 2 message from support in a row as one. Same with users. This shows colum added from me "# of message from „who“"


2) It is useful to know how long the reactions of one of the communicating sides takes, or then to calculate the total time of chatting, the average between the exchanges of messages, etc.

 

Then I want to put it in some funnel and see the throughput of all or then filtered problems.

 

Like this? With # of messages from Users and Helpers (support) and with conversion and average between reactions,..

Divous_0-1642969720175.png

 

or maybe this vizualization is not suitable for this case. My original data have over 100k of rows and some extra not important columns.

 

Can I ask for a tutorial? It is probably beyond the help of this forum, but I do not know what to do with it 😕

 

Thanks in advance

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Divous ,

Not quite sure what you need. Do you want to get the number of communications between the support and the user when solving a problem? Like the value given in the field [# of message from "who"] in the example table you gave? Also, you want to get the average time per communication and create a graphical chart that is easy to understand, right? Could you please provide more example data in Text format and share the logic of the calculation based on the example data given (e.g. chat_id 006jIhMDiPOZ in the table below, why the final value of field [# of message from "who"] are ,1, 1, 2, 2, 3,3,3,4? How to get the average time?) and the final result you want. Thank you.

yingyinr_0-1643189631813.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AllisonKennedy
Super User
Super User

@Divous power bi can do everything you are asking if the data is tidy enough:

 

Does the timestamp include seconds? Your sample table has lots of the same timestamp which will make it much more difficult. 

 

Does the first message from support always say 'supportname connected ' ?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.