﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services 2008 Development  / Parameter for Picking from Two Different Types of Date Ranges / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 00:41:01 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Parameter for Picking from Two Different Types of Date Ranges</title><link>http://www.sqlservercentral.com/Forums/Topic1429514-1633-1.aspx</link><description>Could you use the ISNULL function like:[code="sql"]...and (YearVal In (ISNULL(@CalYear, 0)) or FYearShortVal In (ISNULL(@SalesYear,0)))[/code]</description><pubDate>Wed, 20 Mar 2013 08:36:50 GMT</pubDate><dc:creator>mikehunsaker</dc:creator></item><item><title>Parameter for Picking from Two Different Types of Date Ranges</title><link>http://www.sqlservercentral.com/Forums/Topic1429514-1633-1.aspx</link><description>Hello all,I'm trying to set two - optional parameters - one for calendar year and one for sales year.  The user needs to pick dates that are either a Calendar Year or a Sales Year.  The code works in the query allowing a null value for either but not both, but when run in the report, it wants paramaters for both.Here's the dataset code:[code="plain"]...and (YearVal In (@CalYear) or FYearShortVal In (@SalesYear))[/code]Parameters are both set to multivalue and allow blank value.  The available values are hand entered (specify values) - for example - in the Sales Year, the first label is 09/10 and the text value is 09/10, etc. for five entries, Calendar Year is similar - 2009, 2009, etc.  I tried adding a blank label and empty value (not null or 0) to each of the value lists, but that didn't work either.What am I missing?Thank you.JNM</description><pubDate>Mon, 11 Mar 2013 15:47:08 GMT</pubDate><dc:creator>service 87594</dc:creator></item></channel></rss>