Forum Discussion

Frank10's avatar
Frank10
Frequent Visitor
4 years ago
Solved

Microsoft exchange - data refresh automatically

Hi all!   using Microsoft exchange as source, I create a report in power bi desktop getting data from an email attachment (a scheduled report). The issue is Power BI doesn’t refresh automatically t...
  • v-jingzhang's avatar
    v-jingzhang
    4 years ago

    Hi Frank10 

     

    Yes, you don't need to apply latest filter. Just filter by Subject as the emails have the same name format. Then you can follow the steps below to combine all XLSX files. 

     

    For example, I filter by Subject (starting with) and remove other unnecessay columns. After that, I get below table. Click on white space in any cell of Attachments column, you will see its attchment information table displayed below. In each email, there is an XLSX file attached.  

     

    Now click on Expand icon on Attachments column header and select AttachmentContent to expand. 

     

    Then click on Combine Files icon on AttachmentContent column header. 

     

    You will see dialogue windows like "Evaluating Queries..." and "Connecting...". Just be patient and wait for Power Query to detect and connect to files. After a while, you will see Combine Files window. It's similar to when you use Folder connector to combine files in a folder. Select the sheet where data is and click OK. 

     

    After that, you will have queries like below. In the Mail query, all data is combined. You can transform data then. 

     

    For more information about combining files, please refer to Combine files overview 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.