Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / November 2006

Tip: Looking for answers? Try searching our database.

Subtotal

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
meenu - 29 Nov 2006 06:39 GMT
Hi,

  I have a report in which i have sales value displayed for 4 zones (north, west, east and south) for all months of the current year. I want to display the subtotals (North + West) and (South + East) and the Grand total. Can some one help me
Thanks in advance

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Topher - 29 Nov 2006 18:04 GMT
Create a calculated field in RS that groups the zones:

IIF(fields!zone.value = "North" or fields!zone.value = "West",
"RegionA", "RegionB")

Then create a group based on that calculated field.

> Hi,
>
[quoted text clipped - 3 lines]
> EggHeadCafe.com - .NET Developer Portal of Choice
> http://www.eggheadcafe.com
Andrei - 29 Nov 2006 18:42 GMT
Or, you can create 2 calculated fields that hold the sum for N+S, E+W, like
this:
fldNS = sum(iif(fields!zone.value = "North" or fields!zone.value = "South",
SalesValue, 0))
fldEW = sum(iif(fields!zone.value = "East" or fields!zone.value = "West",
SalesValue, 0))

Andrei.

> Create a calculated field in RS that groups the zones:
>
[quoted text clipped - 13 lines]
>> EggHeadCafe.com - .NET Developer Portal of Choice
>> http://www.eggheadcafe.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.