SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS 3.0 Parameters input issue


SSRS 3.0 Parameters input issue

Author
Message
daniel.carreira
daniel.carreira
SSC Veteran
SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)

Group: General Forum Members
Points: 226 Visits: 134
Hi all,

I am building a report that will make a comparison with figures for the last 3 months, and last 12 months. For this I will build 3 datasets with the exact same structure, with the difference that I need each one of them the data will be different.

The way I am trying to do it is to go to a specific dataset and on the parameters tab choose the parameter and do as example below:

=Parameters!Period.Value-3

The parameter above would be for the dataset that needs to show the figures for the last quarter, the period field is an integer and every month as a number attached, so I figured that if for this specific dataset in the parameters tab there is an instruction for the parameter in the expression it should work...


It doesn't, anyone has a suggestion for this?

Best regards,

Daniel
durai nagarajan
durai nagarajan
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3381 Visits: 2784
It should work, can you check in dataset how is parameter mapped.

Regards
Durai Nagarajan
daniel.carreira
daniel.carreira
SSC Veteran
SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)

Group: General Forum Members
Points: 226 Visits: 134
durai nagarajan (8/19/2013)
It should work, can you check in dataset how is parameter mapped.



Hi Durai, not sure what you are asking could you be more specific?

Many thanks,

Daniel
durai nagarajan
durai nagarajan
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3381 Visits: 2784
in dataset check what is showing in parameter section and see the mapping

you may get the problem.

and what is the exact error you are getting.

Regards
Durai Nagarajan
daniel.carreira
daniel.carreira
SSC Veteran
SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)

Group: General Forum Members
Points: 226 Visits: 134
Well still not sure what you mean about parameter mapping...


See below the error message:

An error has occurred during report processing. (rsProcessingAborted)
The Value expression for the query parameter ‘@Period’ contains an error: Operator '-' is not defined for type 'Object()' and type 'Integer'. (rsRuntimeErrorInExpression)
durai nagarajan
durai nagarajan
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3381 Visits: 2784
[quoteThe way I am trying to do it is to go to a specific dataset and on the parameters tab choose the parameter and do as example below:

=Parameters!Period.Value-3
[/quote]

This is where i am referring to and see the attached image for usage

Regards
Durai Nagarajan
Attachments
Dataset.bmp (36 views, 529.00 KB)
daniel.carreira
daniel.carreira
SSC Veteran
SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)

Group: General Forum Members
Points: 226 Visits: 134
Hi Durai, got it see below:

Parameter name: @Period
Parameter Value: =Parameters!Period.Value - 3


Thanks,

Daniel
durai nagarajan
durai nagarajan
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3381 Visits: 2784
This is what i have tried it is working, can you delete the dataset and create again.

Regards
Durai Nagarajan
daniel.carreira
daniel.carreira
SSC Veteran
SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)SSC Veteran (226 reputation)

Group: General Forum Members
Points: 226 Visits: 134
Hi Durai,

I recreated but still not working, let me just recapitulate to se if I didn't left nothing out that might help on the solution for this issue:

Purpose of report: comparing current results against last result 3 months ago

Nbr of datasets: two datasets

Nbr of parameters: one (each month is represented by a integer number, for example July, 2013 is 273)

How to: The intention is to have the parameter mapped to one of the datasets changed through an expression (=Parameters!Period.Value -3) the other dataset will have the parameter mapping unchanged (=Parameters!Period.Value)


Best regards,

Daniel
durai nagarajan
durai nagarajan
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3381 Visits: 2784
If it is not working take the same parameter and map it to a variable inside the dataset and minus it by 3 , really amusing it works perfect for me but trying it out in 2005 ssrs..

Regards
Durai Nagarajan
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search