Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: PthPercentile for a group Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Jan 2015 at 10:27am
maybe just create a concatenated formula field with the 3 items in question and group on that fomrula field then use the Pth on that grouping?
 
IP IP Logged
scott.morrison
Newbie
Newbie


Joined: 13 Jan 2015
Online Status: Offline
Posts: 12
Quote scott.morrison Replybullet Posted: 28 Jan 2015 at 10:41am
says a field is required here. tried with and without parentheses around the concatenation

PthPercentile(90,{@elapsed Time}, ({Call_Types.descr}&{Call_Sources.descr}&{@Zones}))
V/R
Scott
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Jan 2015 at 10:46am

Sorry, I was not clear.

in the main report create a formula field called whatever I'll use "concat" in the example
//concat
 
In the report replace all 3 levels of your groups with one group using the @concat formula field
Now on that one grouping use the Pth 
 
PthPercentile(90,{@elapsed Time}, {@concat})
 
IP IP Logged
scott.morrison
Newbie
Newbie


Joined: 13 Jan 2015
Online Status: Offline
Posts: 12
Quote scott.morrison Replybullet Posted: 28 Jan 2015 at 10:51am
so now I did that and now it says there must be a group that matches this field. I appreciate all your help by the way! still a little new to crystal and trying to get into some of these advanced functions.
V/R
Scott
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Jan 2015 at 10:57am

in your group expert you should have only one group which is grouping on your new formual field called "concat"

You should no longer be grouping on Zone, Source or Type
IP IP Logged
scott.morrison
Newbie
Newbie


Joined: 13 Jan 2015
Online Status: Offline
Posts: 12
Quote scott.morrison Replybullet Posted: 29 Jan 2015 at 7:53am
Ok so I have another one I am trying to do. I am returning a count and a percentile for total calls by hour. I am counting the call number (a unique id) for each hour then dividing by date to find average calls per hour. How can i find 90th percentile by hour? the field available are    table.date, table.callnumber, table.calltime
V/R
Scott
IP IP Logged
<< Prev Page  of 2
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.035 seconds.