Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

How do I get the column header for the first cell per row that is not empty

Majao
6 - Meteoroid

Dear all, 

 

I am trying to get the header name of the first non-empty cell in my data set, and adding that to a new column. From the screenshot below, I would have that the first row here would have "202011" as the value in the new column. The second row would be "202109". 


Can you help me with this? I also added a simple table as a simplified example of the format of the data and what I want to get.  

 

 

Screenshot (my data)

 

Majao_1-1647509631643.png

 

Simple example table

 202020212022My new column

Customer 1

 10 2021
Customer 210  2020
Customer 3  102022
Customer 4 10 2021

 

 

3 REPLIES 3
binuacs
20 - Arcturus

@Majao 

binuacs_0-1647516631742.png

 

Qiu
20 - Arcturus
20 - Arcturus

@Majao 
I can see there are some columns is having multiple values. so I made somethig as below based on @binuacs  work.

 

Majao_1-1647509631643.png

Majao
6 - Meteoroid

Works like a charm - thank you!

Labels