dbTalk Databases Forums  

Is there function to covert "1" to "01"

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


Discuss Is there function to covert "1" to "01" in the microsoft.public.sqlserver.olap forum.



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

Default Is there function to covert "1" to "01" - 09-17-2004 , 09:48 AM






Hi,
Is there function to covert "1", "3","12" to "01", "03", "12" in MDX.



Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Is there function to covert "1" to "01" - 09-17-2004 , 04:32 PM






If this is a value formatting issue, you can use the FORMAT_STRING
property with "0" numeric placeholder:

http://msdn.microsoft.com/library/de.../en-us/olapdma
d/agmdxadvanced_2aur.asp
Quote:
...
The following table identifies the characters that can appear in the
format string for number formats.

Character Description

0 Digit placeholder. Displays a digit or a zero.

If the expression has a digit in the position where the 0 appears in the
format string, it displays the digit. Otherwise, it displays a zero in
that position.
...
Quote:

- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.