cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dandel
Frequent Visitor

Help with splitting capacity data per month

Hi there,

 

I require some help as am struggling to see how I can solve this problem.

I have two tables:

1. resource type and associated capacity per month

Dandel_0-1611346801116.png

2. resource usage per project per month

Dandel_2-1611346880304.png

Now I'm trying to use both sets of data to create the following view:

Dandel_3-1611346966942.png

where I want to plot the type of resource and its usage per month and compare it against the line of montlhy capacity.

The objective would be to be able to select one or more projects and for any type of project see for each month if we are above or below capacity.

 

Unfortunately if I try to create a relationship between the two tables I get a many to many mapping and because of that I cannot get the capacity to be calculated per month.

If I try to merge the two tables then I get the capacity duplicated in each project as per below (which again doesn't work):

Dandel_0-1611347804613.png

 

 

Can someone help please?

1 ACCEPTED SOLUTION
parry2k
Super User III
Super User III

@Dandel you need to create two extra dimension tables for the better design, a table for resource type and a date table, link these two tables on a respective column with these existing tables, these new dimension tables will have have unique values so it will be on to many relationship.

 

once this is all done, in your visual, use column from dimension on x-axis and legend and values from your existing tables and everything will work out.

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

4 REPLIES 4
parry2k
Super User III
Super User III

@Dandel do you have multiple rows for date + resource type in the resource capacity table?

 

Also can you change the aggregation from Average to Max or Min






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Dandel
Frequent Visitor

@parry2k thanks for the help!

It does make sense what you said but I am still not getting the right result.

 

I created and connected the tables as you said:

Dandel_0-1611349390742.png

but for example for BA I have a flat 300 capacity per month in my data but this is what the line looks like in the graphic:

Dandel_1-1611349516704.png

 

Any further ideas on what I am doing wrong?

Dandel
Frequent Visitor

@parry2k it actually worked! I was using the wrong slicer (should be using the dimension table one)

 

thank you so much once again! I'll accept your reply as the solution 🙂

parry2k
Super User III
Super User III

@Dandel you need to create two extra dimension tables for the better design, a table for resource type and a date table, link these two tables on a respective column with these existing tables, these new dimension tables will have have unique values so it will be on to many relationship.

 

once this is all done, in your visual, use column from dimension on x-axis and legend and values from your existing tables and everything will work out.

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.