Dataset create a new element using other fields

I guess it does not work because you call filter() instead of filter2() in the second function?