dbTalk Databases Forums  

level display issue -1.#INF(in OLAP) and #NUM!(IN XP Pivot)

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


Discuss level display issue -1.#INF(in OLAP) and #NUM!(IN XP Pivot) in the microsoft.public.sqlserver.olap forum.



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

Default level display issue -1.#INF(in OLAP) and #NUM!(IN XP Pivot) - 04-29-2005 , 11:16 AM






i have a formula like below(Time dimension Year-Quarter-Month; from 2003 to
2005):
(([Dim DM Time].currentmember.prevmember,[Measures].[Upb])-([Dim DM
Time].currentmember,[Measures].[Upb]))/([Dim DM
Time].currentmember.prevmember,[Measures].[Upb])

the problem is for the root level (like January in 2003 then there shouldn't
have any value returned since no previous UPB; the same for the 1st quarter
of 2003, the year of 2003 and grand total for all; but how can i fix the
display problem in OLAP and Pivot table?

thanks a lot

Reply With Quote
  #2  
Old   
David Botzenhart
 
Posts: n/a

Default Re: level display issue -1.#INF(in OLAP) and #NUM!(IN XP Pivot) - 04-29-2005 , 02:15 PM






You could do something like

IIF(FistSibling([Dim DM Time].currentmember) is [Dim DM
Time].currentmember.prevmember, 0,
(([Dim DM Time].currentmember.prevmember,[Measures].[Upb])-([Dim DM
Time].currentmember,[Measures].[Upb]))/([Dim DM
Time].currentmember.prevmember,[Measures].[Upb]))

This would check to see if you are at the first member for that level and if
you are then return 0.

David Botzenhart

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

Quote:
i have a formula like below(Time dimension Year-Quarter-Month; from 2003
to
2005):
(([Dim DM Time].currentmember.prevmember,[Measures].[Upb])-([Dim DM
Time].currentmember,[Measures].[Upb]))/([Dim DM
Time].currentmember.prevmember,[Measures].[Upb])

the problem is for the root level (like January in 2003 then there
shouldn't
have any value returned since no previous UPB; the same for the 1st
quarter
of 2003, the year of 2003 and grand total for all; but how can i fix the
display problem in OLAP and Pivot table?

thanks a lot



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

Default Re: level display issue -1.#INF(in OLAP) and #NUM!(IN XP Pivot) - 05-02-2005 , 05:13 PM



thanks. but the firstsibling will exclude all first
child(Jan,April,July,Oct) in every quarter of each year(2003,2004,2005)

is there anything else can get around? thanks.


"David Botzenhart" wrote:

Quote:
You could do something like

IIF(FistSibling([Dim DM Time].currentmember) is [Dim DM
Time].currentmember.prevmember, 0,
(([Dim DM Time].currentmember.prevmember,[Measures].[Upb])-([Dim DM
Time].currentmember,[Measures].[Upb]))/([Dim DM
Time].currentmember.prevmember,[Measures].[Upb]))

This would check to see if you are at the first member for that level and if
you are then return 0.

David Botzenhart

"urgent" <urgent (AT) discussions (DOT) microsoft.com> wrote in message
news:BED73F7E-06B8-45A5-A664-A8C52955361A (AT) microsoft (DOT) com...
i have a formula like below(Time dimension Year-Quarter-Month; from 2003
to
2005):
(([Dim DM Time].currentmember.prevmember,[Measures].[Upb])-([Dim DM
Time].currentmember,[Measures].[Upb]))/([Dim DM
Time].currentmember.prevmember,[Measures].[Upb])

the problem is for the root level (like January in 2003 then there
shouldn't
have any value returned since no previous UPB; the same for the 1st
quarter
of 2003, the year of 2003 and grand total for all; but how can i fix the
display problem in OLAP and Pivot table?

thanks a lot




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.