If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Providing a thousand separator for a char column

Started by asmfloyd, 08 Nov 2019 01:45:07 PM

Previous topic - Next topic

asmfloyd

Hello,
  I have a char column which checks for couple of conditions and need to display results as *, '-',.. If the conditions are not met, I will get an integer result. For this integer result, how can I add
comma as a thousand separator?
  Since the column is coming as a character, declaring the format as number and adding thousand separator option is not working.

Thanks,

oscarca

format([Integer];'#,0.00')

if the the Data item/column is a varchar you have to cast it first to a integer. Format(cast([Data item];integer);'#,0.00')

Best regards,
Oscar

asmfloyd