Hi everyone,
I need to write an MDX query in Visual Studio 2008. I wrote the following query:
select {
[Measures].[Budget Authority],[Measures].[Task Budget], [Measures].[Disbursements]
} on 0,
non empty (
[IAA].[IAA Number].[IAA Number].members,
[Task].[Task Number].members,
[Fiscal Year].[Fiscal Year].members,
[Date - Fiscal Month Common].[Last Day of Month Date].members
) on 1
This pulled apx. 900 rows and the table in report showed the correct figures.
Then I had to add another table and needed the Task Title so I changed the query to read:
select {
[Measures].[Budget Authority],[Measures].[Task Budget], [Measures].[Disbursements]
} on 0,
non empty (
[IAA].[IAA Number].[IAA Number].members,
[Task].[Task Number].members,
[Task].[Task Title].members,
[Fiscal Year].[Fiscal Year].members,
[Date - Fiscal Month Common].[Last Day of Month Date].members
) on 1
I did not make any changes to the original table but now the figures were double the correct amount. I looked at what was pulled and there were apx. 1800 rows – 900 duplicates of the original 900 rows.
Can anyone explain this and tell me how to fix it?
Thanks for your help,
Tina