<?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: Creating Parent-child hierarchies with MS Project data in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Parent-child-hierarchies-with-MS-Project-data/m-p/2417229#M35156</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There must be two columns [Employee] and [Manager] in your table. Then you can use PATH function to get hierachy level.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Path = PATH(Employee[EmployeeId], Employee[ManagerId])&lt;/LI-CODE&gt;
&lt;P&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 321px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/689844i1096C58897F04801/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then use&amp;nbsp;&lt;SPAN&gt;PATHITEM to catch value in each level.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Level 1 = PATHITEM(Employee[Path], 1, 1)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Level 2 = PATHITEM(Employee[Path], 2, 1)&lt;/LI-CODE&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Due to there are blank values in your levels, I think you will get result in blank level.&lt;/P&gt;
&lt;P&gt;Try this code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
IF(ISINSCOPE(Employee[Level 4]) = BLANK(),SUM(Employee[Index]),
IF(ISINSCOPE(Employee[Level 3]) = BLANK(),SUM(Employee[Index]),
IF(ISINSCOPE(Employee[Level 2]) = BLANK(),SUM(Employee[Index]),
IF(ISINSCOPE(Employee[Level 1]) = BLANK(),IF(ISBLANK(MAX(Employee[Level 2])),BLANK(), SUM(Employee[Index])),BLANK()))))&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below. Left one is like yours and right one is the result based on measure.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 796px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/689872i325457E1471ED8DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.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;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>Fri, 25 Mar 2022 08:36:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-25T08:36:09Z</dc:date>
    <item>
      <title>Creating Parent-child hierarchies with MS Project data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Parent-child-hierarchies-with-MS-Project-data/m-p/2410327#M35110</link>
      <description>&lt;P&gt;I followed &lt;A href="https://www.daxpatterns.com/parent-child-hierarchies/" target="_self"&gt;this&lt;/A&gt; tutorial to create a Parent-Child hierarchy on Power BI using MS Project data, but I ended up with blank lines and I can't filter them otherwise it'll hide multiple tasks. In the end of that tutorial they teach how to hide them, but their data is different from mine. Instead of "amount", I have the columns: start, finish, delay and % completed, I think that's why I can't solve the blank space problem with their solution.&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="leticiaerthal_0-1647971533055.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/688258iE5258A9DA77CD8D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leticiaerthal_0-1647971533055.png" alt="leticiaerthal_0-1647971533055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on what I should do? I'm new on Power BI and I've been searching about it for days..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 18:02:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Parent-child-hierarchies-with-MS-Project-data/m-p/2410327#M35110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-22T18:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Parent-child hierarchies with MS Project data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Parent-child-hierarchies-with-MS-Project-data/m-p/2417229#M35156</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There must be two columns [Employee] and [Manager] in your table. Then you can use PATH function to get hierachy level.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Path = PATH(Employee[EmployeeId], Employee[ManagerId])&lt;/LI-CODE&gt;
&lt;P&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 321px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/689844i1096C58897F04801/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then use&amp;nbsp;&lt;SPAN&gt;PATHITEM to catch value in each level.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Level 1 = PATHITEM(Employee[Path], 1, 1)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Level 2 = PATHITEM(Employee[Path], 2, 1)&lt;/LI-CODE&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Due to there are blank values in your levels, I think you will get result in blank level.&lt;/P&gt;
&lt;P&gt;Try this code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
IF(ISINSCOPE(Employee[Level 4]) = BLANK(),SUM(Employee[Index]),
IF(ISINSCOPE(Employee[Level 3]) = BLANK(),SUM(Employee[Index]),
IF(ISINSCOPE(Employee[Level 2]) = BLANK(),SUM(Employee[Index]),
IF(ISINSCOPE(Employee[Level 1]) = BLANK(),IF(ISBLANK(MAX(Employee[Level 2])),BLANK(), SUM(Employee[Index])),BLANK()))))&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below. Left one is like yours and right one is the result based on measure.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 796px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/689872i325457E1471ED8DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.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;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>Fri, 25 Mar 2022 08:36:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Parent-child-hierarchies-with-MS-Project-data/m-p/2417229#M35156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-25T08:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Parent-child hierarchies with MS Project data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Parent-child-hierarchies-with-MS-Project-data/m-p/2418043#M35163</link>
      <description>&lt;P&gt;Hi!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data doesn't have blank values. The column values that apears on the blank rows are from the parent task. I highlighted in the photo below where the data is and pointed to where it should be.&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-center" image-alt="Captura de tela 2022-03-25 103720.png" style="width: 610px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/690033i8D283C268C92090C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de tela 2022-03-25 103720.png" alt="Captura de tela 2022-03-25 103720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 13:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Parent-child-hierarchies-with-MS-Project-data/m-p/2418043#M35163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-25T13:41:46Z</dc:date>
    </item>
  </channel>
</rss>

