Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Report Builder 3.0 Expression to fiter report

$
0
0

This is the first time I'm trying to use a filter so I

don't doubt that this is causing my issue. My report runs with out any issues and returns all of the records that I expect. The problem I'm having is trying to use a filter. I added a parameter with 6 options for the user to select. (They can only select 1.) In my report layout, I added the following Boolean expression in a filter (Tablix properties):

=(Parameters!REPORT_FILTER.Value = 6 And Fields!Filter3.Value = 1)
OR (Parameters!REPORT_FILTER.Value = 5 And Fields!Filter2.Value = 2)
OR (Parameters!REPORT_FILTER.Value = 4 And Fields!Filter1.Value = 2)
OR (Parameters!REPORT_FILTER.Value = 3 And Fields!Filter2.Value = 1)
OR (Parameters!REPORT_FILTER.Value = 2 And Fields!Filter1.Value = 1)
OR (Parameters!REPORT_FILTER.Value = 1 And Fields!Filter1.Value = 1
OR Fields!Filter1.Value = 2)

The operator for this filter is "=" and the value = 'true".  I've checked the values in the Filter1, Filter2, and Filter3 columns and they are what I expect.  If the user selection option 6, then the results should only display the records with a 1 in the Filter3.  If the user selects option 1, then the results should display all records with a 1 or 2 in the Filter1 column.  No matter which parameter value I select, the results only return rows where there is a 1 in the Filter3 column; which is the first part of the expression.  Thanks for your help........


Viewing all articles
Browse latest Browse all 10045

Trending Articles