Conditional textjoin in Dataiku help

Tags
Registered Posts: 2

Hi all, I am trying to 'textjoin' in Dataiku, whereby I would like to concatenate all values in Column B (condition type) based on the value in column A (deal id), so I get the output below (highlighted yellow column) 

Screenshot 2024-03-08 at 10.30.51.png

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

Answers

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,322 Neuron

    Or if you prefer to keep the rows ungrouped you can use a Window recipe with a custom aggregation:

    Screenshot 2024-03-08 at 11.19.11.png

    Screenshot 2024-03-08 at 11.19.17.pngScreenshot 2024-03-08 at 11.19.29.png

    PS: Custom Aggregations are not supported in the DSS engine so make sure you have your datasets in a SQL database that supports string_agg aggregate function or consult with your database documentation on what function you can use.

  • Registered Posts: 2

    That was exactly what I was after, thank you so much! Spent quite a few hours trying to find a solution!!

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,322 Neuron

    Also see below for a solution that doesn't group the rows.

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,322 Neuron

    And please mark the thread as acepted solution

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.