<?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: Pivot Column Error - There were too many elements in the enumeration to complete the operation. in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/4088684#M1294271</link>
    <description>&lt;P&gt;I had the same issue. I added an Index column before my pivot, as suggested by parry2k, and my pivot worked after that.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 08:00:29 GMT</pubDate>
    <dc:creator>Anth79</dc:creator>
    <dc:date>2024-08-08T08:00:29Z</dc:date>
    <item>
      <title>Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311217#M835997</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I am trying to pivot a column in power query and I get an error:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Expression.Error: There were too many elements in the enumeration to complete the operation.&lt;BR /&gt;Details:&lt;BR /&gt;[List]&lt;BR /&gt;&lt;BR /&gt;Any idea how to solve the issue?&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 15:37:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311217#M835997</guid>
      <dc:creator>adelmonte</dc:creator>
      <dc:date>2022-01-31T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311221#M835998</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="333263" data-lia-user-login="adelmonte" class="lia-mention lia-mention-user"&gt;adelmonte&lt;/a&gt;&amp;nbsp;before you pivot the data, add an index column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="direction: ltr; border-width: 100%;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.2416in;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.2416in;"&gt;
&lt;H2 style="margin: 0in; font-size: 14.0pt; color: #2e75b5;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; Follow us on &lt;/SPAN&gt;&lt;A href="https://www.linkedin.com/company/perytus/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; and&amp;nbsp;&lt;img /&gt;&amp;nbsp;to our &lt;/SPAN&gt;&lt;A href="https://www.youtube.com/channel/UCOYOaONaLGxtHQZxKosUegA" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;YouTube&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; channel &lt;/SPAN&gt;&lt;/H2&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #e84c22;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #e84c22;"&gt;&lt;A href="https://www.youtube.com/watch?v=l2MRTFReCX0" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Learn about conditional formatting at Microsoft Reactor&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;My latest blog post &lt;/SPAN&gt;&lt;A href="https://perytus.com/2021/07/13/the-power-of-using-calculation-groups-with-inactive-relationships-part-1/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) &lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;I would &lt;/SPAN&gt;&lt;SPAN&gt;❤&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Kudos&lt;/SPAN&gt;&lt;SPAN&gt; if my solution helped. &lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 9.0pt;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":high_voltage:"&gt;⚡&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Visit us at &lt;/SPAN&gt;&lt;A href="https://perytus.com" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://perytus.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, your one-stop-shop for Power BI-related projects/training/consultancy.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Jan 2022 15:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311221#M835998</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2022-01-31T15:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311259#M836005</link>
      <description>&lt;P&gt;It doesn't give me the desired outcome.&lt;BR /&gt;Thanks anyway!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 15:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311259#M836005</guid>
      <dc:creator>adelmonte</dc:creator>
      <dc:date>2022-01-31T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311458#M836052</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="333263" data-lia-user-login="adelmonte" class="lia-mention lia-mention-user"&gt;adelmonte&lt;/a&gt;&amp;nbsp;try this script, start a new query, click advanced editor and paste this code, you can tweak it as you see fit and if works fine, apply it on your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WckksSVXSUTIyMDLUNQAhpVidaKWwxJzSVEOgOBLXCKQMzEXRY4ShxxhVjwmmHmMMPaaoesyUYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", type text}}),
    #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type),
    #"Added Custom" = Table.AddColumn(#"Added Index", "Group", each if [Column1]= "Date" then [Index] else null),
    #"Filled Down" = Table.FillDown(#"Added Custom",{"Group"}),
    #"Removed Columns" = Table.RemoveColumns(#"Filled Down",{"Index"}),
    #"Pivoted Column" = Table.Pivot(#"Removed Columns", List.Distinct(#"Removed Columns"[Column1]), "Column1", "Column2"),
    #"Removed Columns1" = Table.RemoveColumns(#"Pivoted Column",{"Group"})
in
    #"Removed Columns1"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="direction: ltr; border-width: 100%;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.2416in;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.2416in;"&gt;
&lt;H2 style="margin: 0in; font-size: 14.0pt; color: #2e75b5;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; Follow us on &lt;/SPAN&gt;&lt;A href="https://www.linkedin.com/company/perytus/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; and&amp;nbsp;&lt;img /&gt;&amp;nbsp;to our &lt;/SPAN&gt;&lt;A href="https://www.youtube.com/channel/UCOYOaONaLGxtHQZxKosUegA" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;YouTube&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; channel &lt;/SPAN&gt;&lt;/H2&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #e84c22;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #e84c22;"&gt;&lt;A href="https://www.youtube.com/watch?v=l2MRTFReCX0" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Learn about conditional formatting at Microsoft Reactor&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;My latest blog post &lt;/SPAN&gt;&lt;A href="https://perytus.com/2021/07/13/the-power-of-using-calculation-groups-with-inactive-relationships-part-1/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) &lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;I would &lt;/SPAN&gt;&lt;SPAN&gt;❤&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Kudos&lt;/SPAN&gt;&lt;SPAN&gt; if my solution helped. &lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 9.0pt;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":high_voltage:"&gt;⚡&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Visit us at &lt;/SPAN&gt;&lt;A href="https://perytus.com" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://perytus.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, your one-stop-shop for Power BI-related projects/training/consultancy.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Jan 2022 17:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2311458#M836052</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2022-01-31T17:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2312368#M836310</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;parry2k,&lt;BR /&gt;Your code doesn't make sense for my case but thanks anyway.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 07:40:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2312368#M836310</guid>
      <dc:creator>adelmonte</dc:creator>
      <dc:date>2022-02-01T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2312372#M836312</link>
      <description>&lt;P&gt;I added Source name column and used uniqueness of that column to pivot and it worked fabulously &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 07:44:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2312372#M836312</guid>
      <dc:creator>adelmonte</dc:creator>
      <dc:date>2022-02-01T07:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2313030#M836500</link>
      <description>&lt;P&gt;My code 100% made sense. It you were unable to understand and that is a different story.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;it grouped the rows together. Anyhow your problem is solved that matters the most.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 13:03:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/2313030#M836500</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2022-02-01T13:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/3495823#M1156249</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not working for me. still getting same error.&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>Wed, 25 Oct 2023 08:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/3495823#M1156249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-25T08:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Column Error - There were too many elements in the enumeration to complete the operation.</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/4088684#M1294271</link>
      <description>&lt;P&gt;I had the same issue. I added an Index column before my pivot, as suggested by parry2k, and my pivot worked after that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 08:00:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Pivot-Column-Error-There-were-too-many-elements-in-the/m-p/4088684#M1294271</guid>
      <dc:creator>Anth79</dc:creator>
      <dc:date>2024-08-08T08:00:29Z</dc:date>
    </item>
  </channel>
</rss>

