SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Error on aggregate function in non numeric value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ciupaz
Posting Yak Master

Italy
232 Posts

Posted - 09/10/2013 :  09:00:54  Show Profile  Reply with Quote
Hello all,
in a report that gets data from a Web Service,
when I switch to preview tab in my BIDS (VS 2008),
I got this error:

Warning 1 [rsAggregateOfNonNumericData] The Value expression for the textrun ‘textbox156.Paragraphs[0].TextRuns[0]’ uses a numeric aggregate function on data that is not numeric. Numeric aggregate functions (Sum, Avg, StDev, Var, StDevP, and VarP) can only aggregate numeric data. D:\NBReportSoln\NBReportSoln\DateRel.rdl 0 0


In the textbox156 I have this expression:

=CDec(Sum(Fields!Valore.Value))


and some Fields.Valore could be -1
but never non numeric values.

How can I solve this strange problem?

Thanks in advance.

Luis

James K
Flowing Fount of Yak Knowledge

3585 Posts

Posted - 09/10/2013 :  09:04:54  Show Profile  Reply with Quote
Change your expression to
=Sum(CDec(Fields!Valore.Value))
Go to Top of Page

Ciupaz
Posting Yak Master

Italy
232 Posts

Posted - 09/10/2013 :  09:32:29  Show Profile  Reply with Quote
Perfect, thank you James.

L
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000