Icon

20210622 Pikairos Moving row down by the condition

There has been no description set for this workflow's metadata.

The Java snippet code:// Your custom variables:String previousTransaction = "";// Enter your code here:if ( previousTransaction.equals( "Bonus Applied" )){ out_Result = previousTransaction; } else if ( c_TransactionOutExceptions.equals( "Bonus Applied" )){ out_Result = ""; } else{ out_Result =c_TransactionOutExceptions; }previousTransaction = c_TransactionOutExceptions; Sort by DateThe dataThe simplestway to solve this:Set stringmissing valuesto blankAn alternativeKNIME purist way ;-)Apply the following rules:$Transaction Out Exceptions$ = "Bonus Applied" =>"" $Transaction Out Exceptions(-1)$ = "Bonus Applied" => $Transaction Out Exceptions(-1)$TRUE => $Transaction Out Exceptions$Filter out useless columnsSorter Excel Reader (XLS) Java Snippet Missing Value Lag Column Rule Engine Column Filter The Java snippet code:// Your custom variables:String previousTransaction = "";// Enter your code here:if ( previousTransaction.equals( "Bonus Applied" )){ out_Result = previousTransaction; } else if ( c_TransactionOutExceptions.equals( "Bonus Applied" )){ out_Result = ""; } else{ out_Result =c_TransactionOutExceptions; }previousTransaction = c_TransactionOutExceptions; Sort by DateThe dataThe simplestway to solve this:Set stringmissing valuesto blankAn alternativeKNIME purist way ;-)Apply the following rules:$Transaction Out Exceptions$ = "Bonus Applied" =>"" $Transaction Out Exceptions(-1)$ = "Bonus Applied" => $Transaction Out Exceptions(-1)$TRUE => $Transaction Out Exceptions$Filter out useless columnsSorter Excel Reader (XLS) Java Snippet Missing Value Lag Column Rule Engine Column Filter

Nodes

Extensions

Links