Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

summarize percentile function not working as expected

BFritter
6 - Meteoroid

I am attempting to group customer sales by category using percentile to get a normal distribution. I cannot use a std dev because of the nature of the data the cluster toward the low end and the high variance would have -1 std dev from the median below 0. So I settled on running it through a percentile summarize and taking the 2.5, 13.5, 34, 34, 13.5, 2.5 as the thresholds for my groups to get an even distribution. But when i perform the percentile function it returns the raw value of sales, not a percentile ranking. has anyone ran into this. The percentile macro does not work for me because i believe it is std dev based and in some uncommon categories my lowest value will be 34 and highest will be 96. i attached a sample data set of what my expected/desired result is vs what the tool is spitting out.I just made up some data to keep it simple and for privacy reasons

StudentClassrawscorePercentile_rawscoreexpected result 
azmodiushistory1501505050th
brianhistory858500th
britneyhistory1841848080th
caseyhistory1551556060th
helgahistory86861010th
jaimehistory96962020th
jameshistory1251253030th
jennyhistory1301304040th
kellyhistory1651657070th
kristenhistory1881889090th
azmodiusmath4214219090th
brianmath1581581010th
britneymath2552556060th
caseymath2852857070th
helgamath2482484040th
jaimemath2352353030th
jamesmath2542545050th
jennymath2882888080th
kellymath14514500th
kristenmath2102102020th
azmodiuspe14514500th
brianpe2582584040th
britneype2312311010th
caseype2472472020th
helgape9559559090th
jaimepe7527528080th
jamespe2512513030th
jennype2652655050th
kellype5965967070th
kristenpe4564566060th

 

2 REPLIES 2
patrick_digan
17 - Castor
17 - Castor

@BFritter How about the attached.

 Capture.PNG

I used the sort tool to order the records by score. Then the multi-row formula ranks them within each class. Then the summarize gets the max rank per class. The find replace then adds the Max rank back to each class. The formula tool gets the percentile and multiplies it by 100.

 

Hopefully that's the direction you were looking to go!

BFritter
6 - Meteoroid

Thanks, this gets me where i wanted to go. I don't get why the percentile function doesn't do this though.

Labels