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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
nbaudry
Frequent Visitor

Relation issue

Dear Forum,
Since a couple of days, I am dealing with an issue of relation table.
I have 5 tables:
- Calendar
- Project information
- Load of the projects
- Capacity of the project manager
- Project manager table
I need to analyze the load/capacity of the project manager sort by priority.
My issue in the summary tab I see also the project of Pierre but he hasn’t any project in priority 2.
Many thanks for your help
N.

File 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @nbaudry 

As tested, i make some transformations in your model.

( You could downlaod my pbix file, in Edit queries, open Advanced editor, you can see the M code and paste it in your file,

Or you can click on each step and find details for steps )

 

Steps below:

   In Edit queries:

1. in "capacity" table,

  1.1  merge queries from "project" table based on column "Name" (Capacity table), column "Project manager" ("project" table),

         when expanding, only select "id" to show on the "capacity" table.

  1.2 select "Name", "date", "Project.ID", merge columns, then we get a new column "name-date-id-capacity".

 

2. in "load" table, select "Project Manager", "date", "Project ID", merge columns, then we get a new column "name-date-id-load".

 

3. merge new queries from "capacity" table and  "load" table, based on "name-date-id-capacity" and "name-date-id-load",

    select "full outer" for "Join kind",  when expanding, only select "Load (days)" to show on this new table.

 

4. right click on the "capacity" table and  "load" table, uncheck "enable load", 

    in this case, the two tables won't show on the "Data Model" view, so to save the data size and improve performance for reports.

    Cloase&&apply.

 

In Relationship view.

Capture12.JPG

 

Finally,

Capture11.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

   

View solution in original post

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @nbaudry 

Is this problem sloved? 
If it is sloved, could you kindly accept it as a solution to close this case?
If not, please let me know.
 
Best Regards
Maggie
v-juanli-msft
Community Support
Community Support

Hi @nbaudry 

As tested, i make some transformations in your model.

( You could downlaod my pbix file, in Edit queries, open Advanced editor, you can see the M code and paste it in your file,

Or you can click on each step and find details for steps )

 

Steps below:

   In Edit queries:

1. in "capacity" table,

  1.1  merge queries from "project" table based on column "Name" (Capacity table), column "Project manager" ("project" table),

         when expanding, only select "id" to show on the "capacity" table.

  1.2 select "Name", "date", "Project.ID", merge columns, then we get a new column "name-date-id-capacity".

 

2. in "load" table, select "Project Manager", "date", "Project ID", merge columns, then we get a new column "name-date-id-load".

 

3. merge new queries from "capacity" table and  "load" table, based on "name-date-id-capacity" and "name-date-id-load",

    select "full outer" for "Join kind",  when expanding, only select "Load (days)" to show on this new table.

 

4. right click on the "capacity" table and  "load" table, uncheck "enable load", 

    in this case, the two tables won't show on the "Data Model" view, so to save the data size and improve performance for reports.

    Cloase&&apply.

 

In Relationship view.

Capture12.JPG

 

Finally,

Capture11.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

   

Hello Maggie,

 

Thanks a lot for your job and your time.

For the example I add only the project manager in the load tab but for my application I have the team members who are not in the project tab ... I have to make some tests but instead of to do this :

merge queries from "project" table based on column "Name" (Capacity table), column "Project manager" ("project" table),

         when expanding, only select "id" to show on the "capacity" table.

I will try to merge the capacity tab with the load tab.

Thanks again

Nicolas

Hi @nbaudry 

Feel free to let me know if you have any problem.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.