Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SSRS 3.0 Parameters input issue Expand / Collapse
Author
Message
Posted Monday, August 19, 2013 4:32 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 2, 2013 10:56 AM
Points: 24, 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
Post #1485724
Posted Monday, August 19, 2013 6:14 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
It should work, can you check in dataset how is parameter mapped.

Regards
Durai Nagarajan
Post #1485748
Posted Monday, August 19, 2013 6:17 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 2, 2013 10:56 AM
Points: 24, 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
Post #1485750
Posted Monday, August 19, 2013 6:25 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
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
Post #1485756
Posted Monday, August 19, 2013 6:33 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 2, 2013 10:56 AM
Points: 24, 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)
Post #1485762
Posted Monday, August 19, 2013 8:49 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
[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


  Post Attachments 
Dataset.bmp (29 views, 529.67 KB)
Post #1485854
Posted Monday, August 19, 2013 9:16 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 2, 2013 10:56 AM
Points: 24, Visits: 134
Hi Durai, got it see below:

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


Thanks,

Daniel
Post #1485866
Posted Tuesday, August 20, 2013 4:32 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
This is what i have tried it is working, can you delete the dataset and create again.

Regards
Durai Nagarajan
Post #1486177
Posted Tuesday, August 20, 2013 7:21 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 2, 2013 10:56 AM
Points: 24, 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

Post #1486245
Posted Tuesday, August 20, 2013 7:55 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
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
Post #1486264
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse