dbTalk Databases Forums  

filter fact records by measures

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


Discuss filter fact records by measures in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Word 2003 memory Leakage
 
Posts: n/a

Default filter fact records by measures - 09-27-2005 , 04:27 PM






Hi,

I have a cube with a measurement "qtyReleased" of spills.

I would like to know the number of records with qtyReleased > 1000 (liters).

It seems impossible because it is not an attribute in a dimension.

Is there any solution to this?

Thanks,

Guangming

Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: filter fact records by measures - 09-27-2005 , 11:33 PM






Unless your cubes let you drill down to an individual fact record (which
most don't) I can't think of a way you could do this without altering
the cube.

You could create a view of your fact table with a new derived column
like:

CASE WHEN qtyReleased > 1000 THEN 1 ELSE NULL END as MoreThan1kReleased

The create a measure summing this column. This would of course require
re-designing the aggregations and re-processing the cube and it does not
let you alter the '1000' figure easily. You could however set up
multiple of these if you wanted to. (eg. 1k - 10-k, 10k - 100k, 100k +)

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

In article <B71A95BD-AB2F-4332-A7FA-D47DC9BD95C2 (AT) microsoft (DOT) com>,
Word2003memoryLeakage (AT) discussio... microsoft.com says...
Quote:
Hi,

I have a cube with a measurement "qtyReleased" of spills.

I would like to know the number of records with qtyReleased > 1000 (liters).

It seems impossible because it is not an attribute in a dimension.

Is there any solution to this?

Thanks,

Guangming



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.