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 / July 2006

Tip: Looking for answers? Try searching our database.

Handling nulls in matrix sub totals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Murphy - 31 Jul 2006 17:47 GMT
I have a matrix where I am using the inscope function to return different
calculations depending on which group it is in (ie the detail is just the
value and the sub totals are sum(values)).

In for the subtotal group I have used:

iif(isnothing(sum(Fields!CurrentCount.Value)), 0,
sum(Fields!CurrentCount.Value)

But this is still returning blanks where there are no values in the group to
sum together.  

Can anyone suggest how to get around this issue as it ?

TIA

Andrew
Ben Watts - 31 Jul 2006 19:01 GMT
you might try  iif(sum(Fields!CurrentCount.Value = nothing)
>I have a matrix where I am using the inscope function to return different
> calculations depending on which group it is in (ie the detail is just the
[quoted text clipped - 14 lines]
>
> Andrew
Ben Watts - 31 Jul 2006 19:09 GMT
also if this formula you put on here looks just like the one you have in the
expression then you need to add a perenthesis onto the end.  I tried to
recreate your problem and I get a 0.  Weird

>I have a matrix where I am using the inscope function to return different
> calculations depending on which group it is in (ie the detail is just the
[quoted text clipped - 14 lines]
>
> Andrew
Ben Watts - 31 Jul 2006 19:11 GMT
and aslo maybe you should try to set the null value to 0 before you sum it.

>I have a matrix where I am using the inscope function to return different
> calculations depending on which group it is in (ie the detail is just the
[quoted text clipped - 14 lines]
>
> Andrew
 
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.