on 2013 Nov 19 4:39 PM
Use Group Sort Expert to select Top/Bottom N records. Or if you are trying to sort data by a field and extracting data from database then you can simply use the following query.
SELECT TOP N *
FROM MyTable
ORDER BY Id DESC
Regards
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your original report I see a group whereas in your sample there is no group. The solutions for a group vs no group are different. For a Group Report, assuming no field has been used to sort (other than the group of course) here's what you need to do:
1) Right-click the details section > Click the formula button beside suppress and use this code:
numbervar x := x + 1;
x <= Count({database_field}, {Group_field}) - 10
2) Create a reset formula formula and place it on the GH2:
whileprintingrecords;
numbervar x := 0;
-Abhilash
Estimados, buenas
Consulta Una, si Tengo sin detalle porción EJEMPLO de las Cantidades vendidas de los articulos pero quiero agregar un cuadro resumen (puede ser tabla de referencias cruzadas) como puedo solo filtrar los 10 articulos mas vendidos en crystal reports?
favor alguna sugerencia??
Atte.
carlos
User | Count |
---|---|
57 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.