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
 Development Tools
 Reporting Services Development
 How to total an <<expr>> field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Vack
Constraint Violating Yak Guru

USA
495 Posts

Posted - 10/21/2013 :  14:38:19  Show Profile  Reply with Quote
I have an expression with the following:

=switch(
Fields!qty_inv.Value=0,Fields!exp_unit_cost.Value*Fields!qty_ordered.Value,
Fields!qty_inv.Value>0,(Fields!dollars_inv.Value/Fields!qty_inv.Value)*Fields!qty_inv.Value
)



In the report it shows as <<expr>>
How do I total this field?

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 10/21/2013 :  14:49:20  Show Profile  Reply with Quote
just appluy sum over it.
right click on cell and select expression
this will open expression editor with above expression. Just add SUM over it

=SUM(switch(
Fields!qty_inv.Value=0,Fields!exp_unit_cost.Value*Fields!qty_ordered.Value,
Fields!qty_inv.Value>0,(Fields!dollars_inv.Value/Fields!qty_inv.Value)*Fields!qty_inv.Value
))


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 10/21/2013 :  14:49:22  Show Profile  Reply with Quote
just appluy sum over it.
right click on cell and select expression
this will open expression editor with above expression. Just add SUM over it

=SUM(switch(
Fields!qty_inv.Value=0,Fields!exp_unit_cost.Value*Fields!qty_ordered.Value,
Fields!qty_inv.Value>0,(Fields!dollars_inv.Value/Fields!qty_inv.Value)*Fields!qty_inv.Value
))


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
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.05 seconds. Powered By: Snitz Forums 2000