Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: NthLargest Post Reply Post New Topic
Author Message
AndyLeates
Newbie
Newbie


Joined: 05 Oct 2011
Location: United Kingdom
Online Status: Offline
Posts: 23
Quote AndyLeates Replybullet Topic: NthLargest
    Posted: 15 Feb 2012 at 2:34am
I have the following formula in my report:
 
NthMostFrequent (1,{vTASKS_BROWSE.WOTYPE3}, {vTASKS_BROWSE.TYPE} )
 
WOTYPE3 is the category of a ticket on our Service Desk
TYPE is group "Incident" or "Service Request"
 
When I browse the data, I correctly see two values, the highest category for Incidents and the higest for Requests.
 
I really want to be able to work with each result in turn. Can I specify in the formula, just give me the highest value for this group? Something along the lines of below (which does not work!!)
 
NthMostFrequent (2,{vTASKS_BROWSE.WOTYPE3}, {vTASKS_BROWSE.TYPE = "Incident"} )
 
Thanks for any pointers
 
Andy
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Feb 2012 at 3:37am

if you place your formula field in the group header or footer then it will return the value you want in each of the groups. You can conditionally suppress the one you do not want to appear.

you can use a running total to get the value you want using an evaluation formula but this can only be used in footers.
 
You can create a formula field to 'remove' (null) the all rows that are not incident rows and do the NthMostFrequent on that formula field.


Edited by DBlank - 15 Feb 2012 at 3:38am
IP IP Logged
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.016 seconds.