Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Change to MDX query causes duplicate rows to be created

$
0
0

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


Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>