Reputation: 305
I have a report that returns various products with the margin we make on each one. I have set up a parameter in the query @Margin
. I have set the Parameter data type to integer, but I want the parameter to return all products with a margin of less than 15%.
If I enter the value as <15 then this is not an integer
How do I set the parameter value to <15 (less than 15%)?
EDIT
My mistake was setting up the parameter in the query incorrectly. I had used = @Margin
when I should have been using < @Margin
. This allowed me to simply change the value from <15
to 15
. This gave me my desired result.
Upvotes: 1
Views: 1998
Reputation: 46
Add the parameter Margin as integer and provide the value. Then in the data set part you can write the query to filter it less than @Margin value.
Check the image below.
Upvotes: 2
Reputation: 4045
Use an expression as query. Found here:
A TSQL sample would be:
="SELECT * FROM TABLENAME WHERE COLUMN" & Parameters!Operator.Value & Parameters!Hour.Value
Upvotes: 0