Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Need help with blending the data based on the change in the row data.

Naseema_shaik
5 - Atom

I have the input with the key column where the key gets changed when there is change in header (Basically a tree data). Output from the xml parse data. What I need is whenever there is a change as specific criteria the row value should update in the new column.

 

Sample Input data ( Please note that this is only few sample rows, I have huge data like this)

 

KeyDescVal
001ABCDT
001sfsd0
001sadfsd123
001xzcvsdfg345
002,003wertertsdfs
002,004sfgsfd133
002,005ertre456
002,005,006xvbx222
002,005,006,007qwrhddfhdg
002,005,008sfasdf243
002,005,008,009sfsda345345
002,005,008,010sdfsdfg23434
002,005,008,011dfsgsdf54766
002,005,008,012sdfgsdf123
002,013sdgdfdh4567
002,014sdgsdggg
002,015mhdtysdbtjddfgh
002,015,016bstysr3453456
002,015,017bsdffd3456
002,015,017,018bdfsdtert
002,015,019sdbhsethst
002,015,020sdfshdss33543
002,015,021sfbsdb456456
002,015,021,022sdbdf346
002,015,021,023sfgsfdsfgsdfg
002,015,021,024sfsgdfgsdfsdfg
002,015,021,025sdfgsdfgsfdf

 

I need output like this

 

KeyDescValAtt( Desired Output)
001ABCDT001
001sfsd0 
001sadfsd123 
001xzcvsdfg345 
002,003wertertsdfswertert
002,004sfgsfd133sfgsfd
002,005ertre456ertre
002,005,006xvbx222xvbx
002,005,006,007qwrhddfhdg 
002,005,008sfasdf243sfasdf
002,005,008,009sfsda345345 
002,005,008,010sdfsdfg23434 
002,005,008,011dfsgsdf54766 
002,005,008,012sdfgsdf123 
002,013sdgdfdh4567sdgdfdh
002,014sdgsdgggsdgsd
002,015mhdtysdbtjddfghmhdtysd
002,015,016bstysr3453456 
002,015,017bsdffd3456 
002,015,017,018bdfsdtertbdfsd
002,015,019sdbhsethstsdbh
002,015,020sdfshdss33543sdfshd
002,015,021sfbsdb456456sfbsdb
002,015,021,022sdbdf346 
002,015,021,023sfgsfdsfgsdfg 
002,015,021,024sfsgdfgsdfsdfg 
002,015,021,025sdfgsdfgsfdf 

 

So wherever there is change in value other than the data which falls under that tree needs to be outputed in to the new column.

1 REPLY 1
aegon
5 - Atom

 

Hi @Naseema_shaik,
I think you could use the multi-row formula tool. In the X_Output column below is the output of the simple logic I designed. I considered the first 11 characters only of the "Key" column since it looks like the last 3 characters of values with 15-char length is disregarded in your sample output  (as shown in rows 11-14).

aegon_0-1655196290949.png
However, there is an output mismatch in rows 1, 18, 29 and 20, maybe you missed to mention some criteria.

This is the code which compares the values in "Key" column by row. If a change is detected, the adjacent value in "Desc" is output. You can update the conditions accordingly based on your actual set of rules:

aegon_1-1655196558098.png
Hope this helps.

 

 

Labels