dbTalk Databases Forums  

Time Business Intelligence 'NA' Value

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


Discuss Time Business Intelligence 'NA' Value in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
daveoram24@hotmail.com
 
Posts: n/a

Default Time Business Intelligence 'NA' Value - 11-08-2006 , 02:58 PM






Hey all,

Ive just created a time business intelligence function with SQL 2005.
But when i got to view the data in the browser, it give me NA back. It
has to do with the day over day calculation. Now im pretty sure it has
to do with the fact that the code created by the business intelligence
tells it to show NA. Code created by BI:

Create Member CurrentCube.[Snapshot].[EffectiveDate Snapshot
Calculations].
[Day Over Day Growth %] AS "NA" ;

Create Member CurrentCube.[Snapshot].[EffectiveDate Snapshot
Calculations].
[Day Over Day Growth] AS "NA" ;


Scope(
{
[Measures].[Cumulative Realized Profit]
}
);

( [Snapshot].[EffectiveDate Snapshot Calculations].[Day Over Day
Growth %],
[Snapshot].[EffectiveDate].[EffectiveDate].Members ( 1 ) : Null ) =


(
( [Snapshot].[EffectiveDate Snapshot Calculations].DefaultMember )
-
( [Snapshot].[EffectiveDate Snapshot Calculations].DefaultMember,
ParallelPeriod(
[Snapshot].[EffectiveDate].[EffectiveDate],
1,
[Snapshot].[EffectiveDate].CurrentMember
)
)
)
/
( [Snapshot].[EffectiveDate Snapshot Calculations].DefaultMember,
ParallelPeriod(
[Snapshot].[EffectiveDate].[EffectiveDate],
1,
[Snapshot].[EffectiveDate].CurrentMember
)
) ;

( [Snapshot].[EffectiveDate Snapshot Calculations].[Day Over Day
Growth %],
[Snapshot].[EffectiveDate].[EffectiveDate].Members ( 0 )
) = Null ;

Format_String (
[Snapshot].[EffectiveDate Snapshot Calculations].[Day
Over Day Growth %]
) = "Percent" ;

( [Snapshot].[EffectiveDate Snapshot Calculations].[Day Over Day
Growth],
[Snapshot].[EffectiveDate].[EffectiveDate].Members ( 1 ) : Null ) =


( [Snapshot].[EffectiveDate Snapshot Calculations].DefaultMember ) -
( [Snapshot].[EffectiveDate Snapshot Calculations].DefaultMember,
ParallelPeriod(
[Snapshot].[EffectiveDate].[EffectiveDate],
1,
[Snapshot].[EffectiveDate].CurrentMember
)
) ;

( [Snapshot].[EffectiveDate Snapshot Calculations].[Day Over Day
Growth],
[Snapshot].[EffectiveDate].[EffectiveDate].Members ( 0 )
) = Null ;

End Scope ;

Now notice the first two paragraphs of code, there is 'NA' at the
end...When i changed that to 'BS' after i deployed it, the value in the
browser was BS...
So my question, how do i get the business intelligence to do the actual
day over day calculation??And if any more info is required, let me know

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.