dbTalk Databases Forums  

distinct count measure

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


Discuss distinct count measure in the microsoft.public.sqlserver.olap forum.



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

Default distinct count measure - 09-20-2006 , 12:41 PM






Is there a way to get around having more than one distinct count measure?

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: distinct count measure - 09-20-2006 , 12:53 PM






With AS 2000, you can have multiple cubes, each with 1 distinct count,
combined in a virtual cube. With AS 2005, you should be able to create a
separate measure group for each distinct count.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
SAM
 
Posts: n/a

Default Re: distinct count measure - 09-20-2006 , 01:10 PM



I had it all in one cube. I'll divide the data up in separate cubes.

"Deepak Puri" wrote:

Quote:
With AS 2000, you can have multiple cubes, each with 1 distinct count,
combined in a virtual cube. With AS 2005, you should be able to create a
separate measure group for each distinct count.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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

Default Re: distinct count measure - 09-20-2006 , 01:12 PM



the other option is to create calculated dcount measures
(slower then aggregated dcount measures but don't required to process more
cubes or measure group)

"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote

Quote:
With AS 2000, you can have multiple cubes, each with 1 distinct count,
combined in a virtual cube. With AS 2005, you should be able to create a
separate measure group for each distinct count.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***



Reply With Quote
  #5  
Old   
SAM
 
Posts: n/a

Default Re: distinct count measure - 09-20-2006 , 01:20 PM



Deepak, advice...
Is it ok to use the same fact table for each cube with the different measure
that I want to have a distinct count for?

"Deepak Puri" wrote:

Quote:
With AS 2000, you can have multiple cubes, each with 1 distinct count,
combined in a virtual cube. With AS 2005, you should be able to create a
separate measure group for each distinct count.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #6  
Old   
SAM
 
Posts: n/a

Default Re: distinct count measure - 09-20-2006 , 01:26 PM



I tried that but when I created the calculated member to perform the distinct
count, the numbers were not changing when filtering against a certain
dimension.

"Jéjé" wrote:

Quote:
the other option is to create calculated dcount measures
(slower then aggregated dcount measures but don't required to process more
cubes or measure group)

"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote in message
news:%23sNix2N3GHA.4920 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
With AS 2000, you can have multiple cubes, each with 1 distinct count,
combined in a virtual cube. With AS 2005, you should be able to create a
separate measure group for each distinct count.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***




Reply With Quote
  #7  
Old   
Deepak Puri
 
Posts: n/a

Default Re: distinct count measure - 09-20-2006 , 01:43 PM



You should be able to use the same fact table in multiple AS 2000 cubes
- each cube would have a distinct count measure based on a different
field in the fact table. Of course, shared dimensions should be used
across the cubes, so that they can be included in the virtual cube.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

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.