dbTalk Databases Forums  

Distinct Count in Periods Dimension

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


Discuss Distinct Count in Periods Dimension in the microsoft.public.sqlserver.olap forum.



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

Default Distinct Count in Periods Dimension - 12-22-2004 , 04:54 AM






I have this case:

Table Fact:
DocumentNo
CustomerNo
Amount

Dimension:
Periods: Year, Quarter, Month

I need a Member that provied a Distinct Count of Customer that have
Invoiced.
For example:

Year Quarter Month Sales Amount CustNo
2004 1 1 1200 35
2 2000 20

etc..

How can I do by MDX?

Thank you
Dario Concilio



Reply With Quote
  #2  
Old   
Dachuan Yang \(Minesage\)
 
Posts: n/a

Default Re: Distinct Count in Periods Dimension - 12-23-2004 , 05:22 AM






1. define a measure x = Dist Count of CustomerNo
2. during query, simply do a filter, based on Sales Amount>0 (you need to
write MDX)

Hope it can solve your problem


"Dario Concilio" <dario.concilio (AT) dakyn (DOT) it> дÈëÏûÏ¢
news:e52oeSB6EHA.4028 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Quote:
I have this case:

Table Fact:
DocumentNo
CustomerNo
Amount

Dimension:
Periods: Year, Quarter, Month

I need a Member that provied a Distinct Count of Customer that have
Invoiced.
For example:

Year Quarter Month Sales Amount CustNo
2004 1 1 1200 35
2 2000 20

etc..

How can I do by MDX?

Thank you
Dario Concilio





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.