How to filter data that is not required in a power pivot table?

Mavericks334

Active Member
Joined
Jan 26, 2011
Messages
280
Hi,

I have created a power pivot table with the below details [TABLE="width: 386"]
<COLGROUP><COL style="WIDTH: 59pt; mso-width-source: userset; mso-width-alt: 2889" width=79><COL style="WIDTH: 179pt; mso-width-source: userset; mso-width-alt: 8740" width=239><COL style="WIDTH: 148pt; mso-width-source: userset; mso-width-alt: 7204" width=197><TBODY>[TR]
[TD="width: 79"]Site ID[/TD]
[TD="width: 239"]Supervisior[/TD]
[TD="width: 197"]Employee Name[/TD]
[/TR]
</TBODY>[/TABLE]


the information i get here is from a few measures that i created, which works fine. When i add a rank field or Total working days it adds all the names of the people in the employees table, also it adds them under all 3 sites that i have.

how to rectify this problem. Below are the measures that i have written

Target Measure: =CALCULATE(Sumx('Employee Details',RELATED(Tenure[Target])))
Rank Measure: =(RANKX(All('Employee Details'),'SharePoint Data'[%Productivity], ,0))

I am assuming because i am using employee details it is giving me the total list of employees, who do i get the result for the rank or workingdays for the employees that in above calculated measure.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Interesting discovery. This seems to be due to the way RANKX works when the value is not found in the provided column.

As a work around, you might want to nest your rank expression in an IF function
IF( yourmeasure , yourexpression , BLANK())
 
Upvote 0
i added a new column with the sites name in the employee table, avoided that problem and then used and if with blank to avoid the rest.
 
Upvote 0

Forum statistics

Threads
1,224,065
Messages
6,176,171
Members
452,711
Latest member
officetraininglady

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