﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services 2005 Development  / Help with FilterExpression in BIDS 2005 - I'm going crazy / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 09:40:48 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Help with FilterExpression in BIDS 2005 - I'm going crazy</title><link>http://www.sqlservercentral.com/Forums/Topic1422783-1063-1.aspx</link><description>How about Expression:  =CDec(Fields!Collected.Value/Fields!Discounted.Value)Value:  =0.01I suspect that dividing two decimals is giving you a float datatype, so convert them to decimal after the division.</description><pubDate>Tue, 05 Mar 2013 17:45:08 GMT</pubDate><dc:creator>davoscollective</dc:creator></item><item><title>Help with FilterExpression in BIDS 2005 - I'm going crazy</title><link>http://www.sqlservercentral.com/Forums/Topic1422783-1063-1.aspx</link><description>Hi all,I hope someone can help. I'm about to pull my hair out. Something as simple as a filter expression in BIDS 2005 is not working. All I want to do is show results where two numbers divided together are &amp;gt;= .01. I'm getting a "failed to evaluate filter expression" error. The two numbers from the dataset are from a Stored Proc, where the columns are [money] datatype. -- First I tried this in the Filter Expression (on a table):Expression:  =(Fields!Collected.Value/Fields!Discounted.Value)Operator:  &amp;gt;=Value:  =.01When I do it this way, I get the message "Cannot compare date of types System.Decimal and System.Double.-- So, I changed it to this, in an attempt to force the datatypes to be the same:Expression:  =(CDec(Fields!Collected.Value)/CDec(Fields!Discounted.Value))Operator:  &amp;gt;=Value:  =CDec(.01)Now I get the error "Failed to evaluate FilterExpression."This is driving me insane. I'm trying to keep the number of stored procedures (SP) down to a minimum. The same SP is used for other reports which need the same data presented a bit differently in the report definition. All I want to do is filter the results shown. I don't want to create yet another SP to maintain just to get around a crazy, practically unusable filter setting in BIDS. (sorry - just so frustrated right now)Can anyone help please?? Thanks!!</description><pubDate>Thu, 21 Feb 2013 13:58:09 GMT</pubDate><dc:creator>SQLFan-933088</dc:creator></item></channel></rss>