Why is it necessary to do dataset[All, <|#, "key" -> If[#otherkey == "value", f1, f2][#key]|> &]
? I don't understand why dataset[All, {"key" -> (If[#otherkey == "value", f1, f2]&)}]
doesn't work. ("... is expected to have an Association as the first argument")