Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Combining email data with attachment data

I have linked Power BI to a folder in Outlook where I receive emails with attachments. The attachements have the same format. for example

Email1 (Sender [email protected], time received 15 Nov 2019 11:02am , Attachment 1:
Head1|Head2|Head3
1             |2           |4
5             |2           |5

Email2 (Sender [email protected], time received 16 Nov 2019 10:15am , Attachment 2:
Head1|Head2|Head3
4            |7             |2



I have setup the Query editor so that the attachments in the folders are combined:
Head1|Head2|Head3

1            |2             |4
5            |2             |5
4            |7             |2

 

Is there a way to have the sender and time received to every row in the combined attachment table:
Head1|Head2|Head3|Sender|TimeRec

1            |2            |4             |[email protected]|15 Nov 2019 11:02am

5            |2            |5             |[email protected]|15 Nov 2019 11:02am
4            |7            |2             |[email protected]|16 Nov 2019 10:15am

2 Replies

  • v-xuding-msft's avatar
    v-xuding-msft
    Community Support

    Hi Anonymous ,

    You could connect Microsoft Exchange Online into Power BI to get the name and email address. And then append them to your existing table.

    • Get data > Choose Microsoft Exchange Online
    • Sign in Microsoft account
    • Choose Mail table > Transform data
    • Expend Sender column to show address

    • Just retain the columns of address and received datetime

    Then you could add columns or append the queries based on your actual data model to implement.

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      hi Xue Ding, thank you for your reply. Unfortunately this doesnt solve my issue. Once I choose Combine - Attachment content, a new table is created with the attachment information and the original email information dissapears. So I cant refer to the sender email column etc. Is there a way to do this.