<?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: Looping Sources in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/178697#M5774</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There are links already in this table, but every link gives list of positions of demand in request with id selected.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hostname"&gt;&lt;A href="https://online.moysklad.ru/api/remap/1.1" target="_blank"&gt;https://online.moysklad.ru/api/remap/1.1&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/entity/demand/&lt;STRONG&gt;51a95d05-7901-11e3-9575-002590a28eca&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/positions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
    Источник = Json.Document(Web.Contents("https://online.moysklad.ru/api/remap/1.1/entity/demand/51a95d05-7901-11e3-9575-002590a28eca/positions")),
    rows = Источник[rows],
    #"Преобразовано в таблицу" = Table.FromList(rows, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Развернутый элемент Column1" = Table.ExpandRecordColumn(#"Преобразовано в таблицу", "Column1", {"meta", "id", "accountId", "quantity", "price", "discount", "vat", "assortment", "overhead"}, {"Column1.meta", "Column1.id", "Column1.accountId", "Column1.quantity", "Column1.price", "Column1.discount", "Column1.vat", "Column1.assortment", "Column1.overhead"})
in
    #"Развернутый элемент Column1"&lt;/PRE&gt;&lt;P&gt;and it gives me list of postions for &amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;51a95d05-7901-11e3-9575-002590a28eca&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;demand&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Безымянный.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/42089iCF58E7899DC2BC88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Безымянный.png" alt="Безымянный.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to load table with list of positions of all demands concatenated like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each demand id&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; concatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; load&amp;nbsp;&lt;SPAN class="hostname"&gt;&lt;A href="https://online.moysklad.ru/api/remap/1.1" target="_blank"&gt;https://online.moysklad.ru/api/remap/1.1&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/entity/demand/&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="hljs-attribute"&gt;{id}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;/positions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and get single table as a result&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2017 08:48:26 GMT</pubDate>
    <dc:creator>dmqeaz</dc:creator>
    <dc:date>2017-05-19T08:48:26Z</dc:date>
    <item>
      <title>Looping source in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/177099#M5745</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm new to PowerBI, hope to get some help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to build someting around the json webAPI's of MoySklad. There stored demands with links to their positions, that contains links to products. Link for demand's positions looks like this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hostname"&gt;&lt;A href="https://online.moysklad.ru/api/remap/1.1" target="_blank"&gt;https://online.moysklad.ru/api/remap/1.1&lt;/A&gt;&lt;/SPAN&gt;/entity/demand/&lt;STRONG&gt;{id}&lt;/STRONG&gt;/positions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for one Demand code looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;let
    Источник = Json.Document(Web.Contents("https://online.moysklad.ru/api/remap/1.1/entity/demand/&lt;STRONG&gt;ad760bfb-7b5c-11e3-49fe-002590a28eca&lt;/STRONG&gt;/positions")),
    rows = Источник[rows],
    #"Преобразовано в таблицу" = Table.FromList(rows, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Развернутый элемент Column1" = Table.ExpandRecordColumn(#"Преобразовано в таблицу", "Column1", {"meta", "id", "accountId", "quantity", "price", "discount", "vat", "assortment", "overhead"}, {"Column1.meta", "Column1.id", "Column1.accountId", "Column1.quantity", "Column1.price", "Column1.discount", "Column1.vat", "Column1.assortment", "Column1.overhead"}),
    #"Развернутый элемент Column1.assortment" = Table.ExpandRecordColumn(#"Развернутый элемент Column1", "Column1.assortment", {"meta"}, {"Column1.assortment.meta"}),
    #"Развернутый элемент Column1.assortment.meta" = Table.ExpandRecordColumn(#"Развернутый элемент Column1.assortment", "Column1.assortment.meta", {"href"}, {"Column1.assortment.meta.href"})
in
    #"Развернутый элемент Column1.assortment.meta"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to load &lt;STRONG&gt;all&lt;/STRONG&gt; the position for&amp;nbsp;&lt;STRONG&gt;all&lt;/STRONG&gt; the demands so I can drill down my analysis to products level. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;basically i understand, that i need loop my request with demand's IDs, but is&amp;nbsp;Power BI able to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 08:49:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/177099#M5745</guid>
      <dc:creator>dmqeaz</dc:creator>
      <dc:date>2017-05-17T08:49:41Z</dc:date>
    </item>
    <item>
      <title>Looping Sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/177097#M5766</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm new to PowerBI, hope to get some help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to build someting around the json webAPI's of MoySklad. There stored demands with links to their positions, that contains links to products. Link for demand's positions looks like this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hostname"&gt;&lt;A href="https://online.moysklad.ru/api/remap/1.1" target="_blank"&gt;https://online.moysklad.ru/api/remap/1.1&lt;/A&gt;&lt;/SPAN&gt;/entity/demand/{id}/positions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for one Demand code looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;let
    Источник = Json.Document(Web.Contents("https://online.moysklad.ru/api/remap/1.1/entity/demand/ad760bfb-7b5c-11e3-49fe-002590a28eca/positions")),
    rows = Источник[rows],
    #"Преобразовано в таблицу" = Table.FromList(rows, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Развернутый элемент Column1" = Table.ExpandRecordColumn(#"Преобразовано в таблицу", "Column1", {"meta", "id", "accountId", "quantity", "price", "discount", "vat", "assortment", "overhead"}, {"Column1.meta", "Column1.id", "Column1.accountId", "Column1.quantity", "Column1.price", "Column1.discount", "Column1.vat", "Column1.assortment", "Column1.overhead"}),
    #"Развернутый элемент Column1.assortment" = Table.ExpandRecordColumn(#"Развернутый элемент Column1", "Column1.assortment", {"meta"}, {"Column1.assortment.meta"}),
    #"Развернутый элемент Column1.assortment.meta" = Table.ExpandRecordColumn(#"Развернутый элемент Column1.assortment", "Column1.assortment.meta", {"href"}, {"Column1.assortment.meta.href"})
in
    #"Развернутый элемент Column1.assortment.meta"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to load all the position for&amp;nbsp;all the demands so I can drill down my analysis to products level. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;basically i understand, that i need loop my request with demand's IDs, but is&amp;nbsp;Power BI able to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 08:45:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/177097#M5766</guid>
      <dc:creator>dmqeaz</dc:creator>
      <dc:date>2017-05-17T08:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/178474#M5770</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/30645"&gt;@dmqeaz&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm new to PowerBI, hope to get some help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to build someting around the json webAPI's of MoySklad. There stored demands with links to their positions, that contains links to products. Link for demand's positions looks like this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hostname"&gt;&lt;A href="https://online.moysklad.ru/api/remap/1.1" target="_blank"&gt;https://online.moysklad.ru/api/remap/1.1&lt;/A&gt;&lt;/SPAN&gt;/entity/demand/{id}/positions&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for one Demand code looks like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;let
    Источник = Json.Document(Web.Contents("https://online.moysklad.ru/api/remap/1.1/entity/demand/ad760bfb-7b5c-11e3-49fe-002590a28eca/positions")),
    rows = Источник[rows],
    #"Преобразовано в таблицу" = Table.FromList(rows, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Развернутый элемент Column1" = Table.ExpandRecordColumn(#"Преобразовано в таблицу", "Column1", {"meta", "id", "accountId", "quantity", "price", "discount", "vat", "assortment", "overhead"}, {"Column1.meta", "Column1.id", "Column1.accountId", "Column1.quantity", "Column1.price", "Column1.discount", "Column1.vat", "Column1.assortment", "Column1.overhead"}),
    #"Развернутый элемент Column1.assortment" = Table.ExpandRecordColumn(#"Развернутый элемент Column1", "Column1.assortment", {"meta"}, {"Column1.assortment.meta"}),
    #"Развернутый элемент Column1.assortment.meta" = Table.ExpandRecordColumn(#"Развернутый элемент Column1.assortment", "Column1.assortment.meta", {"href"}, {"Column1.assortment.meta.href"})
in
    #"Развернутый элемент Column1.assortment.meta"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to load all the position for&amp;nbsp;all the demands so I can drill down my analysis to products level. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;basically i understand, that i need loop my request with demand's IDs, but is&amp;nbsp;Power BI able to do this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Dmitry&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/30645"&gt;@dmqeaz&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;For loop, I guess there's a table containing the ids? If yes, you can try to add custom column as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/42022iA193AD6F86EBE4AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, for your case, I don't think loop in Power BI is a good idea. For me, I'd loop and save the hanlded result by writing a C# console application(can be scheduled to running in a certain interval) in a csv file or database. The connect to the file or DB in Power BI.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 03:05:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/178474#M5770</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-19T03:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/178697#M5774</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There are links already in this table, but every link gives list of positions of demand in request with id selected.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hostname"&gt;&lt;A href="https://online.moysklad.ru/api/remap/1.1" target="_blank"&gt;https://online.moysklad.ru/api/remap/1.1&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/entity/demand/&lt;STRONG&gt;51a95d05-7901-11e3-9575-002590a28eca&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/positions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
    Источник = Json.Document(Web.Contents("https://online.moysklad.ru/api/remap/1.1/entity/demand/51a95d05-7901-11e3-9575-002590a28eca/positions")),
    rows = Источник[rows],
    #"Преобразовано в таблицу" = Table.FromList(rows, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Развернутый элемент Column1" = Table.ExpandRecordColumn(#"Преобразовано в таблицу", "Column1", {"meta", "id", "accountId", "quantity", "price", "discount", "vat", "assortment", "overhead"}, {"Column1.meta", "Column1.id", "Column1.accountId", "Column1.quantity", "Column1.price", "Column1.discount", "Column1.vat", "Column1.assortment", "Column1.overhead"})
in
    #"Развернутый элемент Column1"&lt;/PRE&gt;&lt;P&gt;and it gives me list of postions for &amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;51a95d05-7901-11e3-9575-002590a28eca&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;demand&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Безымянный.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/42089iCF58E7899DC2BC88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Безымянный.png" alt="Безымянный.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to load table with list of positions of all demands concatenated like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each demand id&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; concatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; load&amp;nbsp;&lt;SPAN class="hostname"&gt;&lt;A href="https://online.moysklad.ru/api/remap/1.1" target="_blank"&gt;https://online.moysklad.ru/api/remap/1.1&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/entity/demand/&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="hljs-attribute"&gt;{id}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;/positions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and get single table as a result&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 08:48:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Looping-source-in-PowerBI/m-p/178697#M5774</guid>
      <dc:creator>dmqeaz</dc:creator>
      <dc:date>2017-05-19T08:48:26Z</dc:date>
    </item>
  </channel>
</rss>

