Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting Groups...

Status
Not open for further replies.

cuneyt

Programmer
Mar 3, 2003
42
AU
Ext. # of Calls Duration Cost

2810 11 00:23:42 12,078,000.00
2813 6 00:07:35 0.00
2813 26 00:38:16 1,584,000.00

As you can see in the example above, I'm grouping Incoming Calls according to Extensions, No the problem is when I'm trying sort them either by Duration or Cost, it sorts them in Extensions, not between extensions... I want to sort them like this (if it is according to duration):

Ext. # of Calls Duration Cost

2813 6 00:07:35 0.00
2810 11 00:23:42 12,078,000.00
2813 26 00:38:16 1,584,000.00

Thanx in advance...
 
If you are gouping by extension, why are there 2 groups for extension 2813 ?

If you want to group by duration, and the sort by the shortest duration to the longest, use the TopN/Sort group expert.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
cuz i'm also grouping it according to type of tariff, and I have Local, National and international types of tariffs, when I use the TopN/Sort group I can only see ado.Typeoftariffs and fields related with that...
 
Extension Area Type # of Calls Duration

2810 N 11 00:23:42
2813 I 6 00:07:35
2813 L 26 00:38:16
2813 N 8 00:25:05
2814 L 13 00:14:28
2814 N 6 00:07:04
2815 L 7 00:06:31
2815 N 20 01:04:24
2816 I 9 00:12:28
2816 N 28 01:42:10

ok fellows, this is how my report looks like, I'm grouping it according to extension and area type, so I'm getting count of extensions (as number of calls) and sum of duration for those extensions... But i cannot sort my record according to Duration, cuz it sorts in each extension and area, for example in first one it sorts 11 records inside this group...

Question: How am I gonna sort according to duration field, so i want it to look like this:

Extension Area Type # of Calls Duration

2815 L 7 00:06:31
2814 N 6 00:07:04
2813 I 6 00:07:35
2816 I 9 00:12:28
2814 L 13 00:14:28
2810 N 11 00:23:42
2813 N 8 00:25:05
2813 L 26 00:38:16
2815 N 20 01:04:24
2816 N 28 01:42:10

I hope this time it is clear for everyone...
Thanx in advance...
Cuneyt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top