I’m wanting to exclude ETF’s that have no funds flow data from a scan.
Given there are negative funds flows I’ve tried using ABS() as follows.
// Check if the asset class is an ETF
C1 = MATCHFUNFIELD(FEED=MA, FIELD=Asset Class, FIELDVALUE=ETF);
// Get the absolute value of the 3-month net flows field, convert negative flows
C2 = ABS(MATCHFUNFIELD(FEED=FD, FIELD=NetFlows3Month));
// Check if the net flows are greater than 0
C3 = (C2 > 0);
// Combine both conditions
C4= C1 and C3;
// Output the result
C4
I’ve tried various permutations of this script, including not using ABS(), but always get the same result which is the scan includes ETF’s with no 3mth funds flows and excludes EFT’s with 3mth funds flow.