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
Kanivan
Frequent Visitor

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 a@aa.com, time received 15 Nov 2019 11:02am , Attachment 1:
Head1|Head2|Head3
1             |2           |4
5             |2           |5

Email2 (Sender b@bb.com, 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             |a@aa.com|15 Nov 2019 11:02am

5            |2            |5             |a@aa.com|15 Nov 2019 11:02am
4            |7            |2             |b@bb.com|16 Nov 2019 10:15am

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Kanivan ,

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

1.PNG

  • Just retain the columns of address and received datetime

2.PNG

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.

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.

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.

powerbi.PNG

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.