dbTalk Databases Forums  

SCOPE statement with Format_String

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


Discuss SCOPE statement with Format_String in the microsoft.public.sqlserver.olap forum.



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

Default SCOPE statement with Format_String - 11-18-2006 , 10:46 AM






I was hoping someone could offer me some assistance with using the
format string property of a MDX calculated member. The cube I am
dealing with has a wide variety of data in it - $, #, % to name a few.
Based on the scope's members, I would like to return the correct format
string.

For example:

scope([Dim KPI].[KPI Type].&[#],
[Dim KPI].[Is Corp Measure].&[0],
[Dim KPI].[KPI Name].[KPI Name].members,
[KPI Actual],*);
this=
iif(cint([Dim KPI].[KPI Name].currentmember.properties("Snap Shot
KPI")) =0,
[KPI Actual], [ActualLastNonEmpty]);
Non_Empty_Behavior(this) = [KPI Actual];
FORMAT_STRING (this) = "#,##0.00";
end scope;

The front-end client still does not see the format string property for
this expression.

....Am I missing something pretty basic here....?

Thanks in advance.

Dave


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.