dbTalk Databases Forums  

How to create a measure that is a distinct count of one of the foreign keys in the Fact table?

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


Discuss How to create a measure that is a distinct count of one of the foreign keys in the Fact table? in the microsoft.public.sqlserver.olap forum.



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

Default How to create a measure that is a distinct count of one of the foreign keys in the Fact table? - 01-12-2004 , 08:26 PM






Our Fact table has a EMPLOYEE_ID column that references a EMPLOYEE dimension table. We need a measure that is a distinct count of the Employees. The Analysis Manager Cube Editor UI does not have a “disctinct count” rollup which could be applied to a text EMPLOYEE_ID column in the fact table. How can I create such a measure



Reply With Quote
  #2  
Old   
Sanka
 
Posts: n/a

Default How to create a measure that is a distinct count of one of the foreign keys in the Fact table? - 01-13-2004 , 02:39 AM






Analysis manager will not allow Distinct Count Measure
Aggregate on a Text Column. You will need to probably have
a Integer Column associated with each EMPLOYEE_ID Text
Field.


Quote:
-----Original Message-----
Our Fact table has a EMPLOYEE_ID column that references a
EMPLOYEE dimension table. We need a measure that is a
distinct count of the Employees. The Analysis Manager Cube
Editor UI does not have a ?odisctinct count? rollup
which could be applied to a text EMPLOYEE_ID column in the
fact table. How can I create such a measure?
Quote:

.


Reply With Quote
  #3  
Old   
Ravindra Babburi
 
Posts: n/a

Default RE: How to create a measure that is a distinct count of one of the foreign keys in the Fact table? - 01-13-2004 , 03:26 PM



I have converted the text column into a Number column. I am getting the error "Processing error [Column type for distinct count measure column not supported] ''. I am getting this error even when the column type is Number or Float.
There are a some rows that have NULLs in the Numeric column on which the Distinct count measure is based. Is that the source of the error?

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.