Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Need Help with Bottom N where N is Post Reply Post New Topic
Author Message
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Topic: Need Help with Bottom N where N is
    Posted: 09 May 2017 at 9:19am
I created a Crosstab and Graph that display Bottom N where N is 20 but then any of the record that came back with 1 are on it. Is there a way to say I want the Bottom N where N=20 and any record that is greater than 10?

Example:

Name        Sale
Bot1        1
Bot2        1
Bot3        1
Bot4        1
Bot5        1


I want to show

Name        Sale
Bot6        11
Bot7        23
Bot8        54
Bot9        27
Bot10       123



Thanks!!!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 May 2017 at 10:13am
try adding a group select criteria.
I think that is applied before the Bottom N criteria is.
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 11 May 2017 at 7:45am
Thanks! I am going to give it a try.
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 12 May 2017 at 4:33am
i forgot to mention that I have two cross tab. One for Top 20 and One for Bottom 20. How would that work?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 12 May 2017 at 7:12am
You might have to do them as two sub reports and apply the criteria to each sub report differently.
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 12 May 2017 at 8:29am
That might be a good solution to it. Let me try it. Thanks!
IP IP Logged
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Posted: 18 May 2017 at 12:31pm
Nope it didn't work.

So the problem is that even If I were to remove the Top N (N=20) and just have the Bottom N (N=20), it's still showing all the 1's.

I just want to show Bottom N (N=20) where Sale>15. I tried that on Select Expert but getting "This function cannot be used because it must be evaluated later" when using formula or runningtotals.

Help!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 May 2017 at 2:53am
I assume you are using a summary function for whatever you are evaluating of the top or bottom 20. If that is the case then that same group summary can be used as a Group Select criteria e.g.
SUM(table.amount,table.customer)>1

Edited by DBlank - 19 May 2017 at 2:54am
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.031 seconds.