<?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 through sources in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/75733#M2592</link>
    <description>&lt;P&gt;Hey antonb,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you built your own Visual or you want take your third party data in Power BI?&lt;/P&gt;&lt;P&gt;sry when i missunderstand your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mcburn&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2016 12:55:18 GMT</pubDate>
    <dc:creator>Mcburn</dc:creator>
    <dc:date>2016-10-06T12:55:18Z</dc:date>
    <item>
      <title>loop through sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/75640#M2582</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to this community so I hope that i got the location right..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;background:&lt;/P&gt;&lt;P&gt;I want to build someting around the webAPI's of the task tool Nozbe. You can organize your tasks in projects. I want all the tasks and all the projects so I can see the progress of tasks done. basically just because i thing this should be able with Power BI and I want to improve my Power BI skills.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;current situation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;api for projects fills my project tables (&lt;A href="https://webapp.nozbe.com/api/projects/" target="_blank"&gt;https://webapp.nozbe.com/api/projects/&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but then I have to call the taks below based on the project ID. (&lt;A href="https://webapp.nozbe.com/api/actions/what-project/id-????/" target="_blank"&gt;https://webapp.nozbe.com/api/actions/what-project/id-????/&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I ve used the combine function&amp;nbsp;to combine multiple queries (taks for project x, y, z).. but that is too fixed (I don't want to&amp;nbsp;change code when&amp;nbsp;I make&amp;nbsp;&amp;nbsp;a new project)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it posible to use a parameter to call the taks of a project and then loop through it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so in simplified code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For each [&lt;EM&gt;projectid]&lt;/EM&gt; in Projects do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; tablewithtasks = tablewithtasks + call:&amp;nbsp;&lt;A href="https://webapp.nozbe.com/api/actions/what-project/id-" target="_blank"&gt;https://webapp.nozbe.com/api/actions/what-project/id-&lt;/A&gt;[&lt;EM&gt;projectid]&lt;/EM&gt;&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;Anton&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 10:22:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/75640#M2582</guid>
      <dc:creator>antonb</dc:creator>
      <dc:date>2016-10-06T10:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: loop through sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/75733#M2592</link>
      <description>&lt;P&gt;Hey antonb,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you built your own Visual or you want take your third party data in Power BI?&lt;/P&gt;&lt;P&gt;sry when i missunderstand your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mcburn&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 12:55:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/75733#M2592</guid>
      <dc:creator>Mcburn</dc:creator>
      <dc:date>2016-10-06T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: loop through sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/76089#M2605</link>
      <description>&lt;P&gt;hi Mcburn,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's all about getting third party data via API's&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 07:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/76089#M2605</guid>
      <dc:creator>antonb</dc:creator>
      <dc:date>2016-10-07T07:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: loop through sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/76645#M2636</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;It's all about getting third party data via API's&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/15193"&gt;@antonb﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I got your idea correctly, you could store the parameters in one column and call the API row by row. Check a simple demo below. You could check the returned json by clicking &lt;A href="http://api.openweathermap.org/data/2.5/forecast/city?id=524901&amp;amp;APPID=76acd9a867adb4cd9120298d16b3655f" target="_self"&gt;Moscow weather json&lt;/A&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="Capture.PNG" style="width: 359px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/16125i16809C63C833BF87/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;PRE&gt;let
    Source = Table.FromRecords({  
  
    [city= "Moscow",cid=524901],  
  
    [city= "Paris",cid=2988507],  
  
    [city= "London",cid=2643743]}),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"cid", type text}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "responseJson", each Json.Document(Web.Contents("http://api.openweathermap.org/data/2.5/forecast/city?id="&amp;amp;[cid]&amp;amp;"&amp;amp;APPID=76acd9a867adb4cd9120298d16b3655f")))
in
    #"Added Custom"&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Oct 2016 08:09:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/76645#M2636</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-10-10T08:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: loop through sources</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/76815#M2649</link>
      <description>&lt;P&gt;thanks.. that&amp;nbsp;helped a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now have a query that starts with the projects. Than within the same query a extra column is added with the&amp;nbsp;JSON request (with a variable of the&amp;nbsp;projectsID). &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 14:24:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/loop-through-sources/m-p/76815#M2649</guid>
      <dc:creator>antonb</dc:creator>
      <dc:date>2016-10-10T14:24:05Z</dc:date>
    </item>
  </channel>
</rss>

