Advertisement

02.22.2007 at 02:09AM PST, ID: 22405818
[x]
Attachment Details

Expression in report viewer

Asked by jeebukarthikeyan in Programming for ASP.NET

Tags: expression, report, iif, viewer

hi,
i have created 2 expresions
 ="$" + Iif(Fields!AMTVARRSN.Value.ToString().IndexOf("NA")>=0,"0.00",Fields!TRANAMT.Value)

if AMTVARRSN.Value.ToString().IndexOf("NA")>=0,
then print  "0.00", othere wise print Fields!TRANAMT.Value...this is working fine

next i need to take the sume of above value
=Sum(Fields!TRANAMT.Value) --this line fail because its always doing the sum of TRANAMT.Value

indeed i need to take the sum from the result of this expression
 ="$" + Iif(Fields!AMTVARRSN.Value.ToString().IndexOf("NA")>=0,"0.00",Fields!TRANAMT.Value)

thax
b u d d h a
Start Free Trial
 
Loading Advertisement...
 
[+][-]02.22.2007 at 04:50AM PST, ID: 18586932

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: expression, report, iif, viewer
Sign Up Now!
Solution Provided By: Niraj_Singh
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32