Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

How to display a percentage sign in calculated member column?

$
0
0

Hello all,

 

in my report I have a calculated member column whose value is determined by follwing value formula:

 

"...

 

  if CurrentColumnIndex - 2 = 1 then 

    ( 

        If GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex) = 0 then 

        0 

        else 

        (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex)/ 

        GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex)) * 100 

    ) 

    else 

    ( 

        If GridValueAt(CurrentRowIndex, CurrentColumnIndex-5, CurrentSummaryIndex) = 0 then 

        0 

        else 

        (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex)/ 

        GridValueAt(CurrentRowIndex, CurrentColumnIndex-5, CurrentSummaryIndex))*100 

    )

 

..."

 

Returned is a numeric value and it is being correctly displayed in calculated member column. As the value should represent percentage, I need to display a % sign after every value.

How would I achieve this? I have seen a thread here in the discussion where approach with a formula and DisplayString function is mentioned - but there are no details how this could be achieved....

 

The crosstab in question looks like this:

CR_Picture.jpg

Calculated Member is based on "REV_TOTAL" group column.

I also attached the .rpt file (renamed to .txt for upload)

 

Many thanks in advance,

 

Marin


Viewing all articles
Browse latest Browse all 4814

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>