this one just a bit shorter and more native Report Services ;):
= sum(iif( Fields!Opportunity_Type.Va
Cheers,
Yurich
Main Topics
Browse All TopicsHi All,
The textbox is using the following expression
= sum(iif( Fields!Opportunity_Type.Va
Previously in the database when the column DT is of type FLOAT, this expression was working fine. But after changing it to datatype MONEY it is throwing the following error:
The value expression for the textbox ‘textbox51’ uses an aggregate function on data of varying data types. Aggregate functions other than First, Last, Previous, Count, and CountDistinct can only aggregate data of a single data type.
I know that I need to convert the value 0.00 to datatype money; a sort of type casting. But how?
I tried making the 0.00 to 0 but didn't work. Even $0 failed
Any little help is also appreciated.
Thanks and Regards,
Srinivas
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
huh, it might be somewhere in the books online but i couldn't find it easily... so that's how I found ;)
go anywhere to "Expressions" - right click -> Expression in any table cell, or in any control. Then, in the bottom-left window extend "Common Functions", click "Conversion" and there you'll find all conversion functions available in Reporting Services.
Regards,
Yurich
oops.. I'm using Reporting Services with SQL Server 2000. I guess that why i don't see what you see..
when I right click -> Expression in any table cell, I don't see "Common Functions" in the left window. Actually I see only two windows Fields and Expression. Under fields, I see "Constants", "Globals", "Parameters", "Fields", "Datasets"
Cheers,
Srinivas
hello,
that's from the msdn site:
Conversion Functions
You can use Visual Basic functions to convert data types as needed in your report.
You can use Visual Basic functions to convert data types as needed. Convert functions are frequently used to eliminate or format #Error messages in a report. The following expression displays the number of values selected for the multivalue parameter MySelection.
=CStr(Parameters!MySelecti
here is the link (the stuff about conversions somewhere in the middle of the article):
http://msdn2.microsoft.com
and for the vb conversion functions you can check out this links:
http://msdn2.microsoft.com
http://www.w3schools.com/v
good luck,
yurich
Business Accounts
Answer for Membership
by: vasureddymPosted on 2006-09-25 at 07:38:22ID: 17592707
Hey
lue = "Renewal", Fields!DT.Value, System.Decimal.Parse(0)))
I found the solution. use the following code.. .. ..
= sum(iif( Fields!Opportunity_Type.Va
i guess that this actually convert to the decimal datatype.. but this is working;