dbTalk Databases Forums  

Identify the max of date in a week and corres. measure value

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


Discuss Identify the max of date in a week and corres. measure value in the microsoft.public.sqlserver.olap forum.



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

Default Identify the max of date in a week and corres. measure value - 10-28-2004 , 06:03 AM






Hi all,
Greetings!.

I am trying hard to solve one problem using one calculated Member to
a measure, but still not worth it. Can you look at the scenario and
tell me where and how I should proceed? Here is the task.. I have a
quotation fact table and time dimension. In the time dimension, I
have year, half year, quarterly, month, week of the month and day
levels.

In my quote table, I have a quotation which has a measure say
QuoteAmount. In a week itself, I might have quote getting changed 3
times.. I want to process all these three records in the cube, but I
need a calculated measure which will pick only the latest record
(based on date).. 's measure value.

In summary, if I have 3 records for a quote, I should get 200 $

QID Date Description Amount
P1 20030101 Toyota $400
P1 20030102 Toyota - windscreen $300
P1 20030103 Toyota - windscreen $200

Please let me know as early as possible

Thanks
Seethsri


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.