Sorting in a group header

G

Guest

I have Top/Bottom producer report where I group by the field Top/Bottom
producers... If the value in the 'DailyPL' field is positive or 0
'Top/Botton' field is populated with "gainers" value and if I have a negative
value it is populated with "loosers" value.
On the report I have breakdown on grouping by "Gainers" and "Loosers". But I
have a probelm of sorting within this groups. I need to sort data in Gainers
-DESC- and display it on the report from top number in DailyPL to 0, but I
need to sort -ASCE -for "Loosers" and display it from the highest negative
number.
 
M

Marshall Barton

Marina said:
I have Top/Bottom producer report where I group by the field Top/Bottom
producers... If the value in the 'DailyPL' field is positive or 0
'Top/Botton' field is populated with "gainers" value and if I have a negative
value it is populated with "loosers" value.
On the report I have breakdown on grouping by "Gainers" and "Loosers". But I
have a probelm of sorting within this groups. I need to sort data in Gainers
-DESC- and display it on the report from top number in DailyPL to 0, but I
need to sort -ASCE -for "Loosers" and display it from the highest negative
number.


I think that you want to group on the top/bottom and then
sort on the expression =Abs(DailyPL) using ascending
 
G

Guest

Marshall thank you very much for your help.

It worked.


I created another column in my reporting query which I populated with the
same value as my DailyPL but with ABS -ABS(DAILYPL)- and called it "SORT"
column and then within the TOP/Bottom Groupings I sorted on "Sort" field DESC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top