Alteryx Designer Desktop Discussions

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

Mapping of Data Values

MONICA_E
5 - Atom

Hello,

As I am a beginner and new to Alteryx tool, I got stuck at this problem while getting the final output for the given data.

Along with the data set are the steps explained in details. Please help me proceed further with the solution.

D_NaAM_NOGo_AG_efCou_PEf_DAg_TDO_R
Abc0  HM12-10-2010ss1
AM 1 TO Abc1abc12-10-2010HM10-22-2020ams1.am.1
am 5 to Abc5abc12-10-2010HM08-07-2021ams1.am.5
sow0  HM12-08-2018swsw1
qa0  HM12-10-2010ss2
am 7 to qa7qa12-10-2010HM12-10-2012ams2.am.7
let0  HM03-04-2009nn1
rbg0  PD12-14-2008ss1
AM 3 TO RBG3RBG12-14-2008PD12-18-2010ams1.am.3
exhb 1 to lyb1lyb12-14-2008PD12-14-2009exhbs2.exh.1
notives0  PD09-12-2007nn1
lyb0  PD12-14-2008ss2
xma0  PD04-05-2013ss3
hol 2 to rbg2RBG12-14-2008PD12-14-2010sws1.sw1.2
abg0  PD12-14-2012swsw2
PRN0  PD12-09-2007nn2

 

1. for each unique [cou_p ], count 's' in [Agr_T] and mark the count in [DO_R(output)] as 's1' ,'s2' and so on. (This Applies to [Agr_T] aswell where value is"n")

 

2. if [Ag_T] is "am" then comparing [G_ef] value of 'am' (from Ag_T) with value of 's' from [Ef_D] note: considering [Cou_P] is same. case 1 : if [G_ef] of "am" matches with only one [ Ef_D] of "s" then [Do_R] is obtained by concatenating in the format { [Do_R] of that "s".[ag_T] of "am" .[Am_no] of that "am" } case 2: if [G_ef] of "am" matches with more than one [ Ef_D] of "s" then compare [Go_A] of "am" with [D_Na ] of matched [Ef_D] ,once it matches then [Do_R] is obtained by concatenating{ [Do_R] of that "s".[Ag_T] of "am" .[Am_no] of that "am"} (Applies to [Ag_T] having values "sw", "exhb" as well)

 

Thanks in Advance 🙂 

 

2 REPLIES 2
messi007
15 - Aurora
15 - Aurora

@MONICA_E,

 

I have created the first check.

However the second part is not clear for me when you 

if [G_ef] of "am" matches with only one [ Ef_D] of "s" then [Do_R] is obtained by concatenating in the format { [Do_R] of that "s".[ag_T] of "am" .[Am_no] of that "am"

I don't see any 12-10-2020 on the column EF_D but you are concatenating the values on your example.

Below the first part of the workflow:

 

messi007_0-1607965513607.png

 

 

Hope that helps you to continue with the second part 🙂

 

Regards,

 

MONICA_E
5 - Atom
Hi messi007,
 
Thank you for helping me find the solution for case 1. I have looked into the dataset and corrected as mentioned. Here is the second case which I would like you to look into it and help me solve it and find the solution.
 
 
if [Ag_T] is "am" then comparing [G_ef] value of 'am' (from Ag_T) with value of 's' from [Ef_D] note: considering [Cou_P] is same. case 1 : if [G_ef] of "am" matches with only one [ Ef_D] of "s" then [Do_R] is obtained by concatenating in the format { [Do_R] of that "s".[ag_T] of "am" .[Am_no] of that "am" } case 2: if [G_ef] of "am" matches with more than one [ Ef_D] of "s" then compare [Go_A] of "am" with [D_Na ] of matched [Ef_D] ,once it matches then [Do_R] is obtained by concatenating{ [Do_R] of that "s".[Ag_T] of "am" .[Am_no] of that "am"} (Applies to [Ag_T] having values "sw", "exhb" as well)
2007 n n2
 
 
Thank you for your help once again, I am really grateful 🙂

 

 

Labels