dbTalk Databases Forums  

Count members

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


Discuss Count members in the microsoft.public.sqlserver.olap forum.



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

Default Count members - 03-14-2005 , 09:32 AM






Hello

I have te following problem:
I have made a cube with quotations. But a quotation consist of one or
more lines. On each line a product is selected (with price, amount,
etc.).

The records in my fact table are quotationlines (not quotation-headers),
because the producthierarchy is linked to the articles (in
quotationlines).

I would like to count the quotations (not the lines).
The lines linked to a certain quotation have the same document number.

How can I count the number of quotations, e.g. by using the function
calculated member or...? I have tried something but without a good
result.

Can you help me?

Thanks in advance

Hans

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

Default Re: Count members - 03-14-2005 , 09:27 PM






How about a distinct count measure on Document Number?

http://msdn.microsoft.com/library/de.../en-us/olapdma
d/agmeasures_0m0j.asp
Quote:
...
If a measure's Aggregate Function property value is Distinct Count, the
measure value for a cube cell is calculated by adding the number of
unique values in the measure's source column from only the rows for the
combination of members that defines the cell and the descendants of
those members.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.