<?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: Project Online - Load custom Issues / Risks in PBI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Project-Online-Load-custom-Issues-Risks-in-PBI/m-p/847198#M21409</link>
    <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may take a look at the post below.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Formula-Firewall-Query-references-other-queries-so-it-may-not/m-p/18619#M5534" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Formula-Firewall-Query-references-other-queries-so-it-may-not/m-p/18619#M5534&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2019 08:21:18 GMT</pubDate>
    <dc:creator>v-chuncz-msft</dc:creator>
    <dc:date>2019-11-15T08:21:18Z</dc:date>
    <item>
      <title>Project Online - Load custom Issues / Risks in PBI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Project-Online-Load-custom-Issues-Risks-in-PBI/m-p/845338#M21407</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;New to PowerBI and I'm struggling with the following. I have a number of projects in a PWA online, and I have gotten the core data from there using the Project Online PowerBi Template app from &lt;A href="https://github.com/OfficeDev/Project-Power-BI-Templates/tree/master/Project%20Online" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trouble I am having is that the issues and risks lists for each project have additional custom fields that I would like to show in PBI and that aren't part of the template app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to query these lists using the sharepoint api and hence load the additional data that is missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I am having trouble is loading the data in the actual Risks or Issues table in PBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Focusing on the Issues table, for each custom field, I would like to add a custom column based on a function that would do these three things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For each issue, lookup the [Project Workspace Internal Url] (the sharepoint url). This value is available in the Projects table. I have managed to achieve this with the following custom column:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Custom = (let issueprojectid = [Project Id] in Table.SelectRows(Projects, each [Project Id] = issueprojectid)){0}[Project Workspace Internal Url]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;For each issue, lookup the issue number id (not guid), because that is the id that can be looked up in the sharepoint api (see next point). I have been able to achieve this by extracting the id into a custom column from the [Item Relative Path Url] which is available in the Issues or Risks table and has this format: "Lists/Issues/1_.000". The ID number is the "1" in that string. I have not been able to write this into a function.&lt;/LI&gt;&lt;LI&gt;Once I have the Issue Project Workspace URL and ID, I need to query the sharepoint site for the custom field, I am able to do so with hardcoded values in the following function:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let Source = OData.Feed("ProjectWorspaceInternalURL/_api/web/lists/GetByTitle('Issues')/Items(ID)?$Select=CustomField", null, [Implementation="2.0"])
in Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an alternate approach, I tried to create a custom column for the URL, another with the extracted ID, then finally a column that looked up the custom field value for the issue. Alas, this resulted in an error that stated: &lt;EM&gt;"Formula.Firewall: Query 'QueryName' (step 'StepName') references other queries or steps and so may not directly access a data source. Please rebuild this data combination"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help you could provide in combining the three requirements into a single function would be greatly appreciated. I am simply banging my head against the wall at this point!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 20:43:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Project-Online-Load-custom-Issues-Risks-in-PBI/m-p/845338#M21407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-13T20:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Project Online - Load custom Issues / Risks in PBI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Project-Online-Load-custom-Issues-Risks-in-PBI/m-p/847198#M21409</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may take a look at the post below.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Formula-Firewall-Query-references-other-queries-so-it-may-not/m-p/18619#M5534" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Formula-Firewall-Query-references-other-queries-so-it-may-not/m-p/18619#M5534&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 08:21:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Project-Online-Load-custom-Issues-Risks-in-PBI/m-p/847198#M21409</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2019-11-15T08:21:18Z</dc:date>
    </item>
  </channel>
</rss>

