dbTalk Databases Forums  

mdx "distinct sum" / n:m relation

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss mdx "distinct sum" / n:m relation in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tom
 
Posts: n/a

Default mdx "distinct sum" / n:m relation - 06-03-2004 , 09:48 AM






Hi,

i try to construct something like a distinct sum.
The Problem ist that my dimension and fact is n:m related.
(I know this is not the idea of this but i need it like
that...)

The Structure should be
All(6)
Group1(all=4)
------Fact1 (1)
------Fact2 (3)
Group2(all=1)
------Fact1 (1)
Group3(all=3)
------Fact1 (1)
------Fact3 (2)
Fact-Values in brackets

Adding the measure i get 8 not 6.

sum(Distinct((Descendants([Measures].[measurevalue]))))
gets also 8

Thanks for any idea
Tom


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.