hi Paul,
since you're using a Command object you may not wish to use the Record Selection Formula at all due to performance reasons. the filter should be applied in the Command itself in the WHERE or HAVING clause depending on the situation.
can you post the entire Command?
here's an example of a Command where there is Group Selection based on a HAVING clause. the following returns only companies with net sales greater than 75000000. the Command is also grouped by company in order to have the aggregation done on the company level.
SELECT
DC.COMPANYNAME,
SUM(FC.NETSALES) AS NETSALES,
COUNT(FC.QUANTITY) AS QUANTITY,
AVG(FC.COST) AS COST
FROM
STS.DIMCUSTOMER DC
INNER JOIN STS.FCTCUSTOMERORDER FC
ON DC.CUSTOMERID=FC.CUSTOMERID
GROUP BY
DC.COMPANYNAME
HAVING
SUM(FC.NETSALES) > 75000000
ORDER BY
DC.COMPANYNAME
thanks,
jamie