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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Maha1
Helper II
Helper II

Group Conversation Email in Power Query

Hi,

 

I'm trying to track our help center mailbox through power query.  How can I identify emails that are in one conversation so I can identify total requests received (distinct count of conversations) and to get duration of first response (Sent date/time of the second email in a conversation MINUS Recieved date/time of the first email in a conversation)?

3 REPLIES 3
Anonymous
Not applicable

Hi @Maha1 ,

 

Please refer to the steps below to get the email.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("LYo7DsMwDMWu8uAD5AwZ2z1b4EG1FFSoZQX+oOjt4wIZuJDc9/BQ2A+FTKANmxuo8F+JkWYQc5XW7rZOutuS5vbE10dmZP0IuoO1pTHP/hacVZPAD7wqzXrkobwgxHgB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Text = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Text", type text}}),
    Custom1 = Table.AddColumn ( 
        #"Changed Type", 
        "New Text", 
        each 
        Text.Combine ( 
            List.Select ( 
                Text.Split ( [Text], " " ), 
                each Text.Contains ( _, "@" ) 
            ), 
            " " 
        ), 
        type text 
    )
in
    Custom1

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

I don't get the source in your code? I used Get Data from Microsoft Exchange.

What should I replace from your code to make it work?

lbendlin
Super User
Super User

What have you tried and where are you stuck?

 

lbendlin_0-1673825412015.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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