Help with using sum or average function idn Power Pivot measure and igniring the blank cells

rv02s

New Member
Joined
Jun 21, 2014
Messages
21
Hi All

I was wondering whether someone can help me with the following problem

I have a powerpivot and have created three measure using RANKX. These measures are called Rank1, Rank2 and Rank3. In these measure if cells are blank the rank will return a blank row i.e. it doesn't count it in the ranking.

What I need to do is crate another measure to add (Rank1 + Rank2 + Rank3) /3 but this measure doesn't seem to work of rows in Rank1 2 or 3 contain a blank, It returns a blank value if one of the ranks is blank.

What I want is a DAX measure to calculate Sum of (Rank1,2 and 3)/3 in table Employees and if any of the have a Blank, then ignores them i.e. if rank1 = Blank, Rank2=2 and Rank3=3 then it will just add (2+3)/2 and ignore rank1. but if rank1=2, rank2=3 and rank3=4 then the formula should be(2+3+4)/3, in other words I want to find the average of Rank1,2 and 3 and ignoring the blank cells.

I hope this makes sense, I've tried everything and I can seem to get a right answer.

my pivot table is like below (simple example)
Name Rank1 rank2 rank3
aaa 2 4
bbb 4 7 8
ccc 9 3

Names come from table called employee and rank 1,2 &3 are from tables called score1, score2 and score3. All tables have relationship to Employee table by Id so when the employee is listed it looks at the appropriate rank from score 1,2, and 3 tables to look at their ranks

any help is appreciate it
 

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.

Forum statistics

Threads
1,215,364
Messages
6,124,509
Members
449,166
Latest member
hokjock

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