Monday, September 5, 2022

[Tips] Pentaho - Use Formula Step

 

Scenario

[Formula] step is powerful in terms of calculate a new value based upon the existent fields in transformation. 

With the embedded functions, you can build complicate calculation statements to meet the transformation needs.


Example

Get system info Step from Input Group, which reads the current system date and passes it to the next step, Formula step.

The transformation formula, shown as below, outputs the current date with the format of 'yyyymmdd'. 

    YEAR([sysDate])*10000 + MONTH([sysDate])*100 + DAY([sysDate])


Output: 


No comments:

Post a Comment

AI Tools - AntiGravity・Kiroを使ってみよう

Last updated on: AIの開発は加速しています。産業への応用も繰り広がり、手軽に使えるようになりました。システム開発においては、具体的な技術には差異がありますが、パターン化しやすい特徴があり、AIの適応性が優れているとも言えるでしょう。ここでは、AIツールを使ってア...