Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Business Objects Charts remove decimal and zeros

Status
Not open for further replies.

BOnovist

Technical User
Oct 29, 2008
7
US
I am using the following :
"Q" & TOTEXT(DatePart("Q",{Registration_List.DateOfClass})) & "-" & TOTEXT({@Date - YY as #})
I am trying to return in my chart "Q1-2008" but I get "Q1.00-2008.00" how do I remove the decimals and following zeros
 
I believe you can specify the number of decimal places you want to use in a numbeer field. So your code should say
"Q" & TOTEXT(DatePart("Q",{Registration_List.DateOfClass}), 0) & "-" & TOTEXT({@Date - YY as #}, 0)
 
Thank you pavandyke. That worked! Now I am trying to remove the thousand seperator in the year output. I now have:
"Q" & TOTEXT(DatePart("Q",{Registration_List.DateOfClass}), 0) & "-" & TOTEXT(DatePart ("YYYY",{Registration_List.DateOfClass} ),0)

but the output is : "Q1-2,008" and want "Q1-2008" better yet "Q1-08" any help would be great.
 
Pavandyke - I figured it out the thousand seperator. I just have not figured out how to make the year = "YY" vs. "YYYY" as the datepart command does not allow "YY".
 
Q" & TOTEXT(DatePart("Q",{Registration_List.DateOfClass}), 0) & "-" & right(TOTEXT(DatePart ("YYYY",{Registration_List.DateOfClass}),0,""),2)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top