dbTalk Databases Forums  

Problems with Measure by DistinctCount

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


Discuss Problems with Measure by DistinctCount in the microsoft.public.sqlserver.olap forum.



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

Default Problems with Measure by DistinctCount - 03-18-2005 , 04:47 AM






I have this problem:
Dimensions: Year, Month
Measure: CustomerCount (int)

I set CustomerCount.AggregateFunction=DistinctCount
When I filter Month Dimension I have a problem on agregate total.

For example:
Year Month
gen feb total
2001 100 103 err.
2002 230 234 err.
2003 300 280 err.
total 400 398 err.

This problem happens when I filter but If I remove filter I have correctly
totals.
What can I do?

Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Problems with Measure by DistinctCount - 03-18-2005 , 10:34 AM






Here, total is not just sum of Jan and Feb.

I understand that current version does not support distinct count against
sube cube.

Ohjoo Kwon


"Dario Concilio" <DarioConcilio (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have this problem:
Dimensions: Year, Month
Measure: CustomerCount (int)

I set CustomerCount.AggregateFunction=DistinctCount
When I filter Month Dimension I have a problem on agregate total.

For example:
Year Month
gen feb total
2001 100 103 err.
2002 230 234 err.
2003 300 280 err.
total 400 398 err.

This problem happens when I filter but If I remove filter I have correctly
totals.
What can I do?



Reply With Quote
  #3  
Old   
Jéjé
 
Posts: n/a

Default Re: Problems with Measure by DistinctCount - 03-19-2005 , 09:40 AM



to solve aggregation errors using a DCount measure, you have to use dynamic
distinct count measure.
Like
count(crossjoin(<my dimension>.<my level>.members, measures.<My measure to
count>), excludeempty)


"Dario Concilio" <DarioConcilio (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have this problem:
Dimensions: Year, Month
Measure: CustomerCount (int)

I set CustomerCount.AggregateFunction=DistinctCount
When I filter Month Dimension I have a problem on agregate total.

For example:
Year Month
gen feb total
2001 100 103 err.
2002 230 234 err.
2003 300 280 err.
total 400 398 err.

This problem happens when I filter but If I remove filter I have correctly
totals.
What can I do?



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.