Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Im using the Match function to exclude a particular value however it also seems to be removing null values . Does anyone have any ideas ?
Seems to work for me:
LOAD *
WHERE FieldName = 'CountryStatus' and not FieldValue = 'Inactive';
LOAD recno() as ID, FieldName, if(len(trim(FieldValue)),FieldValue, NULL()) as FieldValue INLINE [
FieldName, FieldValue
CountryStatus, Active
CountryStatus, Inactive
CountryStatus,
];
Could you post your expression / statement and some sample data. And what you expect to get?
How about something like
If ( isnull[[YourField] or match(........) , .....................
Can we use below expression
if(not(isnull([Field])), Match(...))
Sorry my expression is
WHERE (FieldName = 'CountryStatus'
AND Match(FieldValue, 'Inactive) = 0)
;
this removes all Country statues which are 'inactive'. However it also removes all records that don't have a CountryStatus assigned ie nulls which is not what I want.
WHERE (FieldName = 'CountryStatus'
AND
( Match(FieldValue, 'Inactive') = 0 or isnull(FieldValue) )
Seems to work for me:
LOAD *
WHERE FieldName = 'CountryStatus' and not FieldValue = 'Inactive';
LOAD recno() as ID, FieldName, if(len(trim(FieldValue)),FieldValue, NULL()) as FieldValue INLINE [
FieldName, FieldValue
CountryStatus, Active
CountryStatus, Inactive
CountryStatus,
];
Hi.
When Country Status is null, which is value of FieldValue?
Hi Bill I tried this however it returns values with CountryStatus as Inactive
Or if you want to stick to Match():
WHERE FieldName = 'CountryStatus' AND Rangesum(Match(FieldValue,'Inactive'))=0;