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

Adding a simple between parameter in this dataset

$
0
0

Hello,

With alot of help from you guys already I have gotten to this stage.

select
	a.product
	,Case when [dated] between @firstFrom and @firstTo then [quantity]
		else null
	end [sales09/10]
	,Case when [dated] between @secondFrom and @secondTo then [quantity]
		else null
	end [sales10/11]
	,Case when [dated] between @thirdFrom and @thirdTo then [quantity]
		else null
	end [sales11/12]
	,Case when [dated] between @fourthFrom and @fourthTo then [quantity]
		else null
	end [sales12/13]
from scheme.opsahistm a
where  [dated] between @firstFrom and @firstTo
	or [dated] between @secondFrom and @secondTo
	or [dated] between @thirdFrom and @thirdTo
	or [dated] between @fourthFrom and @fourthTo
order by a.product

However when I try to add an additional parameter such as product between @productFrom and @productTo, no matter what I enter in those fields the report generates the same results.

How can I get it to consider new parameters?

Thanks,

Daniel


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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