good evening
I would need to know the node that allows me to perform the following calculation in column D, see excel table.
In excel i would use the function if, but i would like to implement a work already started in knime
I would also need to insert a new column with a numeric value
for the formulas in column D you can use a Rule Engine node. Sintax is simple: if this condition is true => then apply this formula else if this condition is true => then apply this other formula
For the new column, if the value is the same for all rows, use a constant value column. If itâs based on a condition, use a rule engine once again. Otherwise, insert it in the Excel and import it in KNIME.
Hi @lriva
I donât fully understand about the logic IF in the picture.
But I would probably use the âMath Formulaâ node. The syntax is very similar to Excel; If-Condition:
if (cond, trueval, falseval)
You can concatenate conditions in the same way that you do in Excel.
Rule Engine does not allow âapply this formulaâ. You can only either assign a static value, or the value of a column/variable. You canât do operations (or String manipulations) in Rule Engine.
For Math operations, @gonhaddock is correct, there is the if (cond, trueval, falseval), although, like @gonhaddock , I cannot see where the IF is needed based on the screenshot from Excel.
It looks again like another case where the requester gave the minimum information. Please âhelp us help you. The more details you give, the more precise the solution will beâ. Iâm quoting this because itâs something I keep repeating.
thanks for the answer now I will try.
I thought with the excel table screen it was clear my âproblem-support requestâ.
I had entered in columns A and B the input data and in column C the result I should get and in column D the mathematical formula. I thought it was clear but maybe this new diagram is better.
In any case thanks for the information so far, I will try now