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