Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating Parent-child hierarchies with MS Project data

I followed this 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.

 

leticiaerthal_0-1647971533055.png

 

Any ideas on what I should do? I'm new on Power BI and I've been searching about it for days.. 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

There must be two columns [Employee] and [Manager] in your table. Then you can use PATH function to get hierachy level.

Path = PATH(Employee[EmployeeId], Employee[ManagerId])

My Sample:

1.png

Then use PATHITEM to catch value in each level.

Level 1 = PATHITEM(Employee[Path], 1, 1)
Level 2 = PATHITEM(Employee[Path], 2, 1)

...

Due to there are blank values in your levels, I think you will get result in blank level.

Try this code.

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()))))

Result is as below. Left one is like yours and right one is the result based on measure.

1.png

 

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi!!

 

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.

 

Captura de tela 2022-03-25 103720.png

 



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.