Hi,
I think that I may have understood what you would like to achieve :
The "distinct" operation has an undocumented element (addValue) that will let you add a value to the result set returned by the distinct operation:
<
sqlOp op="distinct">
<
dstTableName>DistinctNames</dstTableName>
<
tableName>YourList</tableName>
<
fieldName>Name</fieldName>
<
addValue>ALL</addValue>
</
sqlOp>The value ("ALL" in this case) is inserted as the first row of the result set.
Unfortunately, when giving the option to filter on a specific element or not to filter (ALL values) it is not possible to use CAML. You will have to retrieve all the value and rely on Reporting Services filtering options.
Your Report Services Filter will be something like this :
Fields!YourField.Value
= =IIF(Parameters.yourParameter.Value = 'ALL', Fields!YourField.Value , Parameters.yourParameter.Value)
Let me know if it helps.
Regards,