Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 problem with calculated member total

Author  Topic 

isaacbs
Starting Member

10 Posts

Posted - 2008-01-17 : 20:21:45
I have the following calculated member that searches all the plane pilots that have flight minutes during the month

DISTINCTCOUNT
(
FILTER
(
NONEMPTYCROSSJOIN({[Measures].[Minutes]}, DESCENDANTS([Role].[Role].CURRENTMEMBER))
,
NOT ISEMPTY(
(([Measures].[Minutes], [Type].[Type].&[1])
+ ([Measures].[Minutes], [Type].[Type].&[2])))
)
)

But the total shows a weir total
200701 0
200702 0
200703 0
200704 0
200705 0
200706 0
200707 0
200708 0
200709 0
2007010 385
2007011 383
2007012 383
Grand Total 390

The first few months have no info yet, but the last trimester has info, but no month gets to 390 pilots

Any idea why this can be happening and how could I filter the months with 0 pilots from the COUNT??

Thanks in Advance
   

- Advertisement -