Guest Posted September 8, 2021 Share Posted September 8, 2021 Interesting. Maybe someone will find something simpler, but this works. DEFINE FILE CAR ITASALES/P9 = IF COUNTRY EQ 'ITALY' THEN SALES ELSE 0; END TABLE FILE CAR SUM SALES/D12 ACROSS COUNTRY BY HIGHEST TOTAL ITASALES NOPRINT BY BODYTYPE END image.png737304 19.2 KB Link to comment Share on other sites More sharing options...
Joel Chua Posted September 8, 2021 Author Share Posted September 8, 2021 Thanks David. That should work. Link to comment Share on other sites More sharing options...
Joel Chua Posted September 8, 2021 Author Share Posted September 8, 2021 I would like to generate a report using across but would like to sort from highest total for a specific COUNTRY. Heres the code that I used: TABLE FILE CAR SUM SALES/D12 ACROSS COUNTRY BY HIGHEST TOTAL SALES NOPRINT BY BODYTYPE END Id like to sort this on the ITALY column (highest to lowest) instead of just the total sales for all the CAR file. Is there a way to do this Thank you, Joel Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now