<?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: Dynamic Unpivot in PowerQuery in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3111316#M41542</link>
    <description>&lt;P&gt;When you unpivot you need to specify at least one fixed point - a column that does not change.&lt;/P&gt;</description>
    <pubDate>Sat, 04 Mar 2023 02:35:34 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-03-04T02:35:34Z</dc:date>
    <item>
      <title>Dynamic Unpivot in PowerQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3106729#M41489</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table populating from SharePoint list. In this table I have a set columns in a tabular format. I have added a screen shot for reference. I am trying to unpivot the data so that there is one Date column, one Capital column, one Notes column, and one Expense column. Right now there are 26 of each.&amp;nbsp; They also keep adding new SP columns so I would like it to be dynamic so it always automatically captures the new data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is where I have started:&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = SharePoint.Tables("&lt;A href="http://inside/private/CAM/" target="_blank"&gt;http://inside/private/CAM/&lt;/A&gt;", [ApiVersion = 15]),&lt;BR /&gt;#"0cb52d41-3597-476f-b8eb-e2020540e973" = Source{[Id="0cb52d41-3597-476f-b8eb-e2020540e973"]}[Items],&lt;BR /&gt;#"Unpivoted Columns" = Table.Unpivot(Source, List.Select(Table.ColumnNames(Source), each (Text.StartsWith("SP") and Text.EndsWith("Date"))), "Attribute", "Value")&lt;BR /&gt;in&lt;BR /&gt;#"Unpivoted Columns"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT I am getting this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression.Error:&lt;/STRONG&gt; 1 arguments were passed to a function which expects between 2 and 3.&lt;BR /&gt;Details:&lt;BR /&gt;Pattern=&lt;BR /&gt;Arguments=[List]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to make a condtional unpivot saying if the column starts with SP and Ends with Date - then put that into one date column, then do the same for Expense, Notes, and Capital.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WV_0-1677708878642.png" style="width: 891px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/879784i1D0FD5C7B99E29E9/image-dimensions/891x128?v=v2" width="891" height="128" role="button" title="WV_0-1677708878642.png" alt="WV_0-1677708878642.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WV_1-1677708943423.png" style="width: 695px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/879785i4DE392366AE1F1FA/image-dimensions/695x242?v=v2" width="695" height="242" role="button" title="WV_1-1677708943423.png" alt="WV_1-1677708943423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any and all support.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 22:17:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3106729#M41489</guid>
      <dc:creator>WV</dc:creator>
      <dc:date>2023-03-01T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Unpivot in PowerQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3111316#M41542</link>
      <description>&lt;P&gt;When you unpivot you need to specify at least one fixed point - a column that does not change.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 02:35:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3111316#M41542</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-04T02:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Unpivot in PowerQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3115023#M41581</link>
      <description>&lt;P&gt;Where in the syntax would I specify that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source = SharePoint.Tables("&lt;A href="http://inside/private/CAM/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://inside/private/CAM/&lt;/A&gt;", [ApiVersion = 15]),&lt;BR /&gt;#"0cb52d41-3597-476f-b8eb-e2020540e973" = Source{[Id="0cb52d41-3597-476f-b8eb-e2020540e973"]}[Items],&lt;BR /&gt;#"Unpivoted Columns" = Table.Unpivot(Source, List.Select(Table.ColumnNames(Source), each (Text.StartsWith("SP") and Text.EndsWith("Date"))), "Attribute", "Value")&lt;BR /&gt;in&lt;BR /&gt;#"Unpivoted Columns"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 22:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3115023#M41581</guid>
      <dc:creator>WV</dc:creator>
      <dc:date>2023-03-06T22:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Unpivot in PowerQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3115103#M41582</link>
      <description>&lt;P&gt;Please provide a sample of your SP list and indicate the expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 00:02:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Unpivot-in-PowerQuery/m-p/3115103#M41582</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-07T00:02:45Z</dc:date>
    </item>
  </channel>
</rss>

