Pentaho

 View Only

 How to handle number format from US to EU? ( #,###.00 to #.###,00 )

  • Pentaho
  • Kettle
  • Pentaho
  • Pentaho Data Integration PDI
Riccardo Pancotti's profile image
Riccardo Pancotti posted 06-22-2020 10:28

Hi,

 

I'm currently using Report Designer 8 and i would like to know how to format my number field using EU standard (right now is using a US format).

To be clear, i would like to go from this:

  • #,###.00

to this:

  • #.###,00

 

I already tried modifying the number field format by hand, resulting in an empty cell while printing the report.

The SQL field printed is a FLOAT.

 

Immagine


#Pentaho
#Kettle
#PentahoDataIntegrationPDI
Brandon Jackson's profile image
Brandon Jackson

I would try using a formula for the formatting. The conversions are done during rendering. If your formula can use clever logic to detect currency formatting desired, then you just submit the formatting code given the one you want.

 

Carlos Lopez's profile image
Carlos Lopez

I second the usage of a formula for this. Is the report based on locale? Also note the browser will push a locale to the report so depending on what that value is you should be able to use an IF on the formula