Solved

PowerPivot - Count the Values that were in a Previous Period but Not in Current Period

Posted on 2014-12-18
3
119 Views
Last Modified: 2014-12-25
I'm working to calculate a Turnover Report. I've got an export of Employee ID's by week and would like to count the number of Employees ID's that did not return from working the previous week.

Basically Count the entries that didn't reoccur.

I've attached a basic version of the file I've started with the data loaded into PowerPivot via a Linked Table along with a Calendar Table.

If you look at the data an example would be that EmployeeID 1158 worked on 11/2/2014, but didn't work on 11/9/2014. I want to be able to count all the various EmployeeID's where this is the case. So the count of Employees that worked in the previous week, but not in the current week. In this example the count would be under Week 11/9/2014.
0
Comment
Question by:thomas-sherrouse
3 Comments
 
LVL 23

Expert Comment

by:Eirman
ID: 40507337
Try again with the attachment.
0
 

Author Comment

by:thomas-sherrouse
ID: 40507349
Sorry File attached
TurnoverExample-PowerPivot.xlsx
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 40508988
You could create a new calculated column to show the employee id only for rows where the employee didn't work the following week:
=if(isblank(countrows(filter(EmployeeList,EmployeeList[EmployeeID]=earlier(EmployeeList[EmployeeID])&&EmployeeList[WeekWorked]=earlier(EmployeeList[Next Week])))),EmployeeList[EmployeeID],blank())

then you would need to use your 'Next week' column as the date grouping and count the distinct rows for the new column.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now