dbTalk Databases Forums  

SSAS 2005: Retrieve FOMAT_STRING property via MDX

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


Discuss SSAS 2005: Retrieve FOMAT_STRING property via MDX in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andreas Doyé
 
Posts: n/a

Default SSAS 2005: Retrieve FOMAT_STRING property via MDX - 04-10-2006 , 09:27 AM






Hi all,

is there a way to retrieve the FORMAT_STRING property of a measure via MDX?

I'm thinking about something like this:

WITH MEMBER [Measures].[Format]
AS [Measures].[Internet Sales Amount].Properties("FORMAT_STRING")

SELECT [Measures].[Format] On Columns,
[Date].[Date].DefaultMember ON Rows
FROM [Adventure Works]

But this statement just returns "#Error"

Thanks for any sugestions,

Andreas



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

Default Re: SSAS 2005: Retrieve FOMAT_STRING property via MDX - 04-10-2006 , 10:02 PM






FORMAT_STRING is a cell property
Try to use this command:

SELECT [Measures].[Internet Sales Amount] On Columns,
[Date].[Date].DefaultMember ON Rows
FROM [Adventure Works] CELL PROPERTIES FORMAT_STRING,VALUE

Vladislav Beliaev


Reply With Quote
  #3  
Old   
Andreas Doyé
 
Posts: n/a

Default Re: SSAS 2005: Retrieve FOMAT_STRING property via MDX - 04-11-2006 , 04:05 AM



Vladislav,

thank you for your reply.

My problems is, that I want to use the formatting defined in the cube in a
RS 2005 report. Unfortunately it seems that RS doesn't return extended
properties when using the MSOLAP.3 provider for a generic OLE.DB data
source.

Any ideas?
Andreas

"VBeliaev" <vbeliaev (AT) mail (DOT) ru> wrote

Quote:
FORMAT_STRING is a cell property
Try to use this command:

SELECT [Measures].[Internet Sales Amount] On Columns,
[Date].[Date].DefaultMember ON Rows
FROM [Adventure Works] CELL PROPERTIES FORMAT_STRING,VALUE

Vladislav Beliaev




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.