calculated fields

Started by suriakumar, March 04, 2025, 05:37:04 AM

Previous topic - Next topic

suriakumar



Is it possible to use IF statement,  SWITCH CASE Statement, while loop  etc.  in the CALCULATED FIELD OF Report writer.

suriakumar

Jane Raymond

Suriakumar,
There are two types of calculated fields:
  • Formula - Contains a PxPlus expression that will be evaluated when the report is being generated. You can then define a Filter that will use the calculated field in its condition. For example, you could create a calculated field TOTALCOST that calculates COST+TAXES which can then be displayed on your report. Or you could define a Filter to only display the records where, for example, TOTALCOST > 1000. Or you could use it to set up different Cell or Line displays.
  • Translation - This allows you to specify several conditions which will determine what is displayed on the report. For example, you could create a translation called MyMessage where the condition BALANCE>0 returns "Balance Due" and the Default returns "Paid".
Jane Raymond
Software Developer
PVX Plus Technologies Ltd.

Jane Raymond

Jane Raymond
Software Developer
PVX Plus Technologies Ltd.