Custom aggregates in the Pivot recipe
Citron
Registered Posts: 4 ✭✭✭✭
Hello
How do I write a custom aggregate formula in the Pivot recipe ?
I need something like :
if ( count_of_records > 0 ) { return True } else { return False };
Thanks to the Dataiku team and community !
Answers
-
Hi @Citron
What you describe should be included as an additional step after the Pivot recipe has been executed.
In this scenario your pivot recipe should do a count and a new Prepare recipe can use the count column to generate the True/False output.
Good luck!
-
Hi @Liev
Thanks. That's what I did but I wanted it more concise.
-
By the way, where can I find examples of "custom aggregates" definitions, please ?