dbTalk Databases Forums  

GROUP BY in member key column?

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


Discuss GROUP BY in member key column? in the microsoft.public.sqlserver.olap forum.



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

Default GROUP BY in member key column? - 06-09-2005 , 07:47 PM






Hi,

The current Member Key Column has the following SQL expression:

case when "dbo"."olap_portvalue_facts_daily3"."flows">0 then 0 else 1 end

What I want would be something like this:

case when sum("dbo"."olap_portvalue_facts_daily3"."flows")>0 then 0 else 1 end
group by date

Naturally simply entering it as above doesn't work.

The effect of the GROUP BY is to filter out days where you have flows and they
cancel one-another out (negative and positive of the same value).

Any ideas or suggestions appreciated.

pat


Reply With Quote
  #2  
Old   
OLAPMonkey (http://olapmonkey.blogspot.com/)
 
Posts: n/a

Default Re: GROUP BY in member key column? - 06-10-2005 , 10:10 AM






Any chance you can make this value a fact in your fact table instead
and then sum it up in your cube?


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.