<?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: Fill up groups  of values in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694264#M51549</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188484" data-lia-user-login="rmeng" class="lia-mention lia-mention-user"&gt;rmeng&lt;/a&gt;&amp;nbsp;Would be a piece of cake if you had each row labeled with A, B, C. Then you could just group. What is the logic behind how these things group together?&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2021 13:43:16 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2021-02-28T13:43:16Z</dc:date>
    <item>
      <title>Fill up groups  of values</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694229#M51546</link>
      <description>&lt;P&gt;Is it possible with power query to transform table 1 into table 2? Can you help me.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 11:33:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694229#M51546</guid>
      <dc:creator>rmeng</dc:creator>
      <dc:date>2021-02-28T11:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fill up groups  of values</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694264#M51549</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188484" data-lia-user-login="rmeng" class="lia-mention lia-mention-user"&gt;rmeng&lt;/a&gt;&amp;nbsp;Would be a piece of cake if you had each row labeled with A, B, C. Then you could just group. What is the logic behind how these things group together?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 13:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694264#M51549</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-02-28T13:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fill up groups  of values</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694301#M51550</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;A, B , C are random text inside a cell. There´s no rules there, As you told I´ll try to do a Group BY?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 15:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694301#M51550</guid>
      <dc:creator>rmeng</dc:creator>
      <dc:date>2021-02-28T15:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fill up groups  of values</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694367#M51553</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188484" data-lia-user-login="rmeng" class="lia-mention lia-mention-user"&gt;rmeng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this requires some Table.ToColumns, some transformation of the list created and then Table.FromColumns. What I cannot see from your data if on some point the number changes, what would lead then in repeating my transformation of tables to multiple entities. In this case you would need to group your data and apply my solution as function to it. Here the solution to the data provided by you&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUQKiCAgFRbE6cAmEXASmDC4dyJpw6EBIOOIyywmXhDOGRCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Numero = _t, A = _t, B = _t, C = _t, D = _t, E = _t, F = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Numero", Int64.Type}, {"A", type text}, {"B", type text}, {"C", type text}, {"D", type text}, {"E", type text}, {"F", type text}}),
    ToColumns = Table.ToColumns(#"Changed Type"),
    MaxLenghtOfColumn = List.Max(List.Transform(List.RemoveFirstN(ToColumns), each List.Count(List.Select(_, each _ &amp;lt;&amp;gt;"")) )),
    TransformColumnDeleteEmpty = List.Transform
    (
        ToColumns,
        each List.FirstN(List.Select(_,each _ &amp;lt;&amp;gt;""), MaxLenghtOfColumn)
    ),
    
    FromColumns = Table.FromColumns
    (
        TransformColumnDeleteEmpty,
        Table.ColumnNames(#"Changed Type")
    )
in
    FromColumns&lt;/LI-CODE&gt;
&lt;P&gt;this transforms this&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;into this&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copy paste this code to the advanced editor in a new blank query to see how the solution works.&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt; or &lt;STRONG&gt;solves &lt;/STRONG&gt;your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)&lt;BR /&gt;Kudoes are nice too&lt;BR /&gt;&lt;BR /&gt;Have fun&lt;BR /&gt;&lt;BR /&gt;Jimmy&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 16:09:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Fill-up-groups-of-values/m-p/1694367#M51553</guid>
      <dc:creator>Jimmy801</dc:creator>
      <dc:date>2021-02-28T16:09:04Z</dc:date>
    </item>
  </channel>
</rss>

