Free Trial

Alteryx Designer Desktop Discussions

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

Find "the parent" of the last element with non-blank cells

Javier070590
7 - Meteor

Dear All,

Could you please help me with my problem?

I have a table with last 2 columns fully populated. I need a parent of those elements from columns from LVL1_ID to LVL6_ID, parent will be first non-blank cell from the right side. So for line first parent is 333 (LVL3_ID), for the second line 111 (LVL1_ID), for third 222 (LVL2_ID) etc. 

 

 

LVL1_IDLVL2_ID LVL3_ID LVL4_ID LVL5_ID LVL6_IDLeaf_element_IDLeaf_element_ID
111222333   xxxElement_1
111     xxxElement_2
111222    xxxElement_3
111222333444555 xxxElement_4
111222333   xxxElement_5

 

I really appreciate support!

Best regards,

Marcin

4 REPLIES 4
echuong1
Alteryx Alumni (Retired)

You can pivot the data and then get the last non-empty value. See attached for an example. Hope this helps!

 

echuong1_0-1601046639801.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @Javier070590 ,

 

Here is a workflow for the task.

atcodedog05_0-1601047379421.png

 

atcodedog05_1-1601047250676.png

 

Hope this helps : )

 

If this helps please mark the post as solution

Javier070590
7 - Meteor

Thank you, both solutions were brilliant!

atcodedog05
22 - Nova
22 - Nova

Happy to help : )

Labels
Top Solution Authors