cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Maha1
Helper I
Helper I

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
v-cgao-msft
Community Support
Community Support

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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors
Top Kudoed Authors