Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

SSRS dataset filter

$
0
0

Hello,

I have an SSRS report that I have a parameter and a filter.   Records comes in with a field called Clocked that contains either 'No' or 'Yes'. 

When the user selects either one from a dropdown parameter and views report, the filter only brings back those records that were selected, being 'No' or 'Yes'.

Now the users want another option:  'Both', but the field in the record only contain the words 'No' or 'Yes'. 

Is there a way to build an expression for the filter that states if the parameter selected is a 'both' then bring back all records. If not it must be a 'No' or 'Yes' so bring back those records where the field Clocked matches what is in the Clock Parameter?

like:  =IIF Parameters!Clocked.Value = "Both", Fields!Clocked.Value <> "", Parameter!Clocked.Value)   Or something to that affect.

thanks!


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>