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

Using Parameters with multiple values in Matrix filter

$
0
0

Hi all

Not sure if this is possible or not, but I can't get it work if it is!

I currently have the following code in as the expression for the filter with Boolean, = and true options selected.

=IIF((Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "2")OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "2A")OR(Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "3")OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "9")
OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "10")OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "11")
OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "13")
OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "14")
OR (Fields!ClientCategory1.Value = "NANTWICH" and Fields!JobType.Value = "13")OR (Fields!JobType.Value = "3NC"), true,false)

I have tried simplifying it to have one expression to cover all the NC and JobType options so instead of having this section

=IIF((Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "2")OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "2A")OR(Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "3")OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "9")
OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "10")OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "11")
OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "13")
OR (Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "14"), true,false)

I would have something like

=IIF((Fields!ClientCategory1.Value = "NC" and Fields!JobType.Value = "Parameter!ShropshireNotJobs.Value")OR (Fields!ClientCategory1.Value = "NANTWICH" and Fields!JobType.Value = "13")OR (Fields!JobType.Value = "3NC"), true,false)

Any help/advice really appreciated, it might not be possible in which case I will just have to use the above throughout the report and change it as and when the criteria needs changing.

Cheers



Cheers Chris


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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