<?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: Loop to create table in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Loop-to-create-table/m-p/2069541#M31670</link>
    <description>&lt;P&gt;I think I have to use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;List.Accumulate({1, 2, 3, 4, 5}, 0, (state, current) =&amp;gt; state + current),&lt;/LI-CODE&gt;&lt;P&gt;But does it work with Tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2021 17:30:58 GMT</pubDate>
    <dc:creator>JackSoderstrom</dc:creator>
    <dc:date>2021-09-10T17:30:58Z</dc:date>
    <item>
      <title>Loop to create table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Loop-to-create-table/m-p/2069509#M31669</link>
      <description>&lt;P&gt;Making a custom navigation table. How would I have a loop to create this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let

        ColumnNames = Table.ColumnNames(DatabaseRecords(num)),

        objects = #table(
            {"Name",         "Key",   "Data",                                                    "ItemKind", "ItemName", "IsLeaf"},{

            {ColumnNames{0}, ColumnNames{0}, Table.Column(DatabaseRecords(num), ColumnNames{0}), "Table",    "Table",    true},
            {ColumnNames{1}, ColumnNames{1}, Table.Column(DatabaseRecords(num), ColumnNames{1}), "Table",    "Table",    true},
            {ColumnNames{2}, ColumnNames{2}, Table.Column(DatabaseRecords(num), ColumnNames{2}), "Table",    "Table",    true},
            {ColumnNames{3}, ColumnNames{3}, Table.Column(DatabaseRecords(num), ColumnNames{3}), "Table",    "Table",    true},
            {ColumnNames{4}, ColumnNames{4}, Table.Column(DatabaseRecords(num), ColumnNames{4}), "Table",    "Table",    true},
            {ColumnNames{5}, ColumnNames{5}, Table.Column(DatabaseRecords(num), ColumnNames{5}), "Table",    "Table",    true},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now its hard coded to iterate through. I want a loop that goes through 0-5 to create these. Do I utilize list.genertate? if so how?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 17:11:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Loop-to-create-table/m-p/2069509#M31669</guid>
      <dc:creator>JackSoderstrom</dc:creator>
      <dc:date>2021-09-10T17:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to create table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Loop-to-create-table/m-p/2069541#M31670</link>
      <description>&lt;P&gt;I think I have to use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;List.Accumulate({1, 2, 3, 4, 5}, 0, (state, current) =&amp;gt; state + current),&lt;/LI-CODE&gt;&lt;P&gt;But does it work with Tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 17:30:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Loop-to-create-table/m-p/2069541#M31670</guid>
      <dc:creator>JackSoderstrom</dc:creator>
      <dc:date>2021-09-10T17:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to create table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Loop-to-create-table/m-p/2072523#M31721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/316811"&gt;@JackSoderstrom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you show me your DatabaseRecords(num) Table? Or you can share a easy sample which was got data by enter data. You can show me a screenshot that you the result you want. This will make it easier for me to know your requirement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a Offical blog for List.Accumulate function.&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/powerquery-m/list-accumulate" target="_self"&gt;List.Accumulate&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 10:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Loop-to-create-table/m-p/2072523#M31721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-13T10:03:50Z</dc:date>
    </item>
  </channel>
</rss>

