문제

For example,

I'm trying to create a Color column based on a Feeling column. If Feeling == Angry, Color = Red. Otherwise, Color = Blue. At the same time, I'm trying to pull data from another column as well. Let's say, If Temperature == Hot, Color = Red; otherwise Color = Blue.

Is there a step in Pentaho that I can use to do this?

도움이 되었습니까?

해결책

There's not one step that can do both of these, but it can be done with a combination of steps. Look at the Value mapper, the Calculator, and the Set field value steps. For more complex calculations, there's the Formula step, and if worse comes to worst, you can always fall back on the Modified Java Script Value step.

Those steps should get you there. If you want a more exacting description, you'll have to post more detail about how your calculation works.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top