Simple Calculation using PIVOT

powerwill

Board Regular
Joined
Sep 14, 2018
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Hi Experts!

I have a simple problem, that I am looking to resolve. I am trying to get the Total % of Agents Meeting the Target which I haven't been able to figure out using the Pivot itself, and hence I am using a formula besides the Pivot so I can get the total percentage. (See the Yellow Columns/cells highlighted in the linked Excel Sheet)

Unlike the Total % of Audits meeting the target, I cannot seem to find a way around without using a separate formula. Can this be calculated within the same pivot, perhaps using a calculated field?

Link: Excel Sheet

Any help is appreciated!!
 
Apologies if I wasn't clear earlier.

I need to configure my Pivot to have a field that shows 1 or 100% for agents whose average score is greater than 92% and a 0 or 0% for people with average scores below 92%, so we can eliminate any functions or manual calculation in order to get the total % of Agents meeting the Target... All of this with only using Columns A, B, & C as the source data, is that possible? I use Office365. I need it in the pivot because its linked to an interactive Dashboard.
@SpillerBD would really appreciate your thoughts on this. Youll find the Excel sheet in the OP post. Any help is appreciated! ??
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Apologies if I wasn't clear earlier.

I need to configure my Pivot to have a field that shows 1 or 100% for agents whose average score is greater than 92% and a 0 or 0% for average scores below 92%, so we can eliminate any functions or manual calculation in order to get the total % of Agents meeting the Target... All of this with only using Columns A, B, & C as the source data, is that possible? I use Office365. I need it in the pivot because its linked to an interactive Dashboard.
@BSALV any suggestion is appreciated!
 
Upvote 0
the calculations have to be done in the table, there the agent gets a 0 or 1 depending on his average, so you have to add an auxiliary column.
mrexcel (1).xlsx
ABCDEFGHIJKLMN
1AgentAudit ScoreIf Target Metaverage if…RijlabelsAverage of If Target MetTarget meetTarget Met
2Abdul96%11Abdul100,00%1,001
3Abdul97%11TARGET92%Ahmed81,82%0,000
4Abdul98%11Alfred54,55%0,000
5Abdul100%11Eugene54,55%0,000
6Abdul100%11Krishna72,73%0,000
7Abdul100%11Liza54,55%0,000
8Abdul100%11Mary54,55%0,000
9Abdul100%11Monica54,55%0,000
10Abdul100%11Paul27,27%0,000
11Abdul100%11Peter54,55%0,000
12Abdul100%11Ralph100,00%1,001
13Ahmed56%00Simon100,00%1,001
14Ahmed87%00Sonya100,00%1,001
15Ahmed92%10Suzy100,00%1,001
16Ahmed99%10Eindtotaal72,08%0,3635,71%
17Ahmed100%10
18Ahmed100%10
19Ahmed100%10Total % of Agents Meeting Target35,71%
20Ahmed100%10Total % of Audits Meeting Target72,08%
21Ahmed100%10Total Average of Score#VERW!
22Ahmed100%10
Sheet1
Cell Formulas
RangeFormula
C2:C22C2=IF(B2>$G$3,1,0)
D2:D22D2=--(AVERAGEIF([Agent],[@Agent],[If Target Met])>=$G$3)
M2:M15M2=IF(J2>$G$3,1,0)
M16M16=AVERAGE(M2:M15)
I19I19=+GETPIVOTDATA("Target meet",$I$1)
I20I20=GETPIVOTDATA("Average of If Target Met",$I$1)
I21I21=GETPIVOTDATA("Average of Score",$I$1)
 
Upvote 0
Solution
the calculations have to be done in the table, there the agent gets a 0 or 1 depending on his average, so you have to add an auxiliary column.
mrexcel (1).xlsx
ABCDEFGHIJKLMN
1AgentAudit ScoreIf Target Metaverage if…RijlabelsAverage of If Target MetTarget meetTarget Met
2Abdul96%11Abdul100,00%1,001
3Abdul97%11TARGET92%Ahmed81,82%0,000
4Abdul98%11Alfred54,55%0,000
5Abdul100%11Eugene54,55%0,000
6Abdul100%11Krishna72,73%0,000
7Abdul100%11Liza54,55%0,000
8Abdul100%11Mary54,55%0,000
9Abdul100%11Monica54,55%0,000
10Abdul100%11Paul27,27%0,000
11Abdul100%11Peter54,55%0,000
12Abdul100%11Ralph100,00%1,001
13Ahmed56%00Simon100,00%1,001
14Ahmed87%00Sonya100,00%1,001
15Ahmed92%10Suzy100,00%1,001
16Ahmed99%10Eindtotaal72,08%0,3635,71%
17Ahmed100%10
18Ahmed100%10
19Ahmed100%10Total % of Agents Meeting Target35,71%
20Ahmed100%10Total % of Audits Meeting Target72,08%
21Ahmed100%10Total Average of Score#VERW!
22Ahmed100%10
Sheet1
Cell Formulas
RangeFormula
C2:C22C2=IF(B2>$G$3,1,0)
D2:D22D2=--(AVERAGEIF([Agent],[@Agent],[If Target Met])>=$G$3)
M2:M15M2=IF(J2>$G$3,1,0)
M16M16=AVERAGE(M2:M15)
I19I19=+GETPIVOTDATA("Target meet",$I$1)
I20I20=GETPIVOTDATA("Average of If Target Met",$I$1)
I21I21=GETPIVOTDATA("Average of Score",$I$1)
Perfect!!! Exactly what I needed. Thank you @BSALV for your kind attention and time. Also, thank you @GlennUK for your initial guidance.
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

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