Hi
Using CR XI
I am counting new customers per sales rep during current month.
I have a report based on orders table with
Group 1 : sales rep
Group 2 : customer ID
Details:
order ID, date,
Manual RT
Formula init recuento in G1H
Formula recuento in detail
Formula result recuento in G1F
Now I hide everything but G1F end everything fine like
sales rep 1: 15
sales rep 3: 10
sales rep 7: 4
sales rep 8: 21
I would like to have them sorted on descending order of recuento.
Any idea welcome, even though it is using other kind of formulas.
Using CR XI
I am counting new customers per sales rep during current month.
I have a report based on orders table with
Group 1 : sales rep
Group 2 : customer ID
Details:
order ID, date,
Manual RT
Formula init recuento in G1H
Code:
whileprintingrecords;
numbervar recuento:=0;
Formula recuento in detail
Code:
whileprintingrecords;
numbervar recuento;
If Minimum ({D01ORDERS_TBL.DATE}, {D01ORDERS_TBL.CUSTOMER_ID})={D01ORDERS_TBL.DATE} and {@MONTH}={@CURRENTMONTH} then recuento:=recuento+1 else recuento
Formula result recuento in G1F
Code:
whileprintingrecords;
numbervar recuento;
Now I hide everything but G1F end everything fine like
sales rep 1: 15
sales rep 3: 10
sales rep 7: 4
sales rep 8: 21
I would like to have them sorted on descending order of recuento.
Any idea welcome, even though it is using other kind of formulas.