dbTalk Databases Forums  

Defaults value in measures

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


Discuss Defaults value in measures in the microsoft.public.sqlserver.olap forum.



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

Default Defaults value in measures - 04-07-2004 , 05:01 PM






Everyone,

I wanted to set defaults values for all the measures in
the cube to be zero. The reason is that this will allow
the pivot table to show all records regardless if the
measure had a value or not.

Thanks all in advance,
SAJ

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Defaults value in measures - 04-07-2004 , 09:04 PM






I'm not gung-ho about what you're up to here, but... hide the physical
measures and create calculated members like so:

IIF(IsEmpty(Measures.HiddenMeasure),
0,
Measures.HiddenMeasure)

public @ the domain below
www.tomchester.net

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

Quote:
Everyone,

I wanted to set defaults values for all the measures in
the cube to be zero. The reason is that this will allow
the pivot table to show all records regardless if the
measure had a value or not.

Thanks all in advance,
SAJ



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

Default Re: Defaults value in measures - 04-08-2004 , 11:49 AM



Thanks a lot. I was able to produce measures this way
which are empty. However I have 70-80 measures and doing
this for every one will be tedious.

Is there a way I can always show all the dimension members
irrespective of whether the measure has a value or not.

Thanks,
Saj

Quote:
-----Original Message-----
I'm not gung-ho about what you're up to here, but... hide
the physical
measures and create calculated members like so:

IIF(IsEmpty(Measures.HiddenMeasure),
0,
Measures.HiddenMeasure)

public @ the domain below
www.tomchester.net

"Saj" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:19b1001c41ceb$d8d50d30$a501280a (AT) phx (DOT) gbl...
Everyone,

I wanted to set defaults values for all the measures in
the cube to be zero. The reason is that this will allow
the pivot table to show all records regardless if the
measure had a value or not.

Thanks all in advance,
SAJ


.


Reply With Quote
  #4  
Old   
Tom Chester
 
Posts: n/a

Default Re: Defaults value in measures - 04-09-2004 , 10:18 AM



Depends on your front-end.

public @ the domain below
www.tomchester.net

"Saj" <saurabhajmera (AT) hotmail (DOT) com> wrote

Quote:
Thanks a lot. I was able to produce measures this way
which are empty. However I have 70-80 measures and doing
this for every one will be tedious.

Is there a way I can always show all the dimension members
irrespective of whether the measure has a value or not.

Thanks,
Saj

-----Original Message-----
I'm not gung-ho about what you're up to here, but... hide
the physical
measures and create calculated members like so:

IIF(IsEmpty(Measures.HiddenMeasure),
0,
Measures.HiddenMeasure)

public @ the domain below
www.tomchester.net

"Saj" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:19b1001c41ceb$d8d50d30$a501280a (AT) phx (DOT) gbl...
Everyone,

I wanted to set defaults values for all the measures in
the cube to be zero. The reason is that this will allow
the pivot table to show all records regardless if the
measure had a value or not.

Thanks all in advance,
SAJ


.




Reply With Quote
  #5  
Old   
Mark Landry
 
Posts: n/a

Default Re: Defaults value in measures - 04-10-2004 , 07:22 PM



Wait a second. In AS2K measures always default to zero even if the
associated column in the fact table has NULL values.

Try changing the Display Format from #,# (the default) to #,0 Then
you'll see the zeros. Or try using Excel as a client -- it always
shows the zeros.

Regarding showing dimension members, the simple answer is don't use
the "NON EMPTY" keyword.

However forget trying to coerce Excel not to use NON EMPTY which isn't
possible with Excel XP. See KB article 234700 for details.
http://support.microsoft.com/default...b;en-us;234700

"'The Show items with no data' option in the PivotTable Field dialog
box is not available on PivotTable reports based on OLAP source data."

Reply With Quote
  #6  
Old   
Mark Landry
 
Posts: n/a

Default Re: Defaults value in measures - 04-11-2004 , 12:49 AM



Oops, I misspoke. The Display Format change only works if you have
fact table rows for all crossjoin combinations.

Tom's right. Use calculated members or find a client tool that will
display the empty measures as zero.

Reply With Quote
  #7  
Old   
Mark Landry
 
Posts: n/a

Default Re: Defaults value in measures - 04-12-2004 , 09:04 AM



One final item.

You can simplify the calculated measure to:

Measures.HiddenMeasure

and set the Display Format to #,0;;;"0"
The fourth field (separated by semicolons) is used for null values.

Unfortunately, setting the Display Format to #,0;;;"0" on the base
measure doesn't work. That's really what you want.

The inconsistency seems like a bug but there's probably some good
reason for this behavior.

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.