TFS Reporting Service double records when using Area column
Posted
Thu, Jun 14 2007 8:43 AM
by
Marco Stolk
Hi There,
This week i made some new reports based on our TFS cube and found a strange thing happen. When using the area-field in my querys, some records returned double in my query-result. After speaking to Mike yesterday at the DevDays in Amsterdam he gave me the hint to check the actual MDX query fired from the designer in reporting service. After doing that i found myself with the following (stripped-down)query:
SELECT NON EMPTY { [Measures].[Current Work Item Count] } ON COLUMNS, NON EMPTY {
([Team Project].[Team Project].[Team Project].
ALLMEMBERS * [Work Item].[System_State].[System_State].ALLMEMBERS
*
DESCENDANTS([Area].[Parent_ID].[Area].ALLMEMBERS) * [Work Item].[System_Id].[System_Id].ALLMEMBERS ) } ON ROWS FROM (
SELECT ( { [Work Item].[System_Id].&[1350] } ) ON COLUMNS FROM [Current Work Item])
1350 is the workitem i wanted to see.
The records returned look like the following
[project1] [active] [project1] [1350] [1] -> wrong result, the second project1 should be a area, this query should only return the second line!
[project1] [active] [area1] [1350] [1] -> correct result
Can anyone explain this to me?