Custom aggregates in the Pivot recipe

Citron
Citron Registered Posts: 4 ✭✭✭✭
edited July 2024 in Using Dataiku

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

  • Liev
    Liev Dataiker Alumni Posts: 176 ✭✭✭✭✭✭✭✭

    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!

  • Citron
    Citron Registered Posts: 4 ✭✭✭✭

    Hi @Liev

    Thanks. That's what I did but I wanted it more concise.

  • Citron
    Citron Registered Posts: 4 ✭✭✭✭

    By the way, where can I find examples of "custom aggregates" definitions, please ?

Setup Info
    Tags
      Help me…