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

Syntax for percentage

Started by Desperado, 11 Nov 2005 10:38:05 PM

Previous topic - Next topic

Desperado

Hi ,
This is my query to display the values in percentage. is there any wrong in the syntax..

IF ([DS].[DIM].[PERCENT_FLAG]='Y')
THEN (round([DS].[PKG_1].[BU2],[DS].[DIM].[PRECISION])*100)
ELSE
(round([DS].[PKG_1].[BU2],[DS].[DIM].[PRECISION]))

Thanks in Advance

sir_jeroen


mikegreen

#2
Quote from: Desperado on 11 Nov 2005 10:38:05 PM
Hi ,
This is my query to display the values in percentage. is there any wrong in the syntax..

IF ([DS].[DIM].[PERCENT_FLAG]='Y')
THEN (round([DS].[PKG_1].[BU2],[DS].[DIM].[PRECISION])*100)
ELSE
(round([DS].[PKG_1].[BU2],[DS].[DIM].[PRECISION]))

Thanks in Advance

Why not just click on your data item, then "data format" and choose percentage. It'll do that for you.

You can make it apply certain formatting based on data elements using conditional formatting.

Cheers

Mike

bdybldr

Have you tried using a static value instead of "[DS].[DIM].[PRECISION]" just to see if it works?