Compare two dataets rows and insert into new coloumn

Options
sasidharp
sasidharp Registered Posts: 27 ✭✭✭✭

I have two datasets which have columns.

dataset 1:

tag
n1
n2
n3
n4

Dataset2:

id
n1
n2
n3

I want my output dataset as

tagidstatus
n1n1A
n2n2A
n3n3A
n4 M

How can i do it Dataiku?

@fchataigner2

Best Answer

  • sasidharp
    sasidharp Registered Posts: 27 ✭✭✭✭
    Answer ✓
    Options

    Thanks @Liev
    for your reply, i have tried different way using prepare recipe and formula process, it worked.

    initially i ran this on spark engine, but the output cam wrong, changing into DSS it's working fine.

Answers

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

    Hi @sasidharp

    Yes you can. But in order to make it easier you should include the row number on each of your columns, then you can indeed join (left join in your case) using this field.

    You can compute the row number using a window recipe on each of your datasets before the join.

    Good luck!

Setup Info
    Tags
      Help me…