Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Combining email data with attachment data

I have linked Power BI to a folder in Outlook. In this folder I receive emails with attachments which have the same headers.

For example:
email 1 (sender [email protected], time rec 13 Nov 2019 11:02am)
attachment 1:
head1|head2
2        |4
4        |1


email 2 (sender [email protected], time rec 14 Nov 2019 10:015am)
attachment 1:
head1|head2
6        |7

In the query editor I have used expand attachment and then Combine Files to get:
head1|head2
2        |4
4        |1
6        |7

Is there a way to combine this table with email data (sender and time rec):
head1|head2|sender|time rec
2        |4        |[email protected]|13 Nov 2019 11:02am
4        |1        |[email protected]|13 Nov 2019 11:02am
6        |7        |[email protected]| 14 Nov 2019 10:015am


thanks

  • Hi Anonymous ,

    Open the Query Editor and go to the Advanced Editor to see if there is a #"Removed Other Columns1" step, comment or delete this step, then replace #"Removed Other Columns1" in the next #"Expanded Table Column1" with the previous step #"Invoke Custom Function1". Finally, delete the extra columns, the result is as follows:


    Best Regards,

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

2 Replies

  • Hi Anonymous ,

    Open the Query Editor and go to the Advanced Editor to see if there is a #"Removed Other Columns1" step, comment or delete this step, then replace #"Removed Other Columns1" in the next #"Expanded Table Column1" with the previous step #"Invoke Custom Function1". Finally, delete the extra columns, the result is as follows:


    Best Regards,

    Community Support Team _ Joey
    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

      thanks Joey!