Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Mapping Issue

BRRLL99
11 - Bolide

Hi

I have following data sets, initially we are mapping with session 1 with session columns and session 2 with session again , we unable to get the expected output.

 

expected output

 

USERSESSIONS.NO
SWATHIWWW1
SWATHIWXY1
SWATHIWWW1
SWETHAXXX2
SWETHAXYZ2

 

 

 

dataset -1 

 

USERSESSION
SWATHIWWW
SWATHIWXY
SWETHAXXX
SWETHAXYZ
SWATHIWWW
SWAPNAZZZ
SWAPNAXYZ

 

dataset - 2

 

S.NOSESSION1SESSION2
1WWWWXY
2WWWWZO
3XXXXYZ
4ZXOZZZ
6 REPLIES 6
ShankerV
17 - Castor

Hi @BRRLL99 

 

What is the logic to get the expected output.

If so and so, give me this result?

 

Many thanks

Shanker V

Christina_H
14 - Magnetar

Is this what you're going for?

Christina_H_0-1681285923372.png

 

BRRLL99
11 - Bolide

One user may have have multiple sessions, based on user name we need to map session with session1 and session 2 and adding S.NO column to Table1

output should be dynamic.

We are trying to map session1 and session2 with session column of table1 for each user

 

 

EXPECTED OUTPUT

 

USERSESSIONS.NO
SWATHIWWW1
SWATHIWXY1
SWATHIWWW1
SWETHAXXX2
SWETHAXYZ2
SWATHIABC7
SWATHICBA7

 

 

TABLE 1

USER         SESSION

SWATHIWWW
SWATHIWXY
SWETHAXXX
SWETHAXYZ
SWATHIWWW
SWAPNAZZZ
SWAPNAXYZ
SWATHIABC
SWATHICBA

 

TABLE2 

S.NO        SESSION1   SESSION2

1WWWWXY
2WWWWZO
3XXXXYZ
4ZXOZZZ
7ABCCBA
   
binuacs
20 - Arcturus

@BRRLL99 Any reason why the records for SWAPNA were not included in the output file? Also how SWETHA is mapped to SNO 2 instead of 3?

BRRLL99
11 - Bolide

SWAPNA Not mapping with the any paired sessions of table2,session column of table1 should map with the paired sessions(Session1, Session2) of table2.

Sorry My bad, SWETHA should have S.NO3

 

expected output

 

USERSESSIONS.NO
SWATHIWWW1
SWATHIWXY1
SWATHIWWW1
SWETHAXXX3
SWETHAXYZ3
SWATHIABC7
SWATHICBA7
Christina_H
14 - Magnetar

It looks like you're treating each group of rows separately, regardless of whether the same user appears again later.  I've updated my solution from above to account for that.

Christina_H_0-1681302368018.png

Labels