I have a report in which I would like to filter the data based on one field, let's call it status
. I have activated distinct values, as the select statement returns duplicate records.
My problem is that the generated select statement now includes the displayed fields and the filter column status
, something like this:
SELECT DISTINCT column1, column2, status
FROM table1
WHERE status <> 'Retired';
This leads to the situation that the added status generates "duplicate" records in the view:
column1 | column2 | (status not shown)
A | B | Active
A | B | Inactive
C | D | Active
E | F | Active
How can I remove the status from the generated select statement and keeping the where condition?
Thanks in advance!