Hello,
Is there a way to use a widget to input a greater than > or greater than or equal to >= (or any operator) and use it in the workflow? I have a set of standards (KPIs) I’m trying to use against accounting data and need to be able to input numbers like >=4. I have tried to input these operators as a string, but they are unusable in computations.
hi,
what about using the number and then do the filtering/splitting/…transformation based on the number input converted into flow variable? e.g. keep rows great or equal to Flow variable (your widget input)
Does that not work for you in your current context?
br
I can do that, but these standards change from contract to contract and I would have to change my workflow each time an operator changed (i.e. from >4 to <6). It would be helpful if I was able to input all the standards in the contract on each run through of the workflow. I’m trying to compare and contrast different contract standards to show, as an example, Meantime to Equipment Failure and how that effects cost (i.e. <=95.9% uptime/per period).
Use two configs: one to select the column where the filtering should be applied to and one which contains the rule that you want to apply.
With a variable expression node, I’m drafting the final rule: join("$",variable("column-selection"),"$ ",variable("rule")," => TRUE")
In this case I’m taking the syntax of a Rule-Based Row Filter. Connect it to the row filter node below.
Awesome! If it works out for you please mark the post as Solution. This also helps fellow KNIME users who have similar questions to find solutions quicker