<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Microsoft Exchange - Excel files with multiple tabs in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2342970#M69918</link>
    <description>&lt;P&gt;Not necessarily, can you provide two sample files that differ as you've described. Remove/change any sensitive data.&lt;/P&gt;
&lt;P&gt;This will make it easier for us to offer a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 18:19:04 GMT</pubDate>
    <dc:creator>KNP</dc:creator>
    <dc:date>2022-02-16T18:19:04Z</dc:date>
    <item>
      <title>Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2342873#M69908</link>
      <description>&lt;P&gt;I'm using Microsoft Exchange to insert attachments from emails that come monthly. Within the attachment, there are multiple tabs. I need to filter to the specific tab I want to be combined each month. The tabs are not titled the exact same way (ex. January Usage Report, February Usage Report). Is the only way to combine files automatically to have the tabs named identically each month?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 17:21:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2342873#M69908</guid>
      <dc:creator>Soc3</dc:creator>
      <dc:date>2022-02-16T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2342970#M69918</link>
      <description>&lt;P&gt;Not necessarily, can you provide two sample files that differ as you've described. Remove/change any sensitive data.&lt;/P&gt;
&lt;P&gt;This will make it easier for us to offer a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:19:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2342970#M69918</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2022-02-16T18:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2342991#M69923</link>
      <description>&lt;P&gt;Thanks for your quick reply! I don't see a way to attach the files on the forum, can you provide your email?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:42:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2342991#M69923</guid>
      <dc:creator>Soc3</dc:creator>
      <dc:date>2022-02-16T18:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2343022#M69925</link>
      <description>&lt;P&gt;The attaching is restricted unfortunately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just share using Google Drive, Drop Box etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 19:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2343022#M69925</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2022-02-16T19:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2352070#M70284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338374" data-lia-user-login="Soc3" class="lia-mention lia-mention-user"&gt;Soc3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could refer to the blog to know:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt; How to provide sample data in the Power BI Forum - Microsoft Power BI Community &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt; How to Get Your Question Answered Quickly - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Eyelyn Qin&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 01:49:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2352070#M70284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-22T01:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393077#M71757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="129725" data-lia-user-login="KNP" class="lia-mention lia-mention-user"&gt;KNP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the links to my two files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1PhLgcf-df9rQzv1Bsf5qF8f4o9FlwY4V/edit?usp=sharing&amp;amp;ouid=114407523338456260967&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank" rel="noopener"&gt;https://docs.google.com/spreadsheets/d/1PhLgcf-df9rQzv1Bsf5qF8f4o9FlwY4V/edit?usp=sharing&amp;amp;ouid=114407523338456260967&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://docs.google.com/spreadsheets/d/10kvbbQqJlGoPd97OfGocupyWGga1bo8Y/edit?usp=sharing&amp;amp;ouid=114407523338456260967&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank" rel="noopener"&gt;https://docs.google.com/spreadsheets/d/10kvbbQqJlGoPd97OfGocupyWGga1bo8Y/edit?usp=sharing&amp;amp;ouid=114407523338456260967&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your help!&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Mar 2022 16:18:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393077#M71757</guid>
      <dc:creator>Soc3</dc:creator>
      <dc:date>2022-03-14T16:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393302#M71772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338374" data-lia-user-login="Soc3" class="lia-mention lia-mention-user"&gt;Soc3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at the attached PBIX file.&lt;/P&gt;
&lt;P&gt;First thing, change the pFileDirectory parameter to wherever&amp;nbsp;you have the files stored locally. (This can be altered later obviously if they aren't going to be local files)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made some assumptions.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;That you wanted the sheets in the workbooks named 'January Usage Report', 'February Usage Report' etc.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;You weren't interested in the other sheets.&lt;/LI&gt;
&lt;LI&gt;That each workbook will only have one sheet with 'Usage Report' in the name. If it doesn't, the function I built will only pickup the first one.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This should be a good starting point, let me know if you have questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:11:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393302#M71772</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2022-03-14T18:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393362#M71773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="129725" data-lia-user-login="KNP" class="lia-mention lia-mention-user"&gt;KNP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your assumptions were correct and the output looks great! Is this still using Microsoft Exchange? How do I provide a file path to my inbox?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:31:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393362#M71773</guid>
      <dc:creator>Soc3</dc:creator>
      <dc:date>2022-03-14T18:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393678#M71791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338374" data-lia-user-login="Soc3" class="lia-mention lia-mention-user"&gt;Soc3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This isn't using Microsoft Exchange as I had no way to build the example that way.&lt;/P&gt;
&lt;P&gt;To be honest, the performance I've seen when connecting to exchange would put me off using it. Typically, if I have files coming in via email, I'll use Power Automate to extract them and put them on a SharePoint site, then connect to them from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to use exchange, create a new step that filters to the files you need and make sure you change the column name of 'AttachmentContent' to 'Content' then just change the reference in the 'UsageReports' query to point at your exchange query.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;^not sure if that description will make sense to you.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New query, something like this...&lt;/P&gt;
&lt;P&gt;(you'll need to add other filtering as required)&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let
  Source = Exchange.Contents("youremail@yourdomain.com"),
  Mail1 = Source{[Name = "Mail"]}[Data],
  #"Filtered Rows" = Table.SelectRows(Mail1, each ([HasAttachments] = true)),
  #"Expanded Attachments" = Table.ExpandTableColumn(
    #"Filtered Rows",
    "Attachments",
    {"Name", "Extension", "AttachmentContent"},
    {"Name", "Extension", "AttachmentContent"}
  ),
  #"Renamed Columns" = Table.RenameColumns(
    #"Expanded Attachments",
    {{"AttachmentContent", "Content"}}
  )
in
  #"Renamed Columns"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the sake of example, we'll say you called this new query 'Mail'.&lt;/P&gt;
&lt;P&gt;Now change the 'UsageReports' query to reference 'Mail' instead of 'Files'...&lt;/P&gt;
&lt;P&gt;(e.g. &lt;EM&gt;Source = Files&lt;/EM&gt; to &lt;EM&gt;Source = Mail&lt;/EM&gt;)&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let
  Source = Mail,
  ROC1 = Table.SelectColumns(Source, {"Content"}),
  InvokefProcessUsageReportFiles = Table.AddColumn(
    ROC1,
    "fProcessUsageReportFiles",
    each fProcessUsageReportFiles([Content], "usage report")
  ),
  ROC2 = Table.SelectColumns(InvokefProcessUsageReportFiles, {"fProcessUsageReportFiles"}),
  ExpandColumns = Table.ExpandTableColumn(
    ROC2,
    "fProcessUsageReportFiles",
    {
      "Contact Name",
      "Contact: Email",
      "Case Origin",
      "Opened Date",
      "Case Number",
      "Disposition",
      "Topic",
      "Case Type",
      "Subject"
    },
    {
      "Contact Name",
      "Contact: Email",
      "Case Origin",
      "Opened Date",
      "Case Number",
      "Disposition",
      "Topic",
      "Case Type",
      "Subject"
    }
  )
in
  ExpandColumns&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 00:12:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2393678#M71791</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2022-03-15T00:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2407492#M72241</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="129725" data-lia-user-login="KNP" class="lia-mention lia-mention-user"&gt;KNP&lt;/a&gt;&amp;nbsp;, thank you so much for your help! Last question, how do I switch the data source for pFileDirectory to point to a Sharepoint folder? I tried replacing the file path with the link and get this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:19:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2407492#M72241</guid>
      <dc:creator>Soc3</dc:creator>
      <dc:date>2022-03-21T19:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Exchange - Excel files with multiple tabs</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2407534#M72243</link>
      <description>&lt;P&gt;The original query...&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let
    Source = Folder.Files(pFileDirectory),
    FilterRows = Table.SelectRows(Source, each Text.Contains(Text.Lower([Name]), "usage report"))
in
    FilterRows&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'd need to change the query to use SharePoint.Files not Folder.Files.&lt;/P&gt;
&lt;P style="line-height: 1.71429; font-family: SegoeUI, Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;There may be some other minor tweaks required but that'll give you a start.&lt;/P&gt;
&lt;P style="line-height: 1.71429; font-family: SegoeUI, Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Microsoft-Exchange-Excel-files-with-multiple-tabs/m-p/2407534#M72243</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2022-03-21T19:47:23Z</dc:date>
    </item>
  </channel>
</rss>

