use functional select for .util.pivot