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

see Empty multi-value parameter posted in 2007

$
0
0

I did just post my question with one of the threads in the 2007 post, but I am not sure how quickly or if it would be picked up there, so I am posting this as a new question.  instead of creating the IN filter in my primary dataset, I followed the recommendateion of doing it in the filter area of the dataset itself.  The problem is ...

The image below illustrates my 2 filters. if I select only one of the sales reps and leave the Terrotory blank, not a problem. But if I select more than one sales rep, still leaving the territory filter blank, I get "An expression of non-boolean type specified in a context where a condition is expected, near ','. "

I set up 2 filters on the primary dataset. I attempted to follow one of the recommendations in the 2007 post, but I assume I am missing something. First, I created 2 new parameters (not from within the dataset, just under Parameters). For the first dataset filter, the expression is

Expression=IIf(Parameters!OutsideSalesRep.Value <> nothing and Parameters!OutsideSalesRep.Count > 0, Fields!OutsideRep.Value,1)

In

Value =IIf(Parameters!OutsideSalesRep.Value <> nothing and Parameters!OutsideSalesRep.Count > 0, Parameters!OutsideSalesRep.Value,1)

For the second dataset Filter

Expression =IIf(Parameters!Territory.Value <> Nothing and Parameters!Territory.Count > 0, Fields!Territory.Value,1) IN Value =IIf(Parameters!Territory.Value<> Nothing and Parameters!Territory.Count > 0, Parameters!Territory.Value,1)

When I do this and then proceed to "Preview" I get the following in the Error List tab at the bottom:

Warning 1 [rsInvalidExpressionDataType] The Value expression used in textrun ‘Textbox320.Paragraphs[0].TextRuns[0]’ returned a data type that is not valid. C:\Documents and Settings\administrator.DOMAIN\My Documents\Visual Studio 2008\Projects\Bono\Bono\Sales Ranking by Customer 2.rdl 0 0

I can still run the report which returns my data so long as I have only selected a single field in one filter and the blank field in the other. I need to be able to select multiple values in either of the 2 filters illustrated below, with the blank in the other. Have i supplied enough information for you to tell me where my problem is or should I do this differently.  I have also tried to do this by creating the 2 IN parameters in my Dataset query, and then for each of my parameters, for "Available Values", linking to the dataset via "Get values from a query" ... pretty much same problem ... if I select more than one in one of my 2 filters, I get the "An expression of non-boolean type specified in a context where a condition is expected, near ','. " ... Thanks to whoever can solve my problem!


Thanks, Tom


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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