Wrox Programmer Forums
|
Reporting Services SQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 26th, 2007, 08:58 AM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default sum() function

hi to all, can you please help me on sum() functions.
i have a field in a table called AmtFee and AmtID with the value of...

AmtID AmtFee
1 1000
2 2500
2 2500
1 1000

i want to put in a text box the sum of AmtFee where AmtID=1
i'm having a hard time to figure this out in IIf condition.
does anybody know what is the better approach on this?
i tried this kind of expressions but it didn't work.
=Sum(IIf(Fields!AmtID.Value=1,Fields!AmtFee.Value, 0))
Tnx in advance.


 
Old April 22nd, 2007, 01:59 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this

SUM(IIF(Fields!AmtID.Value=1,Fields!AmtFee.Value,F ields!AmtFee.Value*0)






Similar Threads
Thread Thread Starter Forum Replies Last Post
sum function pcase XSLT 2 January 2nd, 2008 05:51 PM
Xpath: sum function gracehanh XSLT 13 September 27th, 2005 09:30 AM
sum function problem sherr8 Access 1 February 13th, 2004 03:06 PM
SUM Function jmss66 Classic ASP Basics 17 July 29th, 2003 08:00 AM
Need Help with the Sum Function athanatos XSLT 1 July 22nd, 2003 10:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.