Hi,I'm trying to evaluate if multiple columns in a single row are populated with values and then count how many columns have a value.
For example:
COLA | COLB | COLC | COLD | COUNT |
0 | 0 | 0 | 0 | 0 |
42 | 0 | 1 | 0 | 2 |
7 | 62 | 10 | 0 | 3 |
0 | 0 | 0 | 157 | 1 |
I used the ExpressionEvaluator with the following expression:
COUNT = (COLA/COLA)+(COLB/COLB)+(COLC/COLC)+(COLD/COLD)
But obviously dividing by 0 is throwing the whole result off.Is there some form of COUNTIF in FME?
Are you able to suggest a better solution / fix my expression to ignore dividing by zero?
Any help would be greatly appreciated.My brain has decided to give up today...
Is there any transformer equivalent to COUNTIF or COUNTIFS excel functions in FME.
I have a very large csv file that is not openable in excel that i need to perform a count on certain attributes that have numerical values.e.g Count the total number of values between 1-10 etc
I am currently using expressionevaluator transformer where it sets an attribute to 1 if condition is met otherwise 0.then i use statistics calculator to sum up the total.
wondering if there is any quick and simple way to do that.
I have two attributes that i need to check with 5 different conditions