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)
 SSRS 2008 - Adding Grand Totals
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

v_kash
Starting Member

45 Posts

Posted - 08/28/2013 :  13:57:05  Show Profile  Send v_kash a Yahoo! Message  Reply with Quote
ok, so hopefully someone can answer this:
i have a report, that is grouped by a store manager. to keep it simple, it has 1 column (but each column has a row for 'Commercial','Retail',Total'). What i want to do, is when they select 2 managers, to have the grand total of ONLY each person's total row. What is currently happening, is that it is adding Commercial + Retail + Total (for each manager). I want the grand total to ONLY select the value from the 'Total' Row. I've tried conditional expressions, but to no avail

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 08/29/2013 :  03:48:02  Show Profile  Reply with Quote
=SUM(IIF(Fields!CategoryField.value="Total",Fields!YourDataField.value,0))

where categoryfield is one having values Commercial,Retail etc and data field has actual values.

------------------------------------------------------------------------------------------------------
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.06 seconds. Powered By: Snitz Forums 2000