Struggling with my first use of Power Pivot

Theripped

New Member
Joined
Jun 12, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have been trying to learn and implement Power Pivot into my job recently. I've watched a few different YouTube tutorials on it and was able to complete each lesson with the worksheets provided. However, when I try a real world application and use Power Pivot to a workplace project I run into issues.

I have two Excel files. Let's call them "Workbook 1" and "Workbook 2." Workbook 1 has the columns "Employee Name" "Project" "Absence Type" "Shift" for absence type, there are 3 options "Late" "Call-Out" and "No Call No Show" and for "Shift" there are three options "Day" "Evening" "Overnight." Workbook 1 is a long table that tracks employees, the projects that they were absent for, and the specific shift they were supposed to work.

Workbook 2 has the columns "Project" "Total Shifts Day" "Total Shifts Evening" "Total Shifts Overnight" and "Total Shifts" that calculates the total for each Project.

I imported both sources from Excel files into Power Pivot successfully, the information looks good in the Data View. I went to Diagram view and formed a connection with "Project" to show that these are related.

I ultimately want to be able to show the % of shifts that were "Late" "Call Out" and "No Call No Show" for each shift for each Project. However when I go to make a Pivot Table and try to pull data together it says "Relationships between Tables may be needed" Auto Detect says nothing, but I'm not sure what to do when I hit "Create"

Am I on the right track here? What do I need to adjust to be able to achieve my goal of playing around with the two different data sets. Let me know if you need any more information
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Update, I think I got the relationship established between the two sources correct. However, I am still struggling to come up with a measure that can calculate and show me the percentages of Absence Type for each Project & Shift, based on the total amounts indicated in Workbook 2. I've watched some of the popular YouTube excel tutorials, but they're all very sales based and I'm struggling with applying the methods to this use case.
 
Upvote 0
How about you …
post an image of the diagram view,
confirm which columns are used in the relationships,
Create a pivot table that has some meaningful data on rows and columns, and sums the relevant numeric column from your data. Share an image

Then with the above, use that to explain the problem
 
Upvote 0
Ok, apologies for any confusion I cause in trying to explain this.

Workbook1 Data.png


Workbook1Data - I used Power Query to load-in the first data set "Workbook1Data" This shows Employee Name (omitted intentionally), Project, Absence Type (Call Out, Late, Sent Home, NCNS) and Shift (Day, Evening, Overnight). Also, I went back and changed the data set names in Power Query to match the intended tab names after taking these images.

Workbook2 Data.png


Workbook2Data - I used Power Query to upload the second data set as well. Workbook2Data shows the same Project List as the first column, however this table shows the total amount of shifts available per shift type per Project as well as the total amount of combined shifts per Project.

Power Pivot Relationship.png


Power Pivot - I opened up Power Pivot and it brought in both tables. I went to Diagram View and created a relationship between the Project Columns as those are the same.

Absence Type Per Project.png


PivotTable 1 - Here is the first useful PivotTable I created out of Power Pivot. This shows the total amount of Absence Types per Project. I do not know why Excel isn't sorting this by project correctly, but I'm not that concerned as this is only an example.

Absence Type Per Shift Per Project.png


PivotTable 2 -
This is the 2nd useful PivotTable I was able to create which gets even more granular. This table shows the Absence Type per Shift per Project.

Main Issue - I have not been able to bring the Workbook2 data over into the PivotTable in a useful manner. I ultimately want to be able to see:
- Based on the total available shifts per project, what is the % of absences per project
- Based on the total available shifts per Shift Type (Day, Evening, Overnight), what is the % of Absence Types per Project.
- Will want to see the %s for the grand totals for each table as well.

Those are the main issues I am trying to solve. Eventually, I would like to pull in a 3rd data source that shows every confirmed shift for each Employee and be able to see based off that data the % of absences they have over a given data set. But that's for another day.

Thanks, and let me know if you have any follow up questions!
 

Attachments

  • Workbook2 Data.png
    Workbook2 Data.png
    98.9 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,223,867
Messages
6,175,062
Members
452,610
Latest member
Sherijoe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top