Focal Point
[CLOSED] how to change format at SQL Calculator in DMC?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/1117050296

November 25, 2019, 05:39 AM
nox
[CLOSED] how to change format at SQL Calculator in DMC?
Hi,

I Have following expression within my SQL Calculator:

Alias: TotalAmount

Expression:
T2.HEALTH_PRICE*T2.QTY*T2.RATIO

T2.HEALTH_PRICE/P20.4
T2.QTY/P14.4
T2.RATIO/P20.4



The expression is fine, but the default Format of "TotalAmount" become P33.0 by system, but want it to be D33.6 which is contain decimal value. If I try change it after P33.0 to D33.6, all decimal value already been run off.
Is it possible to manual set the format of new inserted column by our self?

This message has been edited. Last edited by: nox,


WebFOCUS v8.2.06 , Windows
November 25, 2019, 11:30 AM
FP Mod Chuck
Nox

In your source master file definition you would create a new DEFINE for that field with the appropriate format and then reference that field by name in your SQL


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
November 26, 2019, 05:01 AM
nox
I'll give it a try, Thanks


WebFOCUS v8.2.06 , Windows