<?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: Connection Sharepoint folders via Dataflow in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4353423#M2322</link>
    <description>&lt;P&gt;Presumably If I wanted to run a function on a whole folder just skip the last file entry?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this is much faster than pointing the site and then filtering down the folders to the one you require if the site contains alot of folders and files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the advice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 12:35:20 GMT</pubDate>
    <dc:creator>masplin</dc:creator>
    <dc:date>2025-01-07T12:35:20Z</dc:date>
    <item>
      <title>Connection Sharepoint folders via Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4352137#M2318</link>
      <description>&lt;P&gt;I'm an expeirenced Power BI user so first time trying to use Fabric to build a new model&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted ot check if i'm being stupid or its by design. I want to connect to a sharepoint subfolder&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In power query I use this as the source (slightly edited)&lt;/P&gt;&lt;P&gt;= Excel.Workbook(Web.Contents("&lt;A href="https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting/Shared%20Documents/Trinity%20Budget/Budget%20Input%20FY25%20May24.xlsx" target="_blank"&gt;https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting/Shared%20Documents/Trinity%20Budget/Budget%20Input%20FY25%20May24.xlsx&lt;/A&gt;"), null, true)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This goes directly to the folder or file required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Fabric I created a data flow and found the all I could put in the url was&amp;nbsp;&lt;A href="https://consolidatedhealthltd.sharepoint.com" target="_blank"&gt;https://consolidatedhealthltd.sharepoint.com&lt;/A&gt;&amp;nbsp;which then listed every sinlge file in the Sharepoint (thousands). Once it had finished creating I can filter down to the folder i need, but seems incredible waste of resources? i tried ot specify tighter and it just failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there no way to specify the actual folder or file PowerBIReporting/Shared Documents/Trinity Budget/Budget Input FY25 May24.xlsx???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:13:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4352137#M2318</guid>
      <dc:creator>theferret</dc:creator>
      <dc:date>2025-01-06T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Sharepoint folders via Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4353376#M2321</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417922" data-lia-user-login="theferret" class="lia-mention lia-mention-user"&gt;theferret&lt;/a&gt;&amp;nbsp;&amp;nbsp;, thank you for reaching out to the Microsoft Fabric Community Forum.&lt;/P&gt;
&lt;P&gt;Fabric's Dataflows Gen2 currently operates differently from Power Query in terms of SharePoint connections, but there are ways to make the process more efficient.&lt;/P&gt;
&lt;P&gt;Please Consider below:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Instead of pointing directly to the SharePoint site, you can refine your query within Fabric’s &lt;STRONG&gt;Dataflows &lt;/STRONG&gt;Gen2 using M code in the Advanced Editor.&lt;/LI&gt;
&lt;LI&gt;Go to your Dataflow in Fabric -&amp;gt; Power Query Editor -&amp;gt; Advanced Editor&lt;/LI&gt;
&lt;LI&gt;Example code: let&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Source = SharePoint.Contents("&lt;A href="https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting" target="_blank"&gt;https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting&lt;/A&gt;"),&lt;/P&gt;
&lt;P&gt;Folder = Source{[Name="Shared Documents"]}[Content],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Subfolder = Folder{[Name="Trinity Budget"]}[Content],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;File = Subfolder{[Name="Budget Input FY25 May24.xlsx"]}[Content],&lt;/P&gt;
&lt;P&gt;Excel = Excel.Workbook(File, null, true)&lt;/P&gt;
&lt;P&gt;in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Excel&lt;/P&gt;
&lt;P&gt;If this helps, please consider marking it &lt;STRONG&gt;'Accept as Solution'&lt;/STRONG&gt; so others with similar queries may find it more easily. If not, please share the details.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 12:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4353376#M2321</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-01-07T12:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Sharepoint folders via Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4353423#M2322</link>
      <description>&lt;P&gt;Presumably If I wanted to run a function on a whole folder just skip the last file entry?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this is much faster than pointing the site and then filtering down the folders to the one you require if the site contains alot of folders and files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the advice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 12:35:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4353423#M2322</guid>
      <dc:creator>masplin</dc:creator>
      <dc:date>2025-01-07T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Sharepoint folders via Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4354437#M2325</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="27040" data-lia-user-login="masplin" class="lia-mention lia-mention-user"&gt;masplin&lt;/a&gt;&amp;nbsp;, thank you for reaching out to the Microsoft Fabric Community Forum.&lt;/P&gt;
&lt;P&gt;You are correct, skipping the last file entry in the M code would allow you to run a function on the entire folder rather than targeting a specific file. And yes it is much faster than pointing to the root SharePoint site and filtering down thousands of files, especially when dealing with large repositories.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please try below:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Modified code for entire folder:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;let&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = SharePoint.Contents("&lt;A href="https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting" target="_blank"&gt;https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting&lt;/A&gt;"),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Folder = Source{[Name="Shared Documents"]}[Content],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfolder = Folder{[Name="Trinity Budget"]}[Content]&lt;/P&gt;
&lt;P&gt;in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfolder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;If you want to combine all Excel files in the folder:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;let&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = SharePoint.Contents("&lt;A href="https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting" target="_blank"&gt;https://consolidatedhealthltd.sharepoint.com/sites/PowerBIReporting&lt;/A&gt;"),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Folder = Source{[Name="Shared Documents"]}[Content],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfolder = Folder{[Name="Trinity Budget"]}[Content],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Files = Table.SelectRows(Subfolder, each Text.EndsWith([Name], ".xlsx")),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Content = Table.AddColumn(Files, "Data", each Excel.Workbook([Content], null, true)),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpandedData = Table.ExpandTableColumn(Content, "Data", {"Name", "Data"})&lt;/P&gt;
&lt;P&gt;in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpandedData&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this helps, please consider marking it &lt;STRONG&gt;'Accept as Solution'&lt;/STRONG&gt; so others with similar queries may find it more easily. If not, please share the details.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 05:12:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4354437#M2325</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-01-08T05:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Sharepoint folders via Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4354880#M2327</link>
      <description>&lt;P&gt;t's great thanks very much&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 09:45:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/4354880#M2327</guid>
      <dc:creator>theferret</dc:creator>
      <dc:date>2025-01-08T09:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Sharepoint folders via Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/5144227#M4439</link>
      <description>&lt;P&gt;I still have a problem using sub folders, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Source&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SharePoint.Files&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"https://[sharepoint-site-URL]"&lt;/SPAN&gt;&lt;SPAN&gt;, [&lt;/SPAN&gt;&lt;SPAN&gt;ApiVersion&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SP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&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Navigation&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;#"Filtered hidden files"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;}[&lt;/SPAN&gt;&lt;SPAN&gt;Content&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Navigation&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Expression.Error: The key didn't match any rows in the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Details&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Reason = Expression.Error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;ErrorCode = 10061&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Key = [Name = "Shared Documents"]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Table = #table({"Content", "Name", "Extension", "Date accessed", "Date modified", "Date created", "Attributes", "Folder Path"}, {})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Apr 2026 15:36:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/5144227#M4439</guid>
      <dc:creator>alloowishus</dc:creator>
      <dc:date>2026-04-06T15:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Sharepoint folders via Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/5144387#M4440</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1564824" data-lia-user-login="alloowishus" class="lia-mention lia-mention-user"&gt;alloowishus&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is because you’ve switched to SharePoint.Files instead of SharePoint.Contents that I suggested. SharePoint.Files returns a flat list of all files, so there’s no Shared Documents row to drill into, hence the key didn’t match any rows error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to navigate through subfolders the way you’re doing, stick with SharePoint.Contents and drill down step by step. Also, make sure each step continues from the previous one, your Subfolder3 is currently jumping back up a level. If you do want to use SharePoint.Files, then you’ll need to filter by [Folder Path] instead of navigating by name.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2026 05:25:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Connection-Sharepoint-folders-via-Dataflow/m-p/5144387#M4440</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2026-04-07T05:25:00Z</dc:date>
    </item>
  </channel>
</rss>

