dbTalk Databases Forums  

Format lost for calculated Members

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


Discuss Format lost for calculated Members in the microsoft.public.sqlserver.olap forum.



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

Default Format lost for calculated Members - 08-03-2006 , 09:14 PM






Hi,

I applied formatting like Thosand's seperator to the source & calculated
Measures in the cube.

When i execute MDX, i am loosing format to the calculated members. Please
see the example below. "Total" - lost the Thousand's seperator.

Please let me know how to get the format to the calculated members.

200301 200302 Total
Eligible Amount 283,711,585 240,908,388 524619973

with
Set [Time set] as
'{[Time].[Hierarchy].[Yr_Mo].&[200301],
[Time].[Hierarchy].[Yr_Mo].&[200302]}'

member [Time].[Hierarchy].[Total] as 'AGGREGATE([Time set])'

select
{[Time set],[Time].[Hierarchy].[Total]}on columns,
[Measures].[Eligible Amount] on rows
from [Dental General Model]

Thanks,
Prasad.


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

Default Re: Format lost for calculated Members - 08-04-2006 , 12:36 PM






You would use FORMAT_STRING after expression, for example:
member [Time].[Hierarchy].[Total] as 'AGGREGATE([Time set])' ,
FORMAT_STRING='#0.00'


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

Quote:
Hi,

I applied formatting like Thosand's seperator to the source & calculated
Measures in the cube.

When i execute MDX, i am loosing format to the calculated members. Please
see the example below. "Total" - lost the Thousand's seperator.

Please let me know how to get the format to the calculated members.

200301 200302 Total
Eligible Amount 283,711,585 240,908,388 524619973

with
Set [Time set] as
'{[Time].[Hierarchy].[Yr_Mo].&[200301],
[Time].[Hierarchy].[Yr_Mo].&[200302]}'

member [Time].[Hierarchy].[Total] as 'AGGREGATE([Time set])'

select
{[Time set],[Time].[Hierarchy].[Total]}on columns,
[Measures].[Eligible Amount] on rows
from [Dental General Model]

Thanks,
Prasad.




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.