Percentile function in pivot table

youra6

Board Regular
Joined
Mar 31, 2014
Messages
95
Hi All,

Since it's pretty much impossible to do percentiles on Pivot Table, I found that this formula almost gets me to my goal:

link here: (http://stackoverflow.com/questions/...ot-table-to-summarise-data-by-sub-populations)

r0UE8.jpg



Code:
{[FONT=Consolas]=PERCENTILE(IF(Table1[SubPopID]=F$1,Table1[Value],""),$E2/100)}[/FONT]

but what if I wanted to add some more parameters? The AND function doesn't seem to work here, does it have something to do with the fact that its a array function?

This is what I have, derived from the formula above:

Code:
{=PERCENTILE(IF(AND(Table3[Month]=A$246,Table3[Ticket Category]=$M$242,Table3[Ticket Initiation]= $M$243),Table3[TTT Source],""),0.95)}

Thanks!
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Should have scrolled down on the linked page. The solution is below. hehe...

Here is the solution:




<tbody>
[TD="class: votecell"][/TD]
[TD="class: answercell"]If you need to check a condition for more than one column (a=1 AND b=2) you can expand the array using the * character

Code:
[FONT=Consolas]=PERCENTILE((IF((Table1[SubPopID]=[condition1]) * (Table1[SubPopID2]=[condition2]),Table1[Value]),""),$E2/100)[/FONT]
[/TD]

</tbody>

Can someone tell me what the "*" does here?
 
Upvote 0
Here is my take, prepared before I saw your solution
Excel Workbook
ABCDE
4sright0.9550.1
5
6
7
8
9ticket categoryTicket initiationColumn3Column4
10aleft23
11sright24
12dleft28
13sright33
14wleft44
15sright52
16sleft69
17dright85
18aleft3
Sheet1



In your solution the "*" is simply a multiplier.
In your first attempt you tried AND function that does not work with the arrays. The multiplier achieves the same result that you were trying for.
My method with 2 levels of IF is a bit different but gets the same result
 
Upvote 0
Hi, I just wanted to say thanks for your response and your help. Thank you for the explanation as well.
 
Upvote 0

Forum statistics

Threads
1,224,889
Messages
6,181,611
Members
453,057
Latest member
LE102024

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