Hello,
Maybe this is handy for someone. Suppose you want to use a filter, but you also want to show records not within the filter with an empty attribute
You need to fetch the data twice (-; The “data” example:
data record(rec=1,data =1),
record(rec=2,data =2) ,
record(rec=3,data =1),
record(rec=4,data =3)
| filter (data == 1)
| fieldsadd newdata = data
| append [
data record(rec=1,data =1),
record(rec=2,data =2) ,
record(rec=3,data =1),
record(rec=4,data =3)]
| dedup rec, sort:(newdata) // Use the “null” values last!
| fieldsAdd data = if(isNull(newdata), “”, else:data) // Replace ugly null by “”
|fieldsRemove newdata // Remove the temp column
Result:
Any comments, issue’s or has a better way?
KR Henk
