dbTalk Databases Forums  

Compare monthly averages

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


Discuss Compare monthly averages in the microsoft.public.sqlserver.olap forum.



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

Default Compare monthly averages - 05-12-2004 , 08:27 AM






We have designed several cubes and used this data for general
reporting. Our next step is to identify product trends. For example
we would like to identify products whose sales have declined the past
two months (or whatever time period we define). I'm thinking this
would require some sort of MDX query in form of this pseudocode:

if('AVG sales for current month' < 'AVG sales for last month'), '1'
else '2'

If this is the correct approach, I guess my question would be, how do
I get the MDX query to always return the data for the current month,
or the last month, etc.

Thanks in advance!

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.