Forum Discussion

HannahM89's avatar
HannahM89
Copper Contributor
May 22, 2025

P4W relationships in PowerBi

Hi,

I've got tables loaded from project for the web. The project tasks and project dependencies but I can't see any corresponding relationship between the two. 

It the project_tasks table I've tried to expand the Project_dependency_ID column but when I do this I get an error saying that there are duplicates in the project task ID although there are none. 

Is there a way to create a relationship between these tables? 

4 Replies

  • HannahM89's avatar
    HannahM89
    Copper Contributor

    you can see attached that the tasks seem to be linking to themselves and not the dependency

  • goharclients03's avatar
    goharclients03
    Copper Contributor

    Hi, I’ve loaded Project_Tasks and Project_Dependencies from Project for the Web, but can’t see a clear relationship. Expanding Project_Dependency_ID in Project_Tasks gives a duplicate ID error, though there are no duplicates. How can I link these tables properly?

    • HannahM89's avatar
      HannahM89
      Copper Contributor

      I was originally using the free template however it didn't match the reporting needs of tracking the baseline tasks with actuals. I can now track the progress of baseline with actuals but in a gantt when trying to do dependencies the relationship doesn't seem to be correct. 

       

      I'm using the "msdyn_projecttask" for the tasks and "msdyn_projecttaskdependency" for the dependency, the only link i can see is with the msdyn_predecessor or msdyn_successor task ID in msdyn_projecttaskdependency table. I've used the msdyn_predecessor and linked it to the Project Task ID in msdyn_projecttask table. 

       

      However when I go to use this in a gantt it seems to recognize the predecessor as just the same task not a dependency if that makes sense. I originally thought that the Project Task ID and Dependency ID would match as it's in the same format but doesn't seem to match each other.

Resources