dbTalk Databases Forums  

DistinctCount for custom members

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


Discuss DistinctCount for custom members in the microsoft.public.sqlserver.olap forum.



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

Default DistinctCount for custom members - 08-03-2005 , 08:31 PM






Hi Masters:

I have a calculated measure with a distinctcount function over a Customer
Dimension in my Cube... (i am using AS 2000)

DistinctCount({[Customer].members})

The problem is that i have a "profit unit" parent-child dimension too, and
that dimension have some "custom" members with unary operators over a field
of the profit unit dimension table.... for that custom members, my
distinctcount measure simply don't work ...(it show zero value)

Any idea?

Thanks
Rodrigo

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

Default Re: DistinctCount for custom members - 08-04-2005 , 08:41 AM






Hi Jeje:

Thanks for the answer... but what do you mean with "{measures.simplecount}"?
it is a calculated measure?

Thanks

Rodrigo

"Jéjé" wrote:

Quote:
try a dynamic dcount like:

count(crossjoin({[Customer].members}, {measures.simplecount}), exludeempty)


"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote in message
news:92D47A08-9DCE-4827-AC2A-18A0C1E976C3 (AT) microsoft (DOT) com...
Hi Masters:

I have a calculated measure with a distinctcount function over a Customer
Dimension in my Cube... (i am using AS 2000)

DistinctCount({[Customer].members})

The problem is that i have a "profit unit" parent-child dimension too, and
that dimension have some "custom" members with unary operators over a
field
of the profit unit dimension table.... for that custom members, my
distinctcount measure simply don't work ...(it show zero value)

Any idea?

Thanks
Rodrigo



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

Default Re: DistinctCount for custom members - 08-04-2005 , 09:28 AM



no, its a simple count measure, not calculated one.
generally an hidden measure used only for the dount calculated measure and
should be on a dedicated cube because the aggregation design is different
from other cubes.

"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi Jeje:

Thanks for the answer... but what do you mean with
"{measures.simplecount}"?
it is a calculated measure?

Thanks

Rodrigo

"Jéjé" wrote:

try a dynamic dcount like:

count(crossjoin({[Customer].members}, {measures.simplecount}),
exludeempty)


"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote in message
news:92D47A08-9DCE-4827-AC2A-18A0C1E976C3 (AT) microsoft (DOT) com...
Hi Masters:

I have a calculated measure with a distinctcount function over a
Customer
Dimension in my Cube... (i am using AS 2000)

DistinctCount({[Customer].members})

The problem is that i have a "profit unit" parent-child dimension too,
and
that dimension have some "custom" members with unary operators over a
field
of the profit unit dimension table.... for that custom members, my
distinctcount measure simply don't work ...(it show zero value)

Any idea?

Thanks
Rodrigo





Reply With Quote
  #4  
Old   
Rodrigo
 
Posts: n/a

Default Re: DistinctCount for custom members - 08-04-2005 , 09:49 AM



Ok. so should be a field with value 1 in the cube's fact table...no?

Thanks

Rodrigo

"Jéjé" wrote:

Quote:
no, its a simple count measure, not calculated one.
generally an hidden measure used only for the dount calculated measure and
should be on a dedicated cube because the aggregation design is different
from other cubes.

"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote in message
news:F4071FF7-7D12-4987-9CB4-568034701149 (AT) microsoft (DOT) com...
Hi Jeje:

Thanks for the answer... but what do you mean with
"{measures.simplecount}"?
it is a calculated measure?

Thanks

Rodrigo

"Jéjé" wrote:

try a dynamic dcount like:

count(crossjoin({[Customer].members}, {measures.simplecount}),
exludeempty)


"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote in message
news:92D47A08-9DCE-4827-AC2A-18A0C1E976C3 (AT) microsoft (DOT) com...
Hi Masters:

I have a calculated measure with a distinctcount function over a
Customer
Dimension in my Cube... (i am using AS 2000)

DistinctCount({[Customer].members})

The problem is that i have a "profit unit" parent-child dimension too,
and
that dimension have some "custom" members with unary operators over a
field
of the profit unit dimension table.... for that custom members, my
distinctcount measure simply don't work ...(it show zero value)

Any idea?

Thanks
Rodrigo






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

Default Re: DistinctCount for custom members - 08-04-2005 , 01:06 PM



should be everything you want. so you can count any key in the table like
"CustomerID" or any other column.

"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote

Quote:
Ok. so should be a field with value 1 in the cube's fact table...no?

Thanks

Rodrigo

"Jéjé" wrote:

no, its a simple count measure, not calculated one.
generally an hidden measure used only for the dount calculated measure
and
should be on a dedicated cube because the aggregation design is different
from other cubes.

"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote in message
news:F4071FF7-7D12-4987-9CB4-568034701149 (AT) microsoft (DOT) com...
Hi Jeje:

Thanks for the answer... but what do you mean with
"{measures.simplecount}"?
it is a calculated measure?

Thanks

Rodrigo

"Jéjé" wrote:

try a dynamic dcount like:

count(crossjoin({[Customer].members}, {measures.simplecount}),
exludeempty)


"Rodrigo" <Rodrigo (AT) discussions (DOT) microsoft.com> wrote in message
news:92D47A08-9DCE-4827-AC2A-18A0C1E976C3 (AT) microsoft (DOT) com...
Hi Masters:

I have a calculated measure with a distinctcount function over a
Customer
Dimension in my Cube... (i am using AS 2000)

DistinctCount({[Customer].members})

The problem is that i have a "profit unit" parent-child dimension
too,
and
that dimension have some "custom" members with unary operators over
a
field
of the profit unit dimension table.... for that custom members, my
distinctcount measure simply don't work ...(it show zero value)

Any idea?

Thanks
Rodrigo








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.