Focal Point
[SOLVED] BY vs WITHIN

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3387030096

April 26, 2018, 04:31 PM
Shingles
[SOLVED] BY vs WITHIN
Hi Folks,

Consider the following:
  
TABLE FILE CAR
 SUM 
     CAR.SPECS.HEIGHT  WITHIN CAR.ORIGIN.COUNTRY
BY  LOWEST CAR.ORIGIN.COUNTRY
ON TABLE NOTOTAL
END


The columns that are displayed there are fine except I would like to change the sort order.

I would like to sort (in descending order) this list by the HEIGHT after it calculates the total height for each COUNTRY. So W GERMANY shows up first, then ENGLAND, then ITALY, then JAPAN, and finally FRANCE.

I'm thinking of creating another query that calculates the total HEIGHT, and then joining to the rest of the data (a sort of subquery). But I can't help thinking that its not necessary. But I don't know how else to do it.

Any tips?

This message has been edited. Last edited by: Shingles,


WebFOCUS 8201, SP 0.1, Windows 7, HTML
April 26, 2018, 05:13 PM
CoolGuy
TABLE FILE CAR
SUM
CAR.SPECS.HEIGHT WITHIN CAR.ORIGIN.COUNTRY
BY TOTAL HIGHEST HEIGHT NOPRINT
BY LOWEST CAR.ORIGIN.COUNTRY
ON TABLE NOTOTAL
END


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
April 27, 2018, 09:55 AM
Shingles
Thanks CoolGuy,
The query I was working on also had subheadings and other fields, but I figured it all out with your sample up there.

Thanks again!


WebFOCUS 8201, SP 0.1, Windows 7, HTML