dbTalk Databases Forums  

Balance at the end of selected Time level.

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


Discuss Balance at the end of selected Time level. in the microsoft.public.sqlserver.olap forum.



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

Default Balance at the end of selected Time level. - 04-16-2004 , 08:02 AM






Hi,

I am new to Analysis Services and I think my first
application is an odd one. What I have to do is show the
balance of different accounts at different time levels.
This might seem simple but the problem is that I have the
_actual balance_ and not all the transactions that get us
to that balance. This means that the actual balance that
the user should see is the balance one the last day of
the selected time level (e.g. last day of the month, last
day of the quarter, last day of the year, etc.). The
database has the actual balance for each day.

The final presentation of the cube will be through
PivotChart where you can drill into the Time dimension.
Can anyone please give me an idea of what I will need to
do (normal member, calculated member, etc.) to get this
number to change as the time dimension's level changes?
Any specific information will also be appreciated (MDX
example if applicable, etc.).

Thanks in advance!

Reply With Quote
  #2  
Old   
Prasanna
 
Posts: n/a

Default Re: Balance at the end of selected Time level. - 04-19-2004 , 05:15 AM






Check ClosingPeriod function
something like
ClosingPeriod(Time.year,Time.currentmembere),[measures].[X])

"ASPnMSSQL" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I am new to Analysis Services and I think my first
application is an odd one. What I have to do is show the
balance of different accounts at different time levels.
This might seem simple but the problem is that I have the
_actual balance_ and not all the transactions that get us
to that balance. This means that the actual balance that
the user should see is the balance one the last day of
the selected time level (e.g. last day of the month, last
day of the quarter, last day of the year, etc.). The
database has the actual balance for each day.

The final presentation of the cube will be through
PivotChart where you can drill into the Time dimension.
Can anyone please give me an idea of what I will need to
do (normal member, calculated member, etc.) to get this
number to change as the time dimension's level changes?
Any specific information will also be appreciated (MDX
example if applicable, etc.).

Thanks in advance!

Reply With Quote
  #3  
Old   
ASPnMySQL
 
Posts: n/a

Default Re: Balance at the end of selected Time level. - 04-20-2004 , 10:12 AM



For other people, here is what the final expression ended
up like:

(ClosingPeriod([Time].[Day], [Time].CurrentMember),
[Measures].[Daily Balance])

I used Time.Day instead of Time.Year because I had a
daily balance instead of a yearly balance.



Thanks a lot Prasanna!!


Quote:
-----Original Message-----
Check ClosingPeriod function
something like
ClosingPeriod(Time.year,Time.currentmembere),[measures].
[X])

"ASPnMSSQL" <anonymous (AT) discussions (DOT) microsoft.com> wrote
in message news:<1d79301c423b3$04f91f50
$a401280a (AT) phx (DOT) gbl>...
Quote:
Hi,

I am new to Analysis Services and I think my first
application is an odd one. What I have to do is show
the
balance of different accounts at different time
levels.
This might seem simple but the problem is that I have
the
_actual balance_ and not all the transactions that get
us
to that balance. This means that the actual balance
that
the user should see is the balance one the last day of
the selected time level (e.g. last day of the month,
last
day of the quarter, last day of the year, etc.). The
database has the actual balance for each day.

The final presentation of the cube will be through
PivotChart where you can drill into the Time
dimension.
Can anyone please give me an idea of what I will need
to
do (normal member, calculated member, etc.) to get
this
number to change as the time dimension's level
changes?
Any specific information will also be appreciated (MDX
example if applicable, 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.