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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors